SEO data, one request away.
Scrape a page or crawl a site from your own code. Plain HTTP and JSON, so it works with any language.
curl -X POST https://api.seoscraper.io/v1/scrape \ -H "Authorization: Bearer ssk_YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"url": "https://books.toscrape.com"}'200Response, shortened
{ "final_url": "https://books.toscrape.com/", "status": 200, "title": "All products | Books to Scrape - Sandbox", "meta_description": "", "lang": "en-us", "robots": { "index": true, "follow": true }, "word_count": 309, "duration_ms": 826, "headings": [ { "level": 1, "text": "All products" } ], "links": [ { "url": "https://books.toscrape.com/catalogue/page-2.html", "text": "next", "type": "internal", "nofollow": false } ]}Small enough to learn in one sitting.
POST/v1/scrape- Fetches a page and returns its SEO data.
POST/v1/crawls- Starts a crawl and returns its id right away.
GET/v1/crawls/{id}- Status, progress and the summary of problems.
GET/v1/crawls/{id}/pages- Pages of a crawl, with search, filters and sorting.
GET/v1/crawls/{id}/pages/{page_id}- Full data of one page, with HTML if you ask for it.
POST/v1/crawls/{id}/extract- Values from the saved pages, picked with CSS selectors.
GET/v1/crawls/{id}/download- The whole crawl as a SQLite file.
POST/v1/crawls/{id}/cancel- Stops the crawl and keeps the pages collected so far.
DELETE/v1/crawls/{id}- Deletes the crawl and its results.
A whole site in three requests.
A crawl runs in the background. Start it, check on it every few seconds, and download the result when it is done.
- 1
Start
The response comes with the id of the crawl.
curl -X POST https://api.seoscraper.io/v1/crawls \ -H "Authorization: Bearer ssk_YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"url": "https://example.com", "max_pages": 500}' - 2
Check
Repeat until the status is no longer queued or running.
curl https://api.seoscraper.io/v1/crawls/CRAWL_ID \ -H "Authorization: Bearer ssk_YOUR_KEY" - 3
Download
One SQLite file with pages, links, images, headings and HTML.
curl -L --compressed -o crawl.sqlite \ https://api.seoscraper.io/v1/crawls/CRAWL_ID/download \ -H "Authorization: Bearer ssk_YOUR_KEY"
Predictable from the first call.
- Tokens
- One fetched page is one token, and you get 100 a day for free. Pages that could not be fetched cost nothing.
- Requests
- Up to 60 requests per minute.
- Crawls
- Up to 3 crawls at the same time.
- Keys
- A key acts with the role of its author in the team. We store only its hash, and you can revoke it at any time.
- Errors
- Every error has the same shape: a code for your program and a message for you.
{ "error": { "code": "rate_limited", "message": "Limit of 60 requests per minute exceeded." }}