Our Answer Engines API is the perfect tool for a countless number of use cases.
Track whether your brand is mentioned or cited by ChatGPT, Perplexity, and other AI assistants when users ask questions relevant to your category.
Understand how different AI engines answer the same question — and which sources they rely on — so you can optimise your content for citation.
Compare how AI engines position your brand versus competitors for the same set of prompts and queries across multiple markets.
Our customers use Zenserp for a countless number of use cases, at small and large scale.
The following examples should give you an idea of what you can achieve with our Answer Engines API. For further details, visit our Playground and our Documentation.
curl -X GET -G \
'https://app.zenserp.com/api/v2/answer' \
-H "apikey: your-apikey" \
-d "engine=perplexity" \
-d "prompt=What is the best CRM software for small business?" \
-d "country=us"
# Set engine to chatgpt, perplexity, gemini, grok, or copilot
# Returns answer_text, citations, and search_sources
import requests
headers = {"apikey": "your-apikey"}
params = {
"engine": "perplexity",
"prompt": "What is the best CRM software for small business?",
"country": "us",
}
response = requests.get(
"https://app.zenserp.com/api/v2/answer",
headers=headers,
params=params,
)
data = response.json()
print(data["answer_text"])
for c in data["citations"]:
print(c["position"], c["domain"], c["url"])
const axios = require("axios");
axios.get("https://app.zenserp.com/api/v2/answer", {
headers: { apikey: "your-apikey" },
params: {
engine: "perplexity",
prompt: "What is the best CRM software for small business?",
country: "us",
},
}).then(({ data }) => {
console.log(data.answer_text);
data.citations.forEach((c) => console.log(c.position, c.domain, c.url));
});
<?php
$params = http_build_query([
"engine" => "perplexity",
"prompt" => "What is the best CRM software for small business?",
"country" => "us",
]);
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_URL, "https://app.zenserp.com/api/v2/answer?" . $params);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["apikey: your-apikey"]);
$data = json_decode(curl_exec($ch), true);
curl_close($ch);
echo $data["answer_text"];
curl -X GET -G \
'https://app.zenserp.com/api/v2/answer' \
-H "apikey: your-apikey" \
-d "engine=chatgpt" \
-d "prompt=What is the best CRM software for small business?" \
-d "brand=HubSpot" \
-d "country=us"
# Add brand= to receive a brand_visibility object in the response
# Shows whether the brand is cited and at which position
import requests
headers = {"apikey": "your-apikey"}
params = {
"engine": "chatgpt",
"prompt": "What is the best CRM software for small business?",
"brand": "HubSpot",
"country": "us",
}
data = requests.get(
"https://app.zenserp.com/api/v2/answer",
headers=headers,
params=params,
).json()
if "brand_visibility" in data:
bv = data["brand_visibility"]
print("Brand cited:", bv["cited"], "at position", bv.get("citation_position"))
const axios = require("axios");
axios.get("https://app.zenserp.com/api/v2/answer", {
headers: { apikey: "your-apikey" },
params: {
engine: "chatgpt",
prompt: "What is the best CRM software for small business?",
brand: "HubSpot",
country: "us",
},
}).then(({ data }) => {
if (data.brand_visibility) {
console.log("Brand cited:", data.brand_visibility.cited, "at position", data.brand_visibility.citation_position);
}
});
<?php
$params = http_build_query([
"engine" => "chatgpt",
"prompt" => "What is the best CRM software for small business?",
"brand" => "HubSpot",
"country" => "us",
]);
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_URL, "https://app.zenserp.com/api/v2/answer?" . $params);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["apikey: your-apikey"]);
$data = json_decode(curl_exec($ch), true);
curl_close($ch);
if (isset($data["brand_visibility"])) {
echo "Brand cited: " . ($data["brand_visibility"]["cited"] ? "yes" : "no");
}
Zenserp Answer Engines API returns the AI-generated answer, inline citations, and every source consulted for any prompt. For further testing, visit our Playground.
{
"query": {
"engine": "perplexity",
"prompt": "What is the best CRM software for small business?",
"country": "us"
},
"engine": "perplexity",
"web_search_triggered": true,
"answer_text": "For small businesses, HubSpot CRM is widely regarded as one of the best options due to its generous free tier and ease of use. Pipedrive is another strong choice for sales-focused teams, while Zoho CRM offers the broadest feature set at a low price point.",
"citations": [
{ "position": 1, "title": "Best CRM for Small Business 2026", "url": "https://www.forbes.com/advisor/business/best-crm-small-business/", "domain": "forbes.com" },
{ "position": 2, "title": "HubSpot CRM Review", "url": "https://www.g2.com/products/hubspot-crm/reviews", "domain": "g2.com" }
],
"search_sources": [
{ "url": "https://www.forbes.com/advisor/business/best-crm-small-business/", "title": "Best CRM for Small Business 2026" },
{ "url": "https://www.hubspot.com/products/crm", "title": "HubSpot CRM - Free CRM Software" }
],
"brand_visibility": { "brand": "HubSpot", "cited": true, "citation_position": 1 },
"prompt_sent_at": "2026-07-22T09:00:00.000Z"
}
A single endpoint supports ChatGPT Search, Perplexity, Google Gemini, Grok, and Microsoft Copilot. Switch engines by changing a single parameter.
Add a brand parameter to receive a brand_visibility object in every response — showing whether the brand is cited and at what position in the answer.
Every response includes the inline citations the engine used and the full list of web sources it consulted — structured JSON, ready to store and analyse.
Use additional_prompt to send a follow-up in the same context, enabling multi-turn queries without extra infrastructure.
Query multiple prompts across multiple engines at once using the Batches endpoint with type: answer_engine.
Choose from a variety with different usage limits and features to match the size and scope of your project. All plans include real-time scraping capabilities and 24/7 customer support.
Need more? Contact us for a custom quote.
Zenserp's Answer Engines API supports ChatGPT Search (OpenAI), Perplexity, Google Gemini, Grok (xAI), and Microsoft Copilot. All five are available through a single endpoint — switch engines with the engine parameter.
No. Each request is independent. To send a follow-up question, use the additional_prompt parameter alongside the original prompt.
Prompts are limited to 4,096 characters, which covers the vast majority of research and brand-monitoring queries.