Lista stron crawla
GET/v1/crawls/{crawl_id}/pages
curl "https://api.seoscraper.io/v1/crawls/CRAWL_ID/pages?issue=missing_description&sort=words&limit=1" \ -H "Authorization: Bearer ssk_YOUR_KEY"{ "total": 50, "pages": [ { "id": 2, "url": "https://books.toscrape.com/catalogue/page-2.html", "final_url": "https://books.toscrape.com/catalogue/page-2.html", "status": 200, "error": null, "depth": 1, "found_on": "https://books.toscrape.com/", "title": "All products | Books to Scrape - Sandbox", "meta_description": "", "canonical": "", "index": true, "word_count": 315, "duration_ms": 198, "size_bytes": 51011, "redirects": 0, "h1": 1, "links": 94, "missing_alt": 0 } ]}Parametry ścieżki
crawl_idstringwymaganeIdentyfikator crawla.
Parametry zapytania
sortstringdomyślnie: "id"Pole, według którego sortować.
idurlstatustitledepthwordstimesizedescbooleandomyślnie: falseSortuj malejąco.
limitintegerdomyślnie: 50min.: 1maks.: 500Ile stron zwrócić.
offsetintegerdomyślnie: 0min.: 0maks.: 100000Ile stron pominąć.
qstringdo 200 znakówTekst w adresie albo tytule. Z
*to wzorzec ścieżki, np./blog/*.issuestring | nullTylko strony z tym problemem.
okclient_errortoo_many_requestsserver_errorfailedrobots_blockedredirectednoindexmissing_titlelong_titleduplicate_titlemissing_descriptionlong_descriptionduplicate_descriptionmissing_h1multiple_h1other_canonicalmissing_altslowfilterstring[]do 400 znakówdo 10 elementówWarunki w postaci
pole:operator:wartość, np.path:pattern:/blog/*albowords:gte:300.matchstringdomyślnie: "all"Czy strona ma spełniać wszystkie warunki, czy dowolny z nich.
allany
Odpowiedź200
totalintegerLiczba stron, które spełniają warunki.
pagesobject[]Pola pages
idintegerNumer strony w crawlu.
urlstringAdres strony.
final_urlstring | nullAdres po wszystkich przekierowaniach.
statusinteger | nullnull, gdy strony nie udało się pobrać.
errorstring | nullKod błędu, gdy strony nie udało się pobrać.
depthintegerLiczba kliknięć od strony startowej.
found_onstringStrona z pierwszym linkiem do tej strony.
titlestringTreść znacznika title.
meta_descriptionstringTreść meta description.
canonicalstringAdres kanoniczny.
indexboolean | nullCzy stronę można indeksować.
word_countinteger | nullLiczba słów w treści strony.
duration_msinteger | nullCzas pobrania w milisekundach.
size_bytesinteger | nullRozmiar pobranej treści w bajtach.
redirectsintegerLiczba przekierowań.
h1integerLiczba nagłówków h1.
linksintegerLiczba linków.
missing_altintegerLiczba obrazów bez atrybutu alt.
Błędy
Każdy błąd ma ten sam format. Zobacz, co oznaczają kody.
- 401
- unauthorized
- 404
- not_found
- 409
- crawl_not_ready
- 422
- invalid_requestinvalid_filter