API
Search Genie API for partners
A small, metered API for AI visibility data. Ask ChatGPT and Claude a buyer question and see who they name, read Google results, get keyword ideas and audit a page. You pay per call, from a balance we manage for you.
What is the Search Genie API?
It is a REST API and an MCP server. Every answer is JSON, built from our own fields. You get measurements, not raw answer text.
Use it to check how AI assistants answer the questions your customers ask, to track Google results for those questions, and to find what to write about next. It is built for servers and AI assistants, not for browsers: it sends no CORS headers.
How do I get an API key?
You can do it all yourself in the API console. It needs no plan and no workspace.
Sign in and open the API console. Create a developer account, then create a free sandbox key. Accept the API terms, which the console links for you to read. Add credit by card, from $10. Credit is prepaid, used only by API calls, and not refunded once used. Then press Create live key. The console may ask you to confirm it is you before it creates the key. Open the API console.
For larger volumes or an invoice, write to contact@waggle.ae with your company name and what you plan to build.
A live key looks like sg_live_ followed by 32 letters and digits. We show it once and keep only a fingerprint, so we cannot show it again. Lost keys are replaced, not recovered. Keep keys on your server and out of source control.
How do I authenticate?
Send your key as a bearer token in the Authorization header. A key in the URL is refused.
curl https://search-genie.waggle.ae/api/v1/balance \
-H "Authorization: Bearer sg_live_…"{
"data": { "balance_usd": 49.45, "open_holds_usd": 0 },
"meta": { "cost_usd": 0, "balance_usd": 49.45, "request_id": "req_7f3a91c2" }
}Every answer, success or error, carries a meta object with cost_usd (what this call charged), balance_usd (your available balance after it) and request_id. The same values come back as the headers X-Cost-USD, X-Balance-USD and X-Request-Id. Quote the request id when you write to us.
Which endpoints are there, and what do they cost?
24 routes, most of them paid and a few free. Prices are in US dollars and charged per answer returned.
| Endpoint | MCP tool | What it does | Price |
|---|---|---|---|
| POST /api/v1/ai-check | ai_check | Ask ChatGPT and Claude a buyer question and measure whether your brand and your competitors are named, in what position, and which sources are cited. | $0.15 per ChatGPT answer, $0.50 per Claude answer |
| POST /api/v1/search | google_search | Google results for a query in a market and language: positions, links, titles, snippets and result features. | $0.02 per page of 10 results (depth 10, 20 or 30) |
| POST /api/v1/keyword-ideas | keyword_ideas | Related searches and buyer questions for a seed keyword, each with an intent label. No search volumes. | $0.03 per request |
| POST /api/v1/page-audit | page_audit | A fixed technical check of one public https page: indexability, title, canonical, headings, structured data, AI crawler access and answer readiness. | $0.02 per request |
| POST /api/v1/search-news | google_news | Google News results for a query in a market and language: links, titles, snippets, publisher and the date Google shows (a calendar date only when Google shows an exact one). | $0.02 per request |
| POST /api/v1/search-videos | google_videos | Google video results for a query: links, titles, snippets, platform, channel, duration and the date Google shows. | $0.02 per request |
| POST /api/v1/search-maps | google_maps | The Google Maps places shown for a query in a market, up to 20: name, category, rating, reviews, address, coordinates, phone, website and place id. | $0.02 per request |
| POST /api/v1/search-shopping | google_shopping | The Google Shopping offers shown for a query in a market, up to 40: product title, price and currency, merchant, rating, reviews and product id. | $0.02 per request |
| POST /api/v1/ai-crawler-check | ai_crawler_check | Reads a site's robots.txt and says whether each of ten AI crawlers may fetch the home page and the address you send, with the rule group that decided it and the sitemaps the file lists. | $0.01 per request |
| POST /api/v1/sitemap-check | sitemap_check | Finds a site's sitemaps (robots.txt, then /sitemap.xml and /sitemap_index.xml), reads up to five files and reports address counts, last-modified dates and problems such as invalid XML, other hosts or stale dates. | $0.01 per request |
| POST /api/v1/llms-txt-check | llms_txt_check | Checks a site's /llms.txt and /llms-full.txt: present or not, size, title, summary, sections, links and structure problems. The file's text is never returned. | $0.01 per request |
| POST /api/v1/llms-txt-build | llms_txt_build | Writes an llms.txt file from your site's name, a summary and sections of links. Nothing is fetched. | $0.005 per request |
| POST /api/v1/page-verify | page_verify | Reads one public https page once, as served, and checks it against what you expect: canonical, indexability, text in the title, description or page, schema.org types and hreflang. Returns each check with what was found, the status and a content hash. A 404 is reported and charged; a site that cannot be reached is not. | $0.02 per request |
| POST /api/v1/entity-check | entity_check | Whether a brand has a Wikipedia entry in English or Arabic, by exact title (the name and up to five aliases): the entry, a disambiguation page or a redirect, and the titles tried. | $0.03 per request |
| POST /api/v1/store-readiness | store_readiness | Reads up to 250 products from a store's own public product listing and scores them for AI shopping agents. Counts only, measured on N of M products; checks the listing cannot answer are reported as not measured. Respects robots.txt. | $0.03 per 250 products |
| POST /api/v1/schema-build | schema_build | Builds schema.org JSON-LD (Organization, LocalBusiness, Product, FAQPage, Article, BreadcrumbList or WebSite) from your fields, with the script tag to paste and warnings for recommended fields you left out. Makes no request to any website. | $0.005 per request |
| POST /api/v1/rank-check | rank_check | A bulk job: where one domain ranks on Google for up to 100 keywords in one market and language. For each keyword, the domain's best position in the top 30 and the address that ranks, or none, plus the five other domains that rank highest. | $0.03 per keyword |
| POST /api/v1/ai-check-batch | ai_check_batch | A bulk job: up to 25 AI answer checks at once, each with the fields and the answer of /ai-check. | $0.15 per ChatGPT answer, $0.50 per Claude answer, for each question |
| POST /api/v1/site-audit | site_audit | A bulk job: up to 25 pages of one website, each checked as /page-audit does, plus one check of the site's robots.txt for AI crawlers, its sitemaps and its llms.txt. Pages its robots.txt disallows are skipped and not charged. | $0.02 per page, plus $0.02 per job for the site checks |
| GET /api/v1/jobs/{job_id} | get_job | A bulk job's progress and results: its status, what it has charged so far, and each item's result or error code. A job's inputs and results are deleted 30 days after it was submitted. | Free |
| GET /api/v1/balance | get_usage | Your available balance and open holds. | Free |
| GET /api/v1/usage?days=30 | get_usage | Calls and spend per day and per endpoint, for 1 to 90 days (default 30). | Free |
| POST /api/v1/mcp | all of the above | The same tools over MCP, for AI assistants and editors. | Per tool, as above |
| GET /api/v1/openapi.json | none | The machine-readable description of this API. No key needed. | Free |
Before a paid call runs, we set aside its maximum price from your balance. When the call ends you pay for what was returned and the rest is released. A call that fails, or returns nothing, is not charged. Requests are JSON, up to 16 KB, and unknown fields are refused.
The three bulk jobs answer at once with 202 and a job_id, and set aside the whole job's maximum price. Each keyword, question or page is charged only when it is measured; failed and skipped items are not charged, and what the job did not spend is released when it finishes. Read the job with /jobs/{job_id} or theget_job tool, for free. A bulk job request may be up to 32 KB, and an account may have two jobs open at a time.
What do requests and responses look like?
One example per endpoint, for the invented brand Marra Coffee. Long lists are shortened.
POST /ai-check
curl -X POST https://search-genie.waggle.ae/api/v1/ai-check \
-H "Authorization: Bearer sg_live_…" \
-H "Content-Type: application/json" \
-d '{
"question": "What is the best specialty coffee subscription in Dubai?",
"brand": "Marra Coffee",
"brand_domain": "marracoffee.example",
"competitors": ["Harbor Roast", "Lantern Beans"],
"market": "AE",
"language": "en",
"engines": ["chatgpt", "claude"]
}'{
"data": {
"question": "What is the best specialty coffee subscription in Dubai?",
"market": "AE",
"language": "en",
"engines": [
{
"engine": "chatgpt",
"status": "ok",
"searched_web": true,
"brand": { "named": true, "mentions": 2, "first_position": 3 },
"competitors": [
{ "name": "Harbor Roast", "named": true, "first_position": 1 },
{ "name": "Lantern Beans", "named": false, "first_position": null }
],
"citations": [
{ "url": "https://marracoffee.example/subscriptions", "domain": "marracoffee.example", "title": "Coffee subscriptions" }
]
},
{
"engine": "claude",
"status": "ok",
"searched_web": false,
"brand": { "named": false, "mentions": 0, "first_position": null },
"competitors": [
{ "name": "Harbor Roast", "named": true, "first_position": 2 },
{ "name": "Lantern Beans", "named": true, "first_position": 4 }
],
"citations": []
}
]
},
"meta": { "cost_usd": 0.65, "balance_usd": 48.8, "request_id": "req_2b81d0e4" }
}engines accepts chatgpt and claude and defaults to chatgpt. Each engine is charged only when its status is ok. market is a two-letter country code and language is en or ar. A call can take up to 45 seconds.
POST /search
curl -X POST https://search-genie.waggle.ae/api/v1/search \
-H "Authorization: Bearer sg_live_…" \
-H "Content-Type: application/json" \
-d '{ "query": "specialty coffee subscription", "market": "AE", "language": "en", "depth": 10 }'{
"data": {
"query": "specialty coffee subscription",
"market": "AE",
"language": "en",
"engine": "google",
"results": [
{ "position": 1, "url": "https://harborroast.example/subscribe", "domain": "harborroast.example", "title": "Harbor Roast subscriptions", "snippet": "Fresh beans delivered every two weeks." },
{ "position": 2, "url": "https://marracoffee.example/subscriptions", "domain": "marracoffee.example", "title": "Coffee subscriptions | Marra Coffee", "snippet": "Choose your roast and your schedule." }
],
"features": {
"ai_overview": false,
"people_also_ask": ["How much is a coffee subscription?"],
"related_searches": ["coffee subscription dubai"]
}
},
"meta": { "cost_usd": 0.02, "balance_usd": 48.78, "request_id": "req_91c4a7b0" }
}depth is 10, 20 or 30 results and defaults to 10. Each page of 10 costs $0.02. If an answer cannot be confirmed as a Google result, it is not returned and not charged.
POST /keyword-ideas
curl -X POST https://search-genie.waggle.ae/api/v1/keyword-ideas \
-H "Authorization: Bearer sg_live_…" \
-H "Content-Type: application/json" \
-d '{ "seed": "coffee subscription", "market": "AE", "language": "en", "limit": 3 }'{
"data": {
"seed": "coffee subscription",
"market": "AE",
"language": "en",
"ideas": [
{ "keyword": "best coffee subscription", "intent": "commercial", "sources": ["autocomplete"] },
{ "keyword": "how to choose a coffee subscription", "intent": "informational", "sources": ["autocomplete"] },
{ "keyword": "coffee subscription price", "intent": "commercial", "sources": ["autocomplete"] }
]
},
"meta": { "cost_usd": 0.03, "balance_usd": 48.75, "request_id": "req_c3d95e12" }
}limit is 1 to 50 and defaults to 20. Ideas come without search volumes.
POST /page-audit
curl -X POST https://search-genie.waggle.ae/api/v1/page-audit \
-H "Authorization: Bearer sg_live_…" \
-H "Content-Type: application/json" \
-d '{ "url": "https://marracoffee.example/subscriptions" }'{
"data": {
"url": "https://marracoffee.example/subscriptions",
"final_url": "https://marracoffee.example/subscriptions",
"status_code": 200,
"indexable": { "value": true, "reasons": [] },
"title": { "text": "Coffee subscriptions | Marra Coffee", "length": 35 },
"meta_description": { "text": "Choose your roast and your schedule.", "length": 36 },
"canonical": { "url": "https://marracoffee.example/subscriptions", "self_referencing": true },
"robots_meta": null,
"headings": { "h1": ["Coffee subscriptions"], "h2": ["How does a subscription work?"] },
"structured_data": { "types": ["Organization", "FAQPage"] },
"hreflang": [{ "lang": "en", "url": "https://marracoffee.example/subscriptions" }],
"ai_crawlers": [
{ "name": "GPTBot", "allowed": true },
{ "name": "OAI-SearchBot", "allowed": true },
{ "name": "ChatGPT-User", "allowed": true },
{ "name": "ClaudeBot", "allowed": false },
{ "name": "Claude-SearchBot", "allowed": true },
{ "name": "PerplexityBot", "allowed": true },
{ "name": "Google-Extended", "allowed": true }
],
"answer_readiness": { "word_count": 640, "question_headings": 1, "faq_schema": true, "lists": 2 }
},
"meta": { "cost_usd": 0.02, "balance_usd": 48.73, "request_id": "req_5e07ab36" }
}The audit is a fixed set of checks, with no opinion added. Send a public https address; plain http addresses are refused with url_not_allowed.
What do the errors mean?
An error is JSON with a stable code and a plain sentence. Branch on the code, not on the sentence.
HTTP/1.1 402 Payment Required
{
"error": { "code": "insufficient_balance", "message": "The account balance is too low for this request." },
"meta": { "cost_usd": 0, "balance_usd": 0.01, "request_id": "req_0a6d18f5" }
}If a call is cut off after 58 seconds, check /usage before you retry. The call may have finished and been charged.
| HTTP | Code | Meaning |
|---|---|---|
| 400 | invalid_request | The body is not valid: a missing field, a wrong type or an unknown field. |
| 400 | url_not_allowed | The address is not a public https page. |
| 401 | unauthorized | The key is missing or wrong. Send it in the Authorization header, never in the URL. |
| 401 | key_revoked | This key was revoked. Create a new key in your API console. |
| 402 | insufficient_balance | The account balance is too low for this call. Add credit by card in your API console, or write to contact@waggle.ae for an invoice. |
| 403 | account_suspended | The account is suspended. |
| 403 | terms_not_accepted | This account has not accepted the current API terms. Accept them in your API console when it asks, or write to contact@waggle.ae. |
| 404 | not_found | No such route. |
| 404 | job_not_found | No job with that id on this account. |
| 405 | method_not_allowed | Use the method listed for the route. |
| 422 | page_unreachable | The page could not be fetched. Not charged. |
| 429 | rate_limited | Too many requests. Wait the seconds in the Retry-After header. |
| 429 | daily_cap_reached | This key or account reached its daily limit. It resets at 00:00 UTC. |
| 429 | too_many_jobs | This account already has as many bulk jobs open as it may. Wait for one to finish, then submit again. Nothing was charged. |
| 429 | target_busy | That website is receiving too many checks right now. Not charged. Wait the seconds in the Retry-After header. |
| 500 | internal_error | Something went wrong on our side. Not charged. |
| 502 | upstream_unavailable | The data source did not answer. Not charged. Try again. |
| 502 | engine_not_google | The answer could not be confirmed as a Google result, so it was not returned or charged. |
| 503 | service_paused | The API is paused for the moment. Try again later. |
Can I test without paying?
Yes. Create a sandbox key in the API console. It starts with sg_test_, makes no live lookup and charges nothing.
A sandbox key makes no live lookup. Routes that fetch data about a page, a query or a brand answer with fixed sample data that says nothing about your brand, and the builders build from the fields you send. Calls are still logged and rate limited, which makes it right for building your client and your error handling. When you are ready for live calls, accept the API terms, add credit by card and create a live key yourself in the API console. The steps are under How do I get an API key?
What are the rate limits?
Limits apply to the whole account, not to each key. Past a limit you get 429 rate_limited or daily_cap_reached.
For an account you open yourself, a new paid account may make 60 requests a minute and spend 50 USD a day. Those limits grow with the account: after 100 USD of top-ups over at least 7 days with no dispute, it may make 120 requests a minute and spend 250 USD a day. An account the team opens for you has its own limits, set by the team. You can set a lower daily cap on the account or on any key in your API console. A key or account that reaches its cap gets daily_cap_reached until 00:00 UTC. Sandbox keys may make 1,000 calls a day. Slow down when you see Retry-After, and do not retry a paid call in a tight loop.
Checks of one website are limited too, for every account together, so that no site is hammered. Past that a call gets target_busy with a Retry-After header, and it is not charged.
How do I use it from an AI assistant or editor?
Point an MCP client at https://search-genie.waggle.ae/api/v1/mcp and send your key as a header. Every call in the table above that names a tool is also an MCP tool, with the same input and price.
Claude Code
claude mcp add --transport http searchgenie https://search-genie.waggle.ae/api/v1/mcp --header "Authorization: Bearer sg_live_…"Cursor
Add this to .cursor/mcp.json in your project, or to ~/.cursor/mcp.json for every project.
{
"mcpServers": {
"searchgenie": {
"url": "https://search-genie.waggle.ae/api/v1/mcp",
"headers": { "Authorization": "Bearer sg_live_…" }
}
}
}VS Code
Add this to .vscode/mcp.json.
{
"servers": {
"searchgenie": {
"type": "http",
"url": "https://search-genie.waggle.ae/api/v1/mcp",
"headers": { "Authorization": "Bearer sg_live_…" }
}
}
}Claude Desktop
Claude Desktop reaches a remote server through mcp-remote. Put the header value in an environment variable, as below, so the argument has no space in it.
{
"mcpServers": {
"searchgenie": {
"command": "npx",
"args": [
"-y", "mcp-remote", "https://search-genie.waggle.ae/api/v1/mcp",
"--header", "Authorization:${SG_API_KEY}"
],
"env": { "SG_API_KEY": "Bearer sg_live_…" }
}
}
}ChatGPT
ChatGPT is not part of this API. Connecting from ChatGPT uses the separate Search Genie app, where you sign in with your account. See Connect your AI.
Questions developers ask
How do I get an API key?+
Am I charged when a call fails?+
Can I connect from ChatGPT?+
What is a sandbox key?+
Which guides show it in use?
Where do I go next?
Want to see your own brand first?
Run the free AI-visibility audit. It uses real engine answers and real search data for your domain, and arrives by email.