Scrape
Start Scrape Job
Starts a scrape job for a given URL.
Method: client.scrape.start(params: StartScrapeJobParams): Promise<StartScrapeJobResponse>
Endpoint: POST /api/scrape
Parameters:
StartScrapeJobParams
:url: string
- URL to scrapesessionOptions?:
CreateSessionParams
scrapeOptions?:
ScrapeOptions
Response: StartScrapeJobResponse
Example:
Get Scrape Job
Retrieves details of a specific scrape job.
Method: client.scrape.get(id: string): Promise<ScrapeJobResponse>
Endpoint: GET /api/scrape/{id}
Parameters:
id: string
- Scrape job ID
Response: ScrapeJobResponse
Example:
Start Scrape Job and Wait
Start a scrape job and wait for it to complete
Method: client.scrape.startAndWait(params: StartScrapeJobParams): Promise<ScrapeJobResponse>
Parameters:
StartScrapeJobParams
:url: string
- URL to scrapesessionOptions?:
CreateSessionParams
scrapeOptions?:
ScrapeOptions
Response: ScrapeJobResponse
Example:
Types
ScrapeFormat
ScrapeJobStatus
ScrapeOptions
StartScrapeJobResponse
ScrapeJobData
ScrapeJobResponse
Last updated