PeumeAPI

Places & travel

Query Web Index

Query a fast LLM-first index of web pages, places, and products.

$0.023 per call

Call it

curl https://api.peume.com/v1/call/query-web-index \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "q": "your q"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: query-web-index.

Parameters

llstring

The anchor point for place results. It accepts `@lat,lng`, `@lat,lng,14z`, `@lat,lng,250m`, or `lat,lng`, and is only supported with `type=place`.

hlstring

The language as a two or three-letter language code, optionally followed by a region code (e.g., `en`, `fr`, `en-GB`). Web results are ranked with a preference for the language.

glstring

The country as a two-letter country code (e.g., `us` for the United States, `de` for Germany). Web results are ranked with a preference for the country. Product results are restricted to that market; without `gl`, products from all markets are searched.

product_sourcestring

Restricts product results to one source. It is only supported with `type=product`.

numstring

The number of results to return. (default: `10`).

startstring

The result offset for pagination. (e.g., `0` (default) is the first page, `10` is the second page, etc.).

as_ylostring

The inclusive lower publication year. It must be a 4-digit year and is only supported with `type=publication`.

as_yhistring

The inclusive upper publication year. It must be a 4-digit year and is only supported with `type=publication`.

typestring

The result type. It can be set to `web` (default) to return organic results; typed results may also appear when typed mixing is enabled. Use `place`, `product`, `video`, or `publication` to request one typed corpus directly.

modestring

The search mode. Set to `deep` for expanded via parallel sub-query fan-out. Returns more diverse results by decomposing the query into multiple aspects.

qRequiredstring

The query you want to search.

safestring

The level of filtering for adult content. It can be set to `active` (default) or `off`.

radiusstring

The place search radius in kilometers. It must be greater than `0` and less than or equal to `20000`, and requires `ll`.

json_restrictorstring

The fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.