Making requests
Making requests
You can make requests to the API using any HTTP client. We recommend using cURL for testing purposes. You can also use the Playground page to make requests to the API.
Example
- Get your API token from the Settings page.
- Get the schema ID from the Schemas page.
- Make a request to the API.
curl --request POST \
--url https://api.singleapi.co/functions/v1/scrape \
--header 'Authorization: Bearer <YOUR_TOKEN>' \
--data '{
"url": "https://news.ycombinator.com/",
"schemaId": "YOUR_SELECTED_SCHEMA_ID"
}'