Batch Requests

Batch Requests

Send multiple search requests in a single API call to reduce latency and stay within rate limits.

Endpoint

POST /v1/batch accepts an array of request objects and returns an array of results in the same order.

curl -X POST "https://api.serpii.com/v1/batch" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "requests": [
      { "endpoint": "/search", "params": { "q": "coffee shops austin" } },
      { "endpoint": "/search", "params": { "q": "best pizza nyc" } }
    ]
  }'

Limits

Batch size is limited to 100 requests per call on most plans. Each request in the batch counts toward your monthly quota. Rate limits apply to the batch endpoint as a whole.

Browse individual APIs