# Perplexity Scraper API - Answers, Sources & Brand Mentions (`tenfoldfleet/perplexity-scraper-api-answers-citations-brand-mentions`) Actor

Ask Perplexity a list of prompts and get each answer with its cited sources, plus whether your brands are mentioned and where your domain ranks among the citations. Sonar with live web search, 190+ countries. Built for AI-visibility tracking. $20 per 1,000 answers; failed prompts are free.

- **URL**: https://apify.com/tenfoldfleet/perplexity-scraper-api-answers-citations-brand-mentions.md
- **Developed by:** [Tenfold Fleet](https://apify.com/tenfoldfleet) (community)
- **Categories:** SEO tools, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $14.00 / 1,000 sonar answers

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

Not affiliated with, endorsed by or sponsored by Perplexity AI. Perplexity and Sonar are trademarks of their owner.

### What does Perplexity Scraper API do?

**Perplexity Scraper API** asks Perplexity a list of prompts and returns every answer as a clean row: the **answer text and markdown**, the **cited sources in order**, a **brand mention check** for each brand you list, and the **citation position of your domain**. It is built for **AI visibility tracking**: run the same prompts every week and see whether Perplexity names your brand, cites your site, and how that changes over time.

How the answers are produced: each prompt is sent to **Perplexity's Sonar model with live web search** through an API, for the country you choose. This is not a scrape of the perplexity.ai web page, so there are no logins, browsers or blocked sessions, and an answer usually comes back in 4 to 6 seconds. Answers from the API can differ slightly from what a signed-in user sees on the website.

### Why use it?

- **Brand visibility in AI search**: find out if Perplexity recommends you or your competitors for the questions your buyers ask.
- **Citation tracking for SEO**: see which domains Perplexity trusts for a topic and whether your pages are among them, with their position (1 = first source).
- **Competitor monitoring**: track up to 50 brands per run; each row lists mention count and where each brand is first named.
- **Scheduled reports**: put the Actor on an Apify schedule and push rows to Google Sheets, a webhook or your BI tool.
- **Content research**: read the answers and sources Perplexity gives for your keywords to plan pages it may cite.

### What data can it extract?

| Field | What it holds |
|---|---|
| `prompt` | The question you asked |
| `model`, `country` | Sonar model that answered and the search country |
| `answerMarkdown` | The answer as Perplexity wrote it, with \[n] source markers |
| `answerText` | The same answer as plain text (markers and markup removed) |
| `citations[]` | `position`, `url`, `domain`, `title` for every cited source, in order |
| `citedDomains` | Distinct domains among the sources |
| `brandMentions[]` | Per brand: `mentioned`, `count`, `firstIndex` (character offset in `answerText`), `cited`, `citationPosition` |
| `targetDomainCited`, `targetDomainPosition` | Whether your domain is cited, and where |
| `tokensOut` | Length of the answer in tokens |
| `costUsd` | Standard price of this row (0.02 or 0.05; 0 for free error rows). GOLD and higher Apify plans pay less |
| `checkedAt`, `status`, `error`, `errorCode` | Time of the answer; `ok` or `error` with the reason and a stable code such as `TASK_FAILED` or `FREE_PLAN_LIMIT` |

### How to track your brand in Perplexity answers

1. Open the Actor and type your prompts in **Prompts**, one per line, phrased the way a customer would ask.
2. Add your brand and competitors in **Brands to track** (a name, a domain, or "Name, domain.com").
3. Put your site in **Your domain** to get its citation position.
4. Pick a **Country** and press **Start**.
5. Download the rows as JSON, CSV or Excel, or read them through the Apify API. To track change over time, save the run as a task and schedule it daily or weekly.

### How much does it cost?

Pay per answer, no subscription:

- **$0.02 per sonar answer** ($20 per 1,000 answers).
- **$0.05 per sonar-pro answer** (paid Apify plans only).
- Prompts that fail, come back empty, time out or are skipped are **free**.
- A tiny start fee of $0.00005 per run.

**Free Apify plan:** the first 2 prompts of each run are answered with sonar; the rest come back as free rows marked as not answered. Every answer costs the developer a data fee, so this limit is set by the Actor developer, not by Apify. Any paid Apify plan runs the full list.

### Input

```json
{
    "prompts": ["best crm software for small business"],
    "brands": ["HubSpot", "Zoho, zoho.com"],
    "targetDomain": "hubspot.com",
    "country": "US",
    "model": "sonar",
    "maxOutputTokens": 800
}
```

### Output

```json
{
    "prompt": "best crm software for small business",
    "model": "sonar",
    "country": "US",
    "answerText": "For most small businesses, HubSpot CRM is the best starting point: it has a strong free plan ...",
    "citationCount": 10,
    "citations": [
        { "position": 1, "url": "(source page URL)", "domain": "pcmag.com", "title": "Best CRM Software for 2026" }
    ],
    "brandMentions": [
        { "brand": "HubSpot", "mentioned": true, "count": 3, "firstIndex": 27, "cited": false, "citationPosition": null },
        { "brand": "Zoho", "mentioned": true, "count": 3, "firstIndex": 253, "cited": false, "citationPosition": null }
    ],
    "targetDomain": "hubspot.com",
    "targetDomainCited": false,
    "targetDomainPosition": null,
    "tokensOut": 413,
    "costUsd": 0.02,
    "checkedAt": "2026-11-23T10:32:27.000Z",
    "status": "ok",
    "error": null,
    "errorCode": null
}
```

You can download the dataset as JSON, CSV, Excel, XML or HTML, or fetch it through the Apify API.

### Tips

- Write prompts as real questions ("best payroll app for a 10 person startup"), not single keywords.
- Ask the same prompt set every run: AI answers vary from day to day, and the trend matters more than one answer.
- Give a domain for each brand ("Asana, asana.com") so citation matching is exact; subdomains count.
- `maxOutputTokens` of 800 fits a full list-style answer. Lower values cut answers short; the price stays the same.
- Set a maximum cost per run in the run options; the Actor stops before it would go over.

### FAQ

#### Is this the same as the Perplexity website?

No. Answers come from Perplexity's Sonar model with web search, called through an API. The sources and wording are close to the website but not always identical, and there is no account, chat history or personalisation.

#### Which countries are supported?

About 190 countries, given as a 2-letter code (US, GB, DE, IN and so on) or a country name. The web search behind the answer runs from that country. An unknown country stops the run before any prompt is sent or charged.

#### What happens when a prompt fails?

You get a row with `status: "error"` and the reason in `error`, and you are not charged for it. Prompts longer than 500 characters are returned the same way.

#### Can I use it from code or an AI agent?

Yes. Call it through the Apify API, the Apify client for JavaScript or Python, or the Apify MCP server, and read the dataset rows as JSON.

#### How is this different from the ChatGPT version?

It checks Perplexity instead of ChatGPT. Run both with the same prompts to compare your visibility across AI search engines; see also the [ChatGPT Search Scraper](https://apify.com/tenfoldfleet/chatgpt-search-scraper-answers-citations-brand-mentions).

### Disclaimer

This Actor returns AI-generated answers and the public web sources they cite. Check important facts at the source. Use the data in line with the terms that apply to you.

# Actor input Schema

## `prompts` (type: `array`):

One prompt per line, written the way a customer would ask it (500 characters at most; longer prompts come back as free error rows). Duplicates are removed. Each prompt is a fresh question with no chat history.

## `brands` (type: `array`):

Optional. Your brand and competitors, one per line: a name, a domain, or both separated by a comma ("Zoho, zoho.com"). Each row lists, per brand, whether the answer names it, how many times, the character index of its first mention, and whether its site is a cited source. Up to 50.

## `targetDomain` (type: `string`):

Optional. A domain such as hubspot.com. Each row says whether Perplexity cites it (subdomains count) and its position in the source list (1 = first source).

## `country` (type: `string`):

Country the web search runs from: a 2-letter code (US, GB, DE) or a country name. Default US.

## `model` (type: `string`):

sonar ($0.02 per answer) is fast and fine for brand tracking. sonar-pro ($0.05 per answer, paid Apify plans only) searches deeper; its answers are capped at 800 output tokens.

## `maxOutputTokens` (type: `integer`):

Longest answer Perplexity may write, in tokens (about 0.75 words each). 800 fits a full list-style answer; lower values cut answers short. 1 to 4096 for sonar, up to 800 for sonar-pro. The price per answer does not change.

## Actor input object example

```json
{
  "prompts": [
    "best crm software for small business"
  ],
  "brands": [
    "HubSpot",
    "Zoho, zoho.com"
  ],
  "targetDomain": "hubspot.com",
  "country": "US",
  "model": "sonar",
  "maxOutputTokens": 800
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "prompts": [
        "best crm software for small business"
    ],
    "brands": [
        "HubSpot",
        "Zoho, zoho.com"
    ],
    "targetDomain": "hubspot.com"
};

// Run the Actor and wait for it to finish
const run = await client.actor("tenfoldfleet/perplexity-scraper-api-answers-citations-brand-mentions").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "prompts": ["best crm software for small business"],
    "brands": [
        "HubSpot",
        "Zoho, zoho.com",
    ],
    "targetDomain": "hubspot.com",
}

# Run the Actor and wait for it to finish
run = client.actor("tenfoldfleet/perplexity-scraper-api-answers-citations-brand-mentions").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "prompts": [
    "best crm software for small business"
  ],
  "brands": [
    "HubSpot",
    "Zoho, zoho.com"
  ],
  "targetDomain": "hubspot.com"
}' |
apify call tenfoldfleet/perplexity-scraper-api-answers-citations-brand-mentions --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tenfoldfleet/perplexity-scraper-api-answers-citations-brand-mentions"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/o36Zv1PDbDm1s6jeE/builds/Dh3pkKhcBPrRo3TJa/openapi.json
