Using the REST API
FireScraper provides a REST API so you can trigger scrapes, check session status, and download results from your own scripts, CI pipelines, or workflow tools like n8n and Make.
Getting an API key
Your key starts with fsk_ and should be kept secret. Never commit it to version control or share it publicly.
Authentication
Include your API key in the Authorization header of every request:
Authorization: Bearer fsk_your_api_key_here
Core endpoints
Start a scrape
POST /api/v1/scrape
Request body:
{
"urls": ["https://docs.example.com"],
"depth": 2,
"minTextLength": 50,
"scraperMode": "article"
}
Response:
{
"sessionId": "abc123",
"status": "PENDING_START"
}
Check session status
GET /api/v1/sessions/:sessionId
Returns the current status of a scrape session. Poll this endpoint until status is DONE or ERROR.
Download results
GET /api/v1/sessions/:sessionId/results
Returns the scraped data as JSON. Each item includes the page URL, extracted text, title, and metadata.
Example workflow
/api/v1/scrape with your URLs and settings/api/v1/sessions/:id every few seconds until status is DONE/api/v1/sessions/:id/results to download the scraped contentRate limits
API requests are rate-limited per account. If you hit the limit, you'll receive a 429 Too Many Requests response. Wait a moment and retry.
Tips
Was this article helpful?
