AnyAPI / Google Search
AnyAPI tool anyapi-run-google-search on looot: input fields, $0.0009 per call, output shape, and code to run it with curl, JavaScript or Python.
Run a Google web search and get the organic results (title, link, snippet, position) as clean JSON. Returns about 10 results per call - Google stopped honoring bulk result counts in September 2025, so a limit above 10 is accepted but returns no more than a page. Send page 2, 3, … to walk further, or use google.search_100 for up to 100 ranked results in one call, which is cheaper past roughly 20 results. Price: $0.40 per 1,000 requests (flat per request - same cost regardless of results returned). Routing: 4 independent lanes are available in execution order. A failed attempt uses the next lane only when the request’s payment authorizes that lane’s price; the normalized schema stays the same. Catalog: Google Search pricing and uptime - live USD price, lane routing, and measured 30-day uptime. Every Google endpoint.
- Tool id:
anyapi-run-google-search - Provider: AnyAPI
- Job: Get Google search results for a query or keyword (
google.serp.organic) - Price: $0.0009 per call. A call that fails at the provider costs $0.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
autocorrect |
boolean | no | Toggle Google spelling autocorrect (default true). Set false to search the exact query without correction. |
cursor |
string | no | Deprecated: send page instead. A continuation token from an earlier response’s nextCursor is still accepted and still continues on the source that issued it; page is ignored when cursor is sent alongside it. |
gl |
string | no | Two-letter country code for result localization (e.g. us, gb, de). |
hl |
string | no | Two-letter interface and results language code (e.g. en, es, de). |
limit |
integer | no | Maximum number of organic results to return in this response. Google stopped honoring bulk result counts in September 2025, so one page is about 10 results and a limit above 10 is accepted but will not return more than that. To go deeper, send page (about 10 results per page, each billed as a request) or use google.search_100, which returns up to 100 ranked results in a single call for one flat charge and is cheaper past roughly 20 results. Price is flat per request. |
location |
string | no | Fine-grained location to localize results to, more specific than the country-level gl. Send it as an Active Canonical Name from Google’s geo-target list: place, then each parent region, then country, with no space after each comma, e.g. ‘New York,New York,United States’, ‘Austin,Texas,United States’, ‘London,England,United Kingdom’. Common variations are translated to that name when they point to exactly one place: spaces after commas, missing accents, a US state abbreviation (’Orlando, FL, U… |
page |
integer | no | Which page of about 10 organic results to return, starting at 1. Send page 2, 3, … to walk deeper; each page is billed as one request and any source can serve any page. Replaces cursor. |
query |
string | yes | The Google search query. |
timeframe |
string | no | Restrict results to a recent time window: 1h, 1d, 7d, 1y, or all. Default all (no time restriction). |
Output
The run’s result holds the provider’s answer. Signed in, looot inspect anyapi-run-google-search prints its fields.
Run it
Every call needs your API token in LOOOT_TOKEN; Sign in shows how to get one. Each run also needs a new idempotency key, so a retry never pays twice. With wait: 30 the answer comes back inline when the run ends within 30 seconds. Otherwise you get the running run back: poll GET /v1/runs/<runId>.
Example input with placeholder values:
curl -X POST "https://api.looot.ai/v1/runs" \
-H "Authorization: Bearer $LOOOT_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"endpointId":"anyapi-run-google-search","input":{"query":"<query>"},"wait":30}'const response = await fetch("https://api.looot.ai/v1/runs", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.LOOOT_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
endpointId: "anyapi-run-google-search",
input: {
query: "<query>",
},
wait: 30,
}),
});
const run = await response.json();
console.log(run.status, run.result);import os
import uuid
import requests
response = requests.post(
"https://api.looot.ai/v1/runs",
headers={
"Authorization": f"Bearer {os.environ['LOOOT_TOKEN']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"endpointId": "anyapi-run-google-search",
"input": {
"query": "<query>",
},
"wait": 30,
},
timeout=90,
)
run = response.json()
print(run["status"], run.get("result"))To let looot pick among every provider of this job instead, send job:google.serp.organic as endpointId; see the job page.