Monitorowanie zmian Diff przez API
Monitorowanie zmian Diff przez API. Żądania HTTP, parametry, schematy odpowiedzi i procedury Labrika.
W tym artykule
- Monitoring zmian
- Dokumentacja metod API — Diff
- Adresy URL i reguły monitorowania zmian
- Dokumentacja metod API — URLs
- Dokumentacja metod API — Rules
- Uruchomienie sprawdzania zmian w witrynie
- Dokumentacja metod API — Runs
Monitoring zmian
To API udostępnia projekty monitorowania, historię sprawdzeń i zmiany poszczególnych stron. Wyniki można wykorzystać we własnym panelu, eksportach lub kontroli przed publikacją.
url_md5 z wiersza strony. last wybiera najnowszy zakończony raport projektu; użyj konkretnego report_id, aby uzyskać powtarzalny eksport.
diff-projects:readdiff-reports:read
- Zacznij od
/public-api/v1/diff-projects, aby uzyskaćdiff_project_id. - Historia raportów:
/public-api/v1/diff-projects/{diff_project_id}/reports. - Najnowszy raport: przekaż
lastzamiastreport_id. -
include_state=truew/public-api/v1/diff-projects/{diff_project_id}/reports/{report_id}/rowsdodaje stan strony i informacje o dostępności plików.
data. Przekaż pagination.next_offset jako offset, dopóki pagination.has_more wynosi true. limit: 1–10000, domyślnie 1000; offset: od 0, domyślnie 0.
/public-api/v1/diff-projects
Zwraca projekty monitorowania bieżącego użytkownika. Użyj data[].diff_project_id w kolejnych żądaniach.
/public-api/v1/diff-projects/{diff_project_id}/reports
Zwraca historię sprawdzeń: report_id, status, datę utworzenia oraz liczbę stron i alertów.
/public-api/v1/diff-projects/{diff_project_id}/report-graph Dane wykresu historii sprawdzeń projektu do prezentowania zmian wyników monitorowania w czasie.
/public-api/v1/diff-projects/{diff_project_id}/reports/{report_id}/rows
Zwraca strony i wykryte zmiany dla wybranego sprawdzenia. W report_id podaj identyfikator z historii lub last.
| Parametr | Typ | Opis |
|---|---|---|
include_state | boolean |
true dodaje title, description, h1, monitorowane znaczniki, pliki i inne pola stanu. |
limit / offset | integer | Stronicowane pobieranie wierszy. Maksymalna wartość limit to 10 000. |
has_alert | boolean | Filtruje wiersze z wyzwolonymi alertami. |
/public-api/v1/diff-projects/{diff_project_id}/reports/{report_id}/pages/{url_md5} Szczegółowe dane strony zapisane dla wybranego raportu.
curl
curl --fail-with-body --silent --show-error --location \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Accept: application/json' \
'https://app.labrika.com/public-api/v1/diff-projects/PROJECT_ID/reports/last/rows?include_state=true&limit=1000&offset=0'
JavaScript
async function main () {
const response = await fetch("https://app.labrika.com/public-api/v1/diff-projects/PROJECT_ID/reports/last/rows?include_state=true&limit=1000&offset=0", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
},
signal: AbortSignal.timeout(30_000),
})
if (!response.ok) {
const responseText = await response.text()
throw new Error(`HTTP ${response.status}: ${responseText}`)
}
const responseText = await response.text()
const data = responseText && response.headers.get("content-type")?.includes("application/json") ? JSON.parse(responseText) : responseText
console.log(data)
}
main().catch(error => {
console.error(error)
process.exitCode = 1
})
Python
import json
import requests
url = "https://app.labrika.com/public-api/v1/diff-projects/PROJECT_ID/reports/last/rows?include_state=true&limit=1000&offset=0"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.request(
"GET",
url,
headers=headers,
timeout=30,
)
response.raise_for_status()
print(json.dumps(response.json(), ensure_ascii=False, indent=2) if response.content and "application/json" in response.headers.get("Content-Type", "") else response.text)
PHP
<?php
$curl = curl_init('https://app.labrika.com/public-api/v1/diff-projects/PROJECT_ID/reports/last/rows?include_state=true&limit=1000&offset=0');
if ($curl === false) {
throw new RuntimeException('Unable to initialize cURL');
}
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer YOUR_API_KEY',
'Accept: application/json',
],
]);
$response = curl_exec($curl);
if ($response === false) {
$message = curl_error($curl);
curl_close($curl);
throw new RuntimeException('Network error: ' . $message);
}
$status = curl_getinfo($curl, CURLINFO_RESPONSE_CODE);
$contentType = curl_getinfo($curl, CURLINFO_CONTENT_TYPE) ?: '';
curl_close($curl);
if ($status < 200 || $status >= 300) {
throw new RuntimeException("HTTP $status: $response");
}
if ($response !== '' && str_contains($contentType, 'application/json')) {
print_r(json_decode($response, true, 512, JSON_THROW_ON_ERROR));
} else {
echo $response;
}
Go
package main
import (
"context"
"fmt"
"io"
"net/http"
"os"
"time"
)
func main() {
ctx, cancel := context.WithTimeout(context.Background(), 30 * time.Second)
defer cancel()
request, err := http.NewRequestWithContext(ctx, http.MethodGet, "https://app.labrika.com/public-api/v1/diff-projects/PROJECT_ID/reports/last/rows?include_state=true&limit=1000&offset=0", nil)
if err != nil {
panic(err)
}
request.Header.Set("Authorization", "Bearer YOUR_API_KEY")
request.Header.Set("Accept", "application/json")
client := &http.Client{Timeout: 30 * time.Second}
response, err := client.Do(request)
if err != nil {
panic(err)
}
defer response.Body.Close()
if response.StatusCode < http.StatusOK || response.StatusCode >= http.StatusMultipleChoices {
errorBody, readErr := io.ReadAll(response.Body)
if readErr != nil {
panic(readErr)
}
panic(fmt.Sprintf("HTTP %d: %s", response.StatusCode, errorBody))
}
if _, err := io.Copy(os.Stdout, response.Body); err != nil {
panic(err)
}
}
Google Apps Script
function callLabrikaPublicAPI() {
const response = UrlFetchApp.fetch("https://app.labrika.com/public-api/v1/diff-projects/PROJECT_ID/reports/last/rows?include_state=true&limit=1000&offset=0", {
method: "get",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
},
followRedirects: false,
muteHttpExceptions: true,
});
const status = response.getResponseCode();
if (status < 200 || status >= 300) {
throw new Error('HTTP ' + status + ': ' + response.getContentText());
}
Logger.log(response.getContentText());
}
Dokumentacja metod API — Diff
Wybierz metodę ze spisu treści. Sprawdź metodę HTTP, ścieżkę, uprawnienia, wymagane parametry i treść żądania. Bloki JSON zawierające schema, properties i $ref opisują kontrakt; nie wysyłaj ich jako gotowej treści żądania. Przykłady żądań i schematy odpowiedzi są oznaczone osobno.
Metody w tej sekcji
GET /public-api/v1/diff-projects
Parametry
Powiązane modele danych: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffProjectListResponse · ErrorResponse
limit (query)
{
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 10000,
"default": 1000
}
}
offset (query)
{
"schema": {
"type": "integer",
"minimum": 0,
"default": 0
}
}
Odpowiedzi
200
Projekty Diff.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffProjectListResponse"
}
}
}
}
default
Bez poprawnego klucza nagłówki limitów dotyczą nieudanych prób z IP. Po uwierzytelnieniu dotyczą klucza lub konta. Mogą być pominięte przy wcześniejszej blokadzie lub niedostępnym liczniku. X-RateLimit-Reset to czas Unix w sekundach; Retry-After przy 429 to opóźnienie w sekundach.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
GET /public-api/v1/diff-projects/{id}/reports
Parametry
Powiązane modele danych: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffReportListResponse · ErrorResponse · XID
id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
limit (query)
{
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 10000,
"default": 1000
}
}
offset (query)
{
"schema": {
"type": "integer",
"minimum": 0,
"default": 0
}
}
status (query)
{
"schema": {
"type": "string",
"enum": [
"progress",
"done",
"failed"
]
}
}
created_from (query)
{
"schema": {
"type": "string",
"format": "date-time"
}
}
created_to (query)
{
"schema": {
"type": "string",
"format": "date-time"
}
}
Odpowiedzi
200
Raporty Diff.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffReportListResponse"
}
}
}
}
default
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
GET /public-api/v1/diff-projects/{id}/report-graph
Parametry
Powiązane modele danych: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffReportGraphResponse · ErrorResponse · XID
id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
limit (query)
{
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 10000,
"default": 1000
}
}
offset (query)
{
"schema": {
"type": "integer",
"minimum": 0,
"default": 0
}
}
Odpowiedzi
200
Wykres raportu Diff.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffReportGraphResponse"
}
}
}
}
default
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
GET /public-api/v1/diff-projects/{id}/reports/{report_id}/rows
Parametry
Powiązane modele danych: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffReportRowsResponse · ErrorResponse · XID
id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
report_id (path)
Xid raportu lub literał last. Literał last jest akceptowany tylko w tym parametrze ścieżki.
{
"required": true,
"schema": {
"type": "string",
"minLength": 4,
"maxLength": 64,
"pattern": "^([A-Za-z0-9_-]+|last)$"
}
}
include_state (query)
{
"schema": {
"type": "boolean",
"default": false
}
}
limit (query)
{
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 10000,
"default": 1000
}
}
offset (query)
{
"schema": {
"type": "integer",
"minimum": 0,
"default": 0
}
}
search (query)
{
"schema": {
"type": "string",
"maxLength": 300
}
}
url_md5 (query)
{
"schema": {
"type": "string",
"pattern": "^[a-fA-F0-9]{32}$"
}
}
has_alert (query)
{
"schema": {
"type": "boolean"
}
}
rule_id (query)
{
"schema": {
"type": "string"
}
}
http_status (query)
{
"schema": {
"type": "integer",
"minimum": 100,
"maximum": 599
}
}
changed_field (query)
{
"schema": {
"type": "string"
}
}
alert_trigger_code (query)
{
"schema": {
"type": "string"
}
}
alert_trigger_group (query)
{
"schema": {
"type": "string"
}
}
Odpowiedzi
200
Wiersze raportu Diff.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffReportRowsResponse"
}
}
}
}
default
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
GET /public-api/v1/diff-projects/{id}/reports/{report_id}/pages/{url_md5}
Parametry
Powiązane modele danych: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffPageDetailResponse · ErrorResponse · URLMD5 · XID
id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
report_id (path)
Xid raportu lub literał last. Literał last jest akceptowany tylko w tym parametrze ścieżki.
{
"required": true,
"schema": {
"type": "string",
"minLength": 4,
"maxLength": 64,
"pattern": "^([A-Za-z0-9_-]+|last)$"
}
}
url_md5 (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/URLMD5"
}
}
Odpowiedzi
200
Szczegóły strony Diff.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffPageDetailResponse"
}
}
}
}
default
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
Adresy URL i reguły monitorowania zmian
Adresy URL i reguły wpływają tylko na przyszłe raporty. Raporty historyczne zachowują dane obliczone podczas ich uruchomienia.
409 rule_in_use: Ta reguła jest używana do automatycznego dodawania i importu URL oraz w API. Przed usunięciem wybierz i zapisz inną regułę dla nowych stron.
GET → diff-urls:read, diff-rules:readPOST / PATCH / DELETE → diff-urls:write, diff-rules:write
-
POST /public-api/v1/diff-projects/{diff_project_id}/urls?dry_run=truesprawdza adresy URL bez ich zapisywania. -
Idempotency-Keyjest zalecany przy masowym imporcie adresów URL. - W POST pominięte alert_rule_id lub null przypisuje na stałe bieżącą regułę dla nowych stron z ustawień listy URL. PATCH z null jawnie przypisuje tę regułę wybranym URL. Późniejsze zmiany ustawienia nie zmieniają istniejących stron; ponowne POST zachowuje poprzednią regułę. Bez zapisanego wyboru odpowiedź to 409 default_rule_not_configured.
- Usunięcie adresu URL nie usuwa historycznych wierszy z wcześniejszych raportów.
- Regułę można usunąć tylko wtedy, gdy nie jest domyślna i nie ma jawnie przypisanych adresów URL.
URL: urls to tablica maksymalnie 1000 bezwzględnych adresów HTTP/HTTPS. Pobierz url_md5 ze znormalizowanego wyniku API; nie obliczaj go z pierwotnej wartości. Pominięty lub null alert_rule_id używa reguły projektu; effective_rule_id wskazuje zastosowaną regułę, a uses_default_rule ma zawsze wartość false. dry_run=true nie zapisuje adresów: sprawdź would_create_count i errors. Przypisanie zbiorcze przyjmuje 1–10000 url_md5s. Paginacja: limit 1–10000 (domyślnie 1000), offset od 0.
Reguła: name ma 1–32 znaki; parsing_javascript, screenshot_desktop, screenshot_mobile i available są logiczne. screenshot_delay: 1–10 sekund, jedno miejsce dziesiętne; percent_diff_html/text/meta: 0–100%; load_time_more: 0,1–10 sekund; min_page_size/max_page_size: 0–10000000 bajtów, minimum nie większe niż maksimum. Wartości expected_http_status pobierz z rules/expected-http-statuses. tracked_tags: do 6 elementów, unikalny number 1–6, mode css lub regex, pattern do 1000 znaków. missing_html/appearing_html: do 20 ciągów po 1000 znaków. Opcjonalne progi przyjmują null.
Utworzenie reguły zwraca 201 z data; PATCH zwraca 200 z data, a DELETE 204 bez treści. PATCH zastępuje edytowalne ustawienia: wyślij wszystkie wartości do zachowania, w tym name. Pominięte wartości logiczne stają się false, tablice są czyszczone, a wartości opcjonalne stają się null. Najpierw pobierz regułę przez GET. Nie można usunąć reguły domyślnej ani reguł jawnie przypisanych do adresów URL.
http/httpsObsługiwane są tylko bezwzględne adresy HTTP/HTTPS.
IDNObsługiwane są umiędzynarodowione nazwy domen, normalizowane do Punycode.
domain_blockedDomena jest zablokowana przez listę blokad produktu.
unsafe_urlAdres URL został odrzucony przez ochronę SSRF.
Dokumentacja metod API — URLs
Wybierz metodę ze spisu treści. Sprawdź metodę HTTP, ścieżkę, uprawnienia, wymagane parametry i treść żądania. Bloki JSON zawierające schema, properties i $ref opisują kontrakt; nie wysyłaj ich jako gotowej treści żądania. Przykłady żądań i schematy odpowiedzi są oznaczone osobno.
Metody w tej sekcji
GET /public-api/v1/diff-projects/{id}/urls
Parametry
Powiązane modele danych: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffURLListResponse · ErrorResponse · XID
id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
limit (query)
{
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 10000,
"default": 1000
}
}
offset (query)
{
"schema": {
"type": "integer",
"minimum": 0,
"default": 0
}
}
Odpowiedzi
200
Monitorowane adresy URL.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffURLListResponse"
}
}
}
}
default
Bez poprawnego klucza nagłówki limitów dotyczą nieudanych prób z IP. Po uwierzytelnieniu dotyczą klucza lub konta. Mogą być pominięte przy wcześniejszej blokadzie lub niedostępnym liczniku. X-RateLimit-Reset to czas Unix w sekundach; Retry-After przy 429 to opóźnienie w sekundach.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
POST /public-api/v1/diff-projects/{id}/urls
Parametry
Powiązane modele danych: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffURLAddRequest · DiffURLAddResponse · ErrorResponse · XID
id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
dry_run (query)
{
"schema": {
"type": "boolean",
"default": false
}
}
Idempotency-Key (header)
{
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 255
}
}
Żądanie
{
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffURLAddRequest"
}
}
}
}
Odpowiedzi
200
Wynik dodawania adresów URL.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffURLAddResponse"
}
}
}
}
default
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
DELETE /public-api/v1/diff-projects/{id}/urls/{url_md5}
Parametry
Powiązane modele danych: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse · URLMD5 · XID
id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
url_md5 (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/URLMD5"
}
}
Odpowiedzi
204
Usunięto. Treść odpowiedzi jest pusta.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
}
}
}
default
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
PATCH /public-api/v1/diff-projects/{id}/urls/{url_md5}/rule
Parametry
Powiązane modele danych: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffURLRulePatchRequest · DiffURLRulePatchResponse · ErrorResponse · URLMD5 · XID
id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
url_md5 (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/URLMD5"
}
}
Żądanie
{
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffURLRulePatchRequest"
}
}
}
}
Odpowiedzi
200
Wynik przypisania reguły do adresu URL.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffURLRulePatchResponse"
}
}
}
}
default
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
PATCH /public-api/v1/diff-projects/{id}/urls/rule
Parametry
Powiązane modele danych: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffURLBulkRulePatchRequest · DiffURLRulePatchResponse · ErrorResponse · XID
id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
Żądanie
{
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffURLBulkRulePatchRequest"
}
}
}
}
Odpowiedzi
200
Wynik przypisania reguły do adresu URL.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffURLRulePatchResponse"
}
}
}
}
default
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
Dokumentacja metod API — Rules
Wybierz metodę ze spisu treści. Sprawdź metodę HTTP, ścieżkę, uprawnienia, wymagane parametry i treść żądania. Bloki JSON zawierające schema, properties i $ref opisują kontrakt; nie wysyłaj ich jako gotowej treści żądania. Przykłady żądań i schematy odpowiedzi są oznaczone osobno.
Metody w tej sekcji
- GET /public-api/v1/diff-projects/{id}/rules
- POST /public-api/v1/diff-projects/{id}/rules
- GET /public-api/v1/diff-projects/{id}/rules/expected-http-statuses
- GET /public-api/v1/diff-projects/{id}/rules/{rule_id}
- PATCH /public-api/v1/diff-projects/{id}/rules/{rule_id}
- DELETE /public-api/v1/diff-projects/{id}/rules/{rule_id}
GET /public-api/v1/diff-projects/{id}/rules
Parametry
Powiązane modele danych: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffRuleListResponse · ErrorResponse · XID
id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
limit (query)
{
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 10000,
"default": 1000
}
}
offset (query)
{
"schema": {
"type": "integer",
"minimum": 0,
"default": 0
}
}
Odpowiedzi
200
Reguły alertów.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffRuleListResponse"
}
}
}
}
default
Bez poprawnego klucza nagłówki limitów dotyczą nieudanych prób z IP. Po uwierzytelnieniu dotyczą klucza lub konta. Mogą być pominięte przy wcześniejszej blokadzie lub niedostępnym liczniku. X-RateLimit-Reset to czas Unix w sekundach; Retry-After przy 429 to opóźnienie w sekundach.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
POST /public-api/v1/diff-projects/{id}/rules
Parametry
Powiązane modele danych: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffRuleResponse · DiffRuleWriteRequest · ErrorResponse · XID
id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
Żądanie
{
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffRuleWriteRequest"
}
}
}
}
Odpowiedzi
201
Reguła alertów.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffRuleResponse"
}
}
}
}
default
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
GET /public-api/v1/diff-projects/{id}/rules/expected-http-statuses
Parametry
Powiązane modele danych: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffRuleExpectedHTTPStatusesResponse · ErrorResponse · XID
id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
Odpowiedzi
200
Oczekiwane statusy HTTP.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffRuleExpectedHTTPStatusesResponse"
}
}
}
}
default
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
GET /public-api/v1/diff-projects/{id}/rules/{rule_id}
Parametry
Powiązane modele danych: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffRuleResponse · ErrorResponse · XID
id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
rule_id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
Odpowiedzi
200
Reguła alertów.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffRuleResponse"
}
}
}
}
default
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
PATCH /public-api/v1/diff-projects/{id}/rules/{rule_id}
Parametry
Powiązane modele danych: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffRuleResponse · DiffRuleWriteRequest · ErrorResponse · XID
id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
rule_id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
Żądanie
{
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffRuleWriteRequest"
}
}
}
}
Odpowiedzi
200
Reguła alertów.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffRuleResponse"
}
}
}
}
default
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
DELETE /public-api/v1/diff-projects/{id}/rules/{rule_id}
Parametry
Powiązane modele danych: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse · XID
id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
rule_id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
Odpowiedzi
204
Usunięto. Treść odpowiedzi jest pusta.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
}
}
}
default
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
Uruchomienie sprawdzania zmian w witrynie
Ta sekcja opisuje uruchamianie nowego sprawdzenia w monitorowaniu zmian. Sprawdzenie obejmuje wszystkie monitorowane adresy URL wybranego projektu. Sprawdź saldo i oszacuj koszt, a następnie wyślij żądanie z nagłówkiem Idempotency-Key. Wycena nie obciąża konta.
diff-reports:run
-
/public-api/v1/diff-projects/{diff_project_id}/balancezwraca dostępne źródła płatności. -
/public-api/v1/diff-projects/{diff_project_id}/reports/costzwraca podpisanycost_estimate_id, ważny przez 10 minut. -
/public-api/v1/diff-projects/{diff_project_id}/reports/runobciąża konto i umieszcza analizę w kolejce. - Można uruchomić wyłącznie analizę całego projektu:
scope=all_urls. Wersja v1 nie obsługuje wybranych adresów URL. - Przy ponawianiu używaj tego samego klucza API, tego samego
Idempotency-Keyi niezmienionych parametrów żądania.
Jeśli automatyczne dodawanie adresów URL jest włączone, /reports/cost najpierw aktualizuje listę i przypisuje nowym stronom zapisaną regułę projektu. /reports/run ponawia przygotowanie; jeśli liczba stron lub koszt się zmieniły, zwraca 409 cost_estimate_mismatch bez pobierania opłaty. Uzyskaj nową wycenę i ponów uruchomienie z nowym Idempotency-Key. Istniejące adresy URL i ich reguły pozostają bez zmian.
/public-api/v1/diff-projects/{diff_project_id}/balance
Sprawdza saldo i dostępne opcje płatności.
/public-api/v1/diff-projects/{diff_project_id}/reports/cost
Oblicza koszt. Na tym etapie konto nie jest obciążane.
{
"scope": "all_urls",
"force_recheck": false
}
/public-api/v1/diff-projects/{diff_project_id}/reports/run
Uruchamia analizę. Nagłówek Idempotency-Key jest wymagany.
Idempotency-Key: run-report-20260531-001 {
"cost_estimate_id": "COST_ESTIMATE_ID",
"payment_option": "auto",
"scope": "all_urls",
"force_recheck": false
}
/public-api/v1/diff-projects/{diff_project_id}/reports/runs/{run_id}
Sprawdza stan uruchomienia: pending, progress, done, failed.
GET /public-api/v1/diff-projects/{diff_project_id}/reports/runs oraz GET /public-api/v1/diff-projects/{diff_project_id}/reports: błąd odpowiedzi nie oznacza, że analiza nie została uruchomiona. Nie wysyłaj równoległych żądań uruchomienia ani nie używaj nowego klucza idempotencji, dopóki nie poznasz wyniku poprzedniego żądania.
Dokumentacja metod API — Runs
Wybierz metodę ze spisu treści. Sprawdź metodę HTTP, ścieżkę, uprawnienia, wymagane parametry i treść żądania. Bloki JSON zawierające schema, properties i $ref opisują kontrakt; nie wysyłaj ich jako gotowej treści żądania. Przykłady żądań i schematy odpowiedzi są oznaczone osobno.
Metody w tej sekcji
GET /public-api/v1/diff-projects/{id}/balance
Parametry
Powiązane modele danych: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffBalanceResponse · ErrorResponse · XID
id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
Odpowiedzi
200
Saldo i opcje płatności.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffBalanceResponse"
}
}
}
}
default
Bez poprawnego klucza nagłówki limitów dotyczą nieudanych prób z IP. Po uwierzytelnieniu dotyczą klucza lub konta. Mogą być pominięte przy wcześniejszej blokadzie lub niedostępnym liczniku. X-RateLimit-Reset to czas Unix w sekundach; Retry-After przy 429 to opóźnienie w sekundach.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
POST /public-api/v1/diff-projects/{id}/reports/cost
Przed oszacowaniem kosztu dodaje nowe adresy URL zgodnie z zapisanym trybem projektu i przypisuje im wybraną regułę. Istniejące adresy URL i ich reguły pozostają bez zmian. Oszacowanie nie rezerwuje ani nie pobiera kredytów lub pieniędzy.
Powiązane modele danych: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffCostRequest · DiffCostResponse · ErrorResponse · XID
Parametry
id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
Żądanie
{
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffCostRequest"
}
}
}
}
Odpowiedzi
200
Podpisane oszacowanie kosztu.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffCostResponse"
}
}
}
}
default
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
POST /public-api/v1/diff-projects/{id}/reports/run
Ponownie przygotowuje adresy URL przed płatnością. Jeśli końcowy koszt lub liczba stron różni się od cost_estimate_id, zwraca 409 cost_estimate_mismatch bez pobierania opłaty. Uzyskaj nowe oszacowanie i ponów uruchomienie z nowym Idempotency-Key.
Powiązane modele danych: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffRunRequest · DiffRunResponse · ErrorResponse · XID
Parametry
id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
Idempotency-Key (header)
{
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 255
}
}
Żądanie
{
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffRunRequest"
}
}
}
}
Odpowiedzi
200
Uruchomienie Diff.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffRunResponse"
}
}
}
}
default
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
GET /public-api/v1/diff-projects/{id}/reports/runs
Parametry
Powiązane modele danych: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffRunListResponse · ErrorResponse · XID
id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
limit (query)
{
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 10000,
"default": 100
}
}
offset (query)
{
"schema": {
"type": "integer",
"minimum": 0,
"default": 0
}
}
Odpowiedzi
200
Uruchomienia Diff.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffRunListResponse"
}
}
}
}
default
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
GET /public-api/v1/diff-projects/{id}/reports/runs/{run_id}
Parametry
Powiązane modele danych: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffRunResponse · ErrorResponse · XID
id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
run_id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
Odpowiedzi
200
Uruchomienie Diff.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffRunResponse"
}
}
}
}
default
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
Inne artykuły w tej sekcji
- Labrika API: szybki start, uwierzytelnianie i błędy
- Labrika API: modele danych i metadane
- Audyty SEO, raporty i eksport przez API
- Słowa kluczowe i pozycje przez API
- Widoczność w AI i sugestie promptów przez API
- AI Writer i opisy produktów przez API
- Alerty, webhooki i harmonogramy API
- Plany pracy, zadania i grupy projektów API
- SERM, specjaliści i scenariusze API
