Skip to main content
Every webscrapingai.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
New to Corsair? See API access, authentication, and error handling.

Account

getInfo

account.getInfo Return account quota and credit information Risk: read
Input: empty object Output

Ai

askQuestion

ai.askQuestion Answer a question using the content of a web page Risk: read
Input
Output: string

extractFields

ai.extractFields Extract requested fields from a web page as structured JSON Risk: read
Input
Output: object

Scraping

getHtml

scraping.getHtml Return the rendered HTML of a web page Risk: read
Input
Output: string

getSelectedHtml

scraping.getSelectedHtml Return HTML matching one CSS selector Risk: read
Input
Output: string

getSelectedMultiple

scraping.getSelectedMultiple Return HTML matching multiple CSS selectors Risk: read
Input
Output: object

getText

scraping.getText Return clean text or Markdown extracted from a web page Risk: read
Input
Output: object