Skip to content

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

  1. Get your API token from the Settings page.
  2. Get the schema ID from the Schemas page.
  3. 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"
}'