Scrape one page
Fetch a single page and get its SEO data.
In the panel, paste an address in the Scraper. In the API, send it to POST /v1/scrape:
curl -X POST https://api.seoscraper.io/v1/scrape \
-H "Authorization: Bearer ssk_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com"}'An address without a scheme gets https://. The response comes when the page is ready, after 20 seconds at most, so set the timeout of your client to about 40 seconds.
What is read
| Data | Fields |
|---|---|
| Response | status, final_url, redirects, headers, content_type, duration_ms, size_bytes |
| Metadata | title, meta_description, canonical, lang |
| Indexing | robots with the content of meta robots and X-Robots-Tag, and the resulting index and follow |
| Content | headings from h1 to h6, word_count |
| Links | address, text, rel, nofollow and type: internal, external or other |
| Images | address, alt, dimensions and lazy loading |
In images, alt: null means that the attribute is missing, and an empty string means an empty alt, which is correct for decorative images.
A 404 page is a result
When the server answers with 404 or 500, the scrape succeeds and the answer is in status. You get an error only when no page could be read, for example because the domain does not exist. All cases are in Errors.
Raw HTML
The HTML of the page is always saved. It is sent back only when you ask for it:
{ "url": "https://example.com", "include_html": true }Saved results
Every scrape has an id. You can read it again without using a token:
curl "https://api.seoscraper.io/v1/scrapes/SCRAPE_ID?include_html=true" \
-H "Authorization: Bearer ssk_YOUR_KEY"saved: false in a response means that the page was fetched, but the result could not be stored. Keep the response, because it will not be in the history.
Limits
- The content is read up to 10 MB. When it was cut,
truncatedistrue. - A page may redirect up to 10 times.
- JavaScript is not run.