For AI agents: llms.txt describes the whole API in one plain text file: every endpoint with its options, credits and error codes.
Features
Scrape
Read any page as Markdown, JSON, a screenshot and more.
Search
Search the web and get full page content in any format.
Parse
Turn documents into Markdown, from a URL or an upload.
Map
Get the URLs of a website, quickly.
Crawl
Read a whole website, page by page.
Base URL
All requests use the following base URL:Authentication
Send your API key in theAuthorization header:
x-api-key header, or an apiKey query parameter, work too. Your API key is on your dashboard. It starts with sr-.
Without a key, requests share a small daily allowance, to try the API. Each response then includes playground with the runs and credits left today.
Response format
A successful response hassuccess: true, the result in data, and the credits the call cost in creditsUsed:
success: false, a message in error, a stable code to act on, and, when one option is the problem, its name in field:
Response codes
See Errors for every error code and what to do about it.