POST

API health

24h health
100%
24h average time
1.95 s
  • Healthy / normal
  • Available
  • Limited
  • Mostly down
Healthy

Last 24 hours

Last 30 days

General web search with site restriction, location (country level only: a country name or two-letter code; a city counts as its country), date window and paging

Price $0.69 per 1,000 requests ($0.000694 per call). Failed calls and empty results are not charged.

AI prompt

#
Help me write a script that calls the EveryInfra "Web search" API.

API contract:
- Request: POST https://api.everyinfra.com/api/v1/search with the header Authorization: Bearer <API Key>. Read the key from the EVERYINFRA_API_KEY environment variable; do not put it in the code.
- In the request body, set tool to web and put the parameters in params.
- Required parameters:
  - q: Search query.
- Optional parameters:
  - site: Search only this site (domain); the same as adding `site:` before the query.
  - location: Region: a country name or two-letter country code; a city counts as its country.
  - after: Only results after this date.
  - before: Only results before this date.
  - page: Result page number, starting at 1.
  - num: Number of results per page, up to 10 (larger values return 10); use page for more results.
- Example request body:
{
  "tool": "web",
  "params": {
    "q": "coffee",
    "num": 3
  }
}
- Billing: Price $0.69 per 1,000 requests ($0.000694 per call). Failed calls and empty results are not charged.
- On 422, fix the parameters using the suggestions and allowed values in the error. On 429 or 503, wait for Retry-After and try again.

Before writing code, ask me how many items I need to process and what format to save the results in, then confirm the plan and the rough cost with me.

Request parameters

#
NameInTypeRequiredDefaultDescription
AuthorizationheaderstringYes-Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository.
toolbodystringYeswebTool name, fixed value.
qbody.paramsstringYes-Search query.
sitebody.paramsstringNo-Search only this site (domain); the same as adding site: before the query.
locationbody.paramsstringNo-Region: a country name or two-letter country code; a city counts as its country.
afterbody.paramsdateNo-Only results after this date.
beforebody.paramsdateNo-Only results before this date.
pagebody.paramsinteger (1–)No1Result page number, starting at 1.
numbody.paramsinteger (1–10)No10Number of results per page, up to 10 (larger values return 10); use page for more results.

Code samples

#
bash
curl -X POST 'https://api.everyinfra.com/api/v1/search' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "tool": "web",
  "params": {
    "q": "coffee",
    "num": 3
  }
}'

OpenAPI definition (JSON)Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.

Response example

#
Captured October 24, 2026 at 18:28 (UTC) by calling this API with the parameters in the code sample above. results and count are that call's real response with personal information (names, handles, avatars, profile links, contact details) removed; the list keeps the first 2. id, billing and quota differ on every call, so only their shape is shown.
json
{  "id": "req_…",  "tool": "web",  "results": [    {      "title": "Coffee",      "url": "https://en.wikipedia.org/wiki/Coffee",      "snippet": "Coffee is a beverage brewed from roasted, ground coffee beans. Dark-colored and bitter, coffee has a stimulating effect on humans due to its caffeine content; ..."    },    {      "title": "Coffee - The Nutrition Source",      "url": "https://nutritionsource.hsph.harvard.edu/food-features/coffee/",      "snippet": "Various polyphenols in coffee have been shown to prevent cancer cell growth in animal studies. Coffee has also been associated with decreased estrogen levels, a ..."    }  ],  "billing": {    "charged": …,    "charged_usd": …,    "balance_after_usd": …,    …  },  "quota": { … }}

Errors and billing

#
401
Missing or invalid key.
402
Insufficient balance. Top up first.
422
Invalid parameter name or value. Fix it using the suggestions in the error. No charge.
429
Per-minute request limit reached. Wait for Retry-After, then try again.
503
Could not complete. The held charge is returned to your balance. If the outcome is unknown, verify it before you retry.
200 empty
No data. No charge.

Errors

Our own visit stats are always on. Google Analytics loads only if you choose “Allow analytics”. Privacy policy