Pagination
Search results
Search is paged with page and num, 1-based, up to 200 results in total per query. has_more says whether the next page exists. Rankings change, so results can shift between pages of different calls. When you need a stable set, ask for one page with a larger num.
Reviews
Place reviews are paged with an opaque page_token, valid for one hour. It is absent on the last page.
Job lists
The pages of a crawl, the results of a batch and the events of a research job are paged with limit, starting_after and next_cursor, oldest first. Pass the next_cursor of one response as starting_after of the next call. When it is absent, the list is complete for now.
curl "https://api.websearch.fast/v1/web/crawl/wc_01JD7R4K8P/pages?limit=100&starting_after=cp_000120" \
-H "Authorization: Bearer $WEBSEARCH_API_KEY"import os
import httpx
response = httpx.get(
"https://api.websearch.fast/v1/web/crawl/wc_01JD7R4K8P/pages",
headers={"Authorization": f"Bearer {os.environ['WEBSEARCH_API_KEY']}"},
params={
"limit": 100,
"starting_after": "cp_000120",
},
timeout=60,
)
response.raise_for_status()
print(response.json())const response = await fetch("https://api.websearch.fast/v1/web/crawl/wc_01JD7R4K8P/pages?limit=100&starting_after=cp_000120", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.WEBSEARCH_API_KEY}`,
},
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());