Query AI answer engines with our Answer Engines API

Our Answer Engines API sends a prompt to ChatGPT Search, Perplexity, Google Gemini, Grok, or Microsoft Copilot and returns the AI-generated answer together with every cited source. Sign up for our free plan to get started.

ChatGPT
Perplexity
Gemini
Grok
Copilot
ANSWER + CITATIONS
forbes.com g2.com
Use cases

Plenty of use cases

Our Answer Engines API is the perfect tool for a countless number of use cases.

Brand Visibility in AI Answers

Track whether your brand is mentioned or cited by ChatGPT, Perplexity, and other AI assistants when users ask questions relevant to your category.

GEO — Generative Engine Optimization

Understand how different AI engines answer the same question — and which sources they rely on — so you can optimise your content for citation.

Competitive Benchmarking

Compare how AI engines position your brand versus competitors for the same set of prompts and queries across multiple markets.

Many More...

Our customers use Zenserp for a countless number of use cases, at small and large scale.

Example use cases

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");
}

Try Zenserp complete and easy-to-use Answer Engines API

Zenserp Answer Engines API returns the AI-generated answer, inline citations, and every source consulted for any prompt. For further testing, visit our Playground.

Sample JSON response
{
  "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"
}
Full coverage

Zenserp covers all available answer engine features and filters

1

Five AI engines in one API

A single endpoint supports ChatGPT Search, Perplexity, Google Gemini, Grok, and Microsoft Copilot. Switch engines by changing a single parameter.

2

Brand visibility tracking

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.

3

Full citation and source data

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.

4

Follow-up prompts

Use additional_prompt to send a follow-up in the same context, enabling multi-turn queries without extra infrastructure.

5

Batch support

Query multiple prompts across multiple engines at once using the Batches endpoint with type: answer_engine.

Start using our free SERP API today!

Get 50 Free Requests

Simple and Economical pricing

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.

Free

All basic to get started
$0/mo
  • 50 Searches
Try Now

Small

Best for hobby projects
$49.99/mo
  • 25,000 Searches
  • All SERP Types
  • AI Overview Access
Try Now

Large

More requests
$299.99/mo
  • 250,000 Searches
  • All SERP Types
  • Batch Endpoint
  • Keyword Search Volume
  • Keyword CPC
  • Bulk Index Checker (GUI)
  • Personal Support
  • Concierge Onboarding
  • Service Level Agreement
  • AI Overview Access
  • Answer Engines Access
Try Now

Premium

For large SERP projects
$499.99/mo
  • 500,000 Searches
  • All SERP Types
  • Batch Endpoint
  • Keyword Search Volume
  • Keyword CPC
  • Bulk Index Checker (GUI)
  • Personal Support
  • Concierge Onboarding
  • Service Level Agreement
  • Custom Queue
  • AI Overview Access
  • Answer Engines Access
Try Now

Enterprise

For large SERP projects
$899.99/mo
  • 1,000,000 Searches
  • All SERP Types
  • Batch Endpoint
  • Keyword Search Volume
  • Keyword CPC
  • Bulk Index Checker (GUI)
  • Personal Support
  • Concierge Onboarding
  • Service Level Agreement
  • Custom Queue
  • All features of Premium, 1,000,000 Searches
  • AI Overview Access
  • Answer Engines Access
Try Now

Need more? Contact us for a custom quote.

Frequently asked questions

Which AI engines are supported?

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.

Does the engine retain context between requests?

No. Each request is independent. To send a follow-up question, use the additional_prompt parameter alongside the original prompt.

What is the maximum prompt length?

Prompts are limited to 4,096 characters, which covers the vast majority of research and brand-monitoring queries.