Zadanie: status (check)
GET
/api/tasks/management/serp_analysis/checkZwraca status i postęp zadania SERP. Po utworzeniu zadania odpytuj ten endpoint (parametr task_id w query stringu) aż progress.has_serp_data = true — dopiero wtedy raporty SERP (reports/*) zwrócą dane; wcześniej odpowiadają błędem walidacji Unfinished task.
has_serp_data = crawl SERP zakończony (raporty URL-i, treści, tytułów gotowe). has_keywords_analysis_data = dane Bazy słów dla frazy gotowe (raporty powiązanych fraz, pytań, propozycji).
Żądanie
GET /api/tasks/management/serp_analysis/check?task_id=1579873
Parametry (query string)
| Name | Type | Default |
|---|---|---|
task_id | numberWymagane. ID zadania z create. |
Odpowiedź
| Name | Type | Default |
|---|---|---|
success | boolean | |
data | { id: number; user_id: number; status: string; country_id: number; type: string; data: { keyword: string; }; created: number | null; completed: number | null; serp_analysis_tasks: { id: number; task_id: number; keywords_analysis_data_request: { ...; }; }[]; progress: { ...; }; } |
Błędy
Błędy tego endpointu przychodzą we wspólnej kopercie ze statusem 418.
Powiązane akcje
serp_analysis/create— utworzenie zadania.
Ostatnia aktualizacja: