Przejdź do treści
Dokumentacja

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"
Odpowiedź 200
{  "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_idstringwymagane

    Identyfikator crawla.

Parametry zapytania

  • sortstringdomyślnie: "id"

    Pole, według którego sortować.

    idurlstatustitledepthwordstimesize

  • descbooleandomyślnie: false

    Sortuj malejąco.

  • limitintegerdomyślnie: 50min.: 1maks.: 500

    Ile stron zwrócić.

  • offsetintegerdomyślnie: 0min.: 0maks.: 100000

    Ile stron pominąć.

  • qstringdo 200 znaków

    Tekst w adresie albo tytule. Z * to wzorzec ścieżki, np. /blog/*.

  • issuestring | null

    Tylko strony z tym problemem.

    okclient_errortoo_many_requestsserver_errorfailedrobots_blockedredirectednoindexmissing_titlelong_titleduplicate_titlemissing_descriptionlong_descriptionduplicate_descriptionmissing_h1multiple_h1other_canonicalmissing_altslow

  • filterstring[]do 400 znakówdo 10 elementów

    Warunki w postaci pole:operator:wartość, np. path:pattern:/blog/* albo words:gte:300.

  • matchstringdomyślnie: "all"

    Czy strona ma spełniać wszystkie warunki, czy dowolny z nich.

    allany

Odpowiedź200

  • totalinteger

    Liczba stron, które spełniają warunki.

  • pagesobject[]

    Pola pages
    • idinteger

      Numer strony w crawlu.

    • urlstring

      Adres strony.

    • final_urlstring | null

      Adres po wszystkich przekierowaniach.

    • statusinteger | null

      null, gdy strony nie udało się pobrać.

    • errorstring | null

      Kod błędu, gdy strony nie udało się pobrać.

    • depthinteger

      Liczba kliknięć od strony startowej.

    • found_onstring

      Strona z pierwszym linkiem do tej strony.

    • titlestring

      Treść znacznika title.

    • meta_descriptionstring

      Treść meta description.

    • canonicalstring

      Adres kanoniczny.

    • indexboolean | null

      Czy stronę można indeksować.

    • word_countinteger | null

      Liczba słów w treści strony.

    • duration_msinteger | null

      Czas pobrania w milisekundach.

    • size_bytesinteger | null

      Rozmiar pobranej treści w bajtach.

    • redirectsinteger

      Liczba przekierowań.

    • h1integer

      Liczba nagłówków h1.

    • linksinteger

      Liczba linków.

    • missing_altinteger

      Liczba 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