Przejdź do treści
Dokumentacja

Odczytaj zapisany wynik

GET/v1/scrapes/{scrape_id}

curl "https://api.seoscraper.io/v1/scrapes/SCRAPE_ID" \  -H "Authorization: Bearer ssk_YOUR_KEY"
Odpowiedź 200
{  "url": "https://books.toscrape.com",  "final_url": "https://books.toscrape.com/",  "path": "/",  "status": 200,  "content_type": "text/html",  "redirects": [],  "headers": [    {      "name": "content-type",      "value": "text/html"    }  ],  "duration_ms": 826,  "size_bytes": 51294,  "truncated": false,  "lang": "en-us",  "title": "All products | Books to Scrape - Sandbox",  "meta_description": "",  "canonical": "",  "robots": {    "meta": "NOARCHIVE,NOCACHE",    "x_robots_tag": "",    "index": true,    "follow": true  },  "word_count": 309,  "headings": [    {      "level": 1,      "text": "All products"    }  ],  "links": [    {      "url": "https://books.toscrape.com/catalogue/page-2.html",      "text": "next",      "type": "internal",      "rel": "",      "nofollow": false    }  ],  "images": [    {      "src": "https://books.toscrape.com/media/cache/2c/da/2cdad67c44b002e7ead0cc35693c0e8b.jpg",      "alt": "A Light in the Attic",      "lazy": false,      "width": "",      "height": ""    }  ],  "html": null,  "id": "0f5a8f5e-6d7c-4b1e-a8a1-8f5f0d3c2b11",  "created_at": "2026-11-25T08:00:00Z",  "saved": true}

Parametry ścieżki

  • scrape_idstringwymagane

    Identyfikator wyniku.

Parametry zapytania

  • include_htmlbooleandomyślnie: false

    Dołącz do odpowiedzi surowy HTML.

Odpowiedź200

  • urlstring

    Adres z zapytania.

  • final_urlstring

    Adres po wszystkich przekierowaniach.

  • pathstring

    Ścieżka adresu końcowego.

  • statusinteger

    Status HTTP strony.

  • content_typestring

    Typ treści podany przez serwer.

  • redirectsobject[]

    Kolejne przekierowania z adresem i statusem.

    Pola redirects
    • urlstring

    • statusinteger

  • headersobject[]

    Nagłówki HTTP strony, nazwy małymi literami.

    Pola headers
    • namestring

    • valuestring

  • duration_msinteger

    Czas pobrania w milisekundach.

  • size_bytesinteger

    Rozmiar pobranej treści w bajtach.

  • truncatedboolean

    Czy treść została ucięta na limicie 10 MB.

  • langstring

    Język z atrybutu lang.

  • titlestring

    Treść znacznika title.

  • meta_descriptionstring

    Treść meta description.

  • canonicalstring

    Adres kanoniczny.

  • robotsobject

    Meta robots i X-Robots-Tag oraz wynikowe index i follow.

    Pola robots
    • metastring

      Treść meta robots.

    • x_robots_tagstring

      Wartość nagłówka X-Robots-Tag.

    • indexboolean

      Czy stronę można indeksować.

    • followboolean

      Czy wolno podążać za linkami na stronie.

  • word_countinteger

    Liczba słów w treści strony.

  • headingsobject[]

    Nagłówki od h1 do h6 w kolejności na stronie.

    Pola headings
    • levelinteger

      1 dla h1, 6 dla h6.

    • textstring

  • linksobject[]

    Linki: adres, tekst, typ, rel i nofollow.

    Pola links
    • urlstring

    • textstring

    • typestring

      other: mailto, tel i podobne.

      internalexternalother

    • relstring

      Wartość atrybutu rel.

    • nofollowboolean

  • imagesobject[]

    Obrazy: src, alt, lazy i wymiary.

    Pola images
    • srcstring

    • altstring | null

      null: brak atrybutu, pusty tekst: pusty alt.

    • lazyboolean

      Czy obraz ma loading=lazy.

    • widthstring

    • heightstring

  • htmlstring | null

    Surowy HTML, jeśli poprosisz o include_html. W innym razie null.

  • idstring

    Identyfikator wyniku.

  • created_atstring

    Data i godzina pobrania.

  • savedboolean

    Czy wynik został zapisany w Twoim zespole.

Błędy

Każdy błąd ma ten sam format. Zobacz, co oznaczają kody.

401
unauthorized
404
not_found
422
invalid_request