New to Corsair? See API access, authentication, and error handling.
Account
usage
account.usage
Read the active plan, its period and the credits left in it; costs nothing
Risk: read
plan_name, the period start and end, plan_total_credits and remained_credits. The dates arrive without a time zone, so they are strings rather than parsed dates.
Output
Extract
data
extract.data
Fetch a page and have an AI model extract the requested properties as a JSON object; spends the scrape cost plus 1 credit per 30 characters of page and output text
Risk: read
extract_properties is a free-form description of the data, not a schema: append (number), (list: ...) and so on to steer the JSON types. The cost is the scrape cost plus 1 credit per 30 characters of page and output text.
Output: Record<string, any>
Scrape
extended
scrape.extended
Fetch a page and return HTML, text, cookies, headers, status code, XHRs and iframes as JSON; spends 1 to 125 credits
Risk: read
The only operation that returns the target status code as a JSON field (
status_code), along with cookies, headers, xhrs and iframes. xhrs and iframes need the browser.
Output
headers full type
headers full type
xhrs full type
xhrs full type
iframes full type
iframes full type
html
scrape.html
Fetch a page and return its HTML, with the target page status and credit cost; spends 1 to 125 credits depending on browser and proxy
Risk: read
Answers the page itself as text, plus
page_status and credits_cost from the response headers. The published OpenAPI document labels this body application/json; the body is HTML.
Output
markdown
scrape.markdown
Fetch a page and return the whole thing as Markdown, ready for an LLM; spends 1 to 125 credits
Risk: read
Converts the whole page with html2text:
script and noscript are dropped and everything else, including navigation, footers, cookie banners and ads, stays in. To drop parts of a page, remove them with a base64 js_snippet before conversion.
Output