Endpoint Examples
Data extraction
This endpoint allows you to retrieve specific data from a web page in a structured JSON format based on your predefined schema.
Request Body
-
website
(text): Website url to be scraped. -
json_schema
(text): JSON schema for the response.
Response
The response is a JSON object with the following properties:
-
response
: The JSON object structured as per the provided schema. -
tokens
: The number of tokens. -
success
: Indicates the success status of the request.
POST
Authorizations
Body
multipart/form-data
Example:
"https://www.forbes.com/real-time-billionaires/#7583ee253d78"
Example:
"[{\"name\":\"<name of rich man>\", \"networth\":\"<amount worth>\"}]"
Response
200
application/json
OK
The response is of type object
.