Endpoints
SERP 2
SERP (Search Engine Results Page) Endpoints
Tasks 2
Queue up to 100 searches at once and collect the results later, via webhook or polling. Built for volume jobs that don't need an instant answer.
What is the Google API?
Google Search APIs
Google API is available on the JoJ API marketplace. Subscribe with a single JoJ API key, call it through one gateway, and pay from one wallet — no separate account or contract with the provider.
Google API endpoints
- GET
/v1Basic SERP
Get web search results, knowledge panel and related keywords
- GET
/v2/serpFull SERP
Google's result pages for a query, one or up to ten in a row. Every field comes off the HTML google.com served. The answer is the query as asked and `pages`, one entry per page served, a single page included, each read on its own: `results` are the organic results in Google's order, each with the URL its own link resolves to (`matched: goto`) or the one Google printed in the clear (`matched: direct`), and a forum thread (Reddit, a Facebook group) its `discussion`: `answers`, `top_answer` and the other `threads` listed under it with their URLs, answer counts and dates (`null` on other results); `ads`, `ai_overview` (with `text`, `html` and `references`), `people_also_ask`, `related_searches` and `page_blocks` (what sat where — an AI Overview above position four is the difference between "ranked fourth" and "fourth thing on the page"). `local_pack` is Google's map pack when the page has one, `null` otherwise: its `places` in Google's order, each with its place id, CID, rating, review count, category, address, phone, opening hours, website and coordinates where the page carries them (Google's phone page carries no place id, phone or website); its sponsored places apart as `ads`; and `results_before`, how many organic results sit above it. A location makes it the pack of that place rather than of the network's exit. There is no `limit`: Google ignores `num`, and a page shows what it shows. Depth comes a page at a time with `page`, or up to ten pages at once with `pages`, fetched on one Google session the way a person pages through them, so a top 100 hangs together. A page Google served for another query than the one asked (it now and then answers one word of a longer query under the query's own title) is never returned. With `paa_answers=true` the first page's entry also carries the answers to its first four people-also-ask questions, each with its question, at one unit an answer. This version replaces `/v1/serp`, which keeps answering in its own shape for existing integrations.
- POST
/v2/serp/tasksQueue Full SERP queries
The same query as `/v2/serp`, queued. Submit up to 100 at once and get an id per task back at once (202); a worker runs them at the rate the pool sustains, and the answers are fetched with `/v2/serp/task` — each exactly what `/v2/serp` would have returned, or the error it would have answered with. Give a `callback_url` and a small notification (`{id, status, http_status}`) is POSTed to it as each task finishes, retried for hours if the endpoint does not answer 2xx; without one, poll `/v2/serp/task` with up to 100 ids per call. Every task is checked at submission with the same rules as `/v2/serp`, so a bad one refuses the whole submission (400 with `task_index`) and nothing is queued or billed. Billed per page queued: one a task, or the `pages` it asks for, and four more for a task with `paa_answers`; fetching is free. A task holds one page's HTML at most, so `include_html` with `pages` above 1 is refused at submission. Results stay fetchable for 48 hours. This is the right entry point for batches: a night's keywords become queue depth rather than a wall of 429s, and the retries on the way are absorbed rather than surfaced.
- GET
/v2/serp/taskFetch queued Full SERP results
The state and, once done, the answer of queued tasks. One id returns `task`; up to 100 comma-separated ids return `tasks` in the order asked, unknown ones as `not_found`. A done task carries `result` — exactly the `/v2/serp` answer — and a failed one `error` with the body and `http_status` `/v2/serp` would have answered. Free. Results are kept 48 hours.