Pineprompt Brand Mentions API
A brand mention is a single occurrence of a tracked brand inside an AI response, recorded together with its position in the answer and its sentiment score. Brand mentions are read-only.
A brand mention is a single occurrence of a tracked brand inside an AI response, recorded together with its position in the answer and its sentiment score. Brand mentions are read-only.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/pineprompt-com:pineprompt-com-brand-mentions-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Pineprompt Brand Mentions API
description: 'The Pineprompt REST API gives you programmatic access to everything Pineprompt monitors on your behalf: how ChatGPT, Gemini, Claude, Google AI Overview, and Google AI Mode answer questions about your brand. Grok is listed but temporarily unavailable.'
contact:
name: Pineprompt Support
email: support@pineprompt.com
version: 1.0.0
servers:
- url: https://pineprompt.com
description: Production
tags:
- name: brand-mentions
description: A brand mention is a single occurrence of a tracked brand inside an AI response, recorded together with its position in the answer and its sentiment score. Brand mentions are read-only.
x-title: Brand mentions
x-objects:
- BrandMention
paths:
/api/v1/brand-mentions:
get:
tags:
- brand-mentions
summary: List brand mentions
description: Returns every brand mention detected across the active project. The response is paginated, with the newest mentions returned first by default.
operationId: list-brand-mentions
parameters:
- $ref: '#/components/parameters/ProjectHeader'
- $ref: '#/components/parameters/Page'
- $ref: '#/components/parameters/PerPage'
- name: response_id
in: query
description: Limit results to mentions on a single response.
required: false
schema:
type: integer
example: 7842
- name: brand_id
in: query
description: Limit results to mentions of a single brand.
required: false
schema:
type: integer
example: 555
- name: sort_by
in: query
description: The column to sort by. Defaults to `created_at`.
required: false
schema:
type: string
enum:
- created_at
- updated_at
- position
- sentiment_score
- $ref: '#/components/parameters/SortOrder'
- $ref: '#/components/parameters/IncludeBrandMention'
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/BrandMentionList'
'400':
description: Missing project header
x-auto-injected: true
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
example:
message: Missing required header Pineprompt-Project-Id.
'401':
description: Unauthorized
x-auto-injected: true
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
example:
message: Unauthenticated.
'403':
description: Missing ability
x-auto-injected: true
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
example:
message: 'Missing ability: brands:read'
'404':
description: Project not in this organization
x-auto-injected: true
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
example:
message: Project not found.
'422':
description: Validation failed
x-auto-injected: true
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationErrorEnvelope'
example:
message: Invalid sort_by value.
errors:
sort_by:
- Invalid sort_by value.
security:
- BearerToken:
- brands:read
x-codeSamples:
- lang: bash
label: cURL
source: "curl -X GET https://pineprompt.com/api/v1/brand-mentions \\\n -H \"Authorization: Bearer $PINEPROMPT_TOKEN\" \\\n -H \"Pineprompt-Project-Id: 1\""
- lang: javascript
label: JavaScript (fetch)
source: "const response = await fetch(\"https://pineprompt.com/api/v1/brand-mentions\", {\n method: \"GET\",\n headers: {\n \"Authorization\": `Bearer ${process.env.PINEPROMPT_TOKEN}`,\n \"Pineprompt-Project-Id\": \"1\",\n },\n});\n\nif (!response.ok) throw new Error(`Request failed: ${response.status}`);\n\nconst payload = await response.json();"
- lang: python
label: Python (requests)
source: "import os\nimport requests\n\nresponse = requests.get(\n \"https://pineprompt.com/api/v1/brand-mentions\",\n headers={\n \"Authorization\": f\"Bearer {os.environ['PINEPROMPT_TOKEN']}\",\n \"Pineprompt-Project-Id\": \"1\",\n },\n)\n\nresponse.raise_for_status()\npayload = response.json()"
- lang: php
label: PHP (Guzzle)
source: "use GuzzleHttp\\Client;\n\n$response = (new Client())->get('https://pineprompt.com/api/v1/brand-mentions', [\n 'headers' => [\n 'Authorization' => 'Bearer '.getenv('PINEPROMPT_TOKEN'),\n 'Pineprompt-Project-Id' => '1',\n ],\n]);\n\n// Guzzle throws on 4xx/5xx by default, so no manual check needed.\n$payload = json_decode((string) $response->getBody(), true);"
/api/v1/brand-mentions/{brandMention}:
get:
tags:
- brand-mentions
summary: Get a brand mention
description: Returns a single brand mention. The mention must belong to a response in the active project.
operationId: get-brand-mention
parameters:
- $ref: '#/components/parameters/ProjectHeader'
- name: brandMention
in: path
description: The numeric ID of the brand mention.
required: true
schema:
type: integer
example: 91234
- $ref: '#/components/parameters/IncludeBrandMention'
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/BrandMention'
'400':
description: Missing project header
x-auto-injected: true
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
example:
message: Missing required header Pineprompt-Project-Id.
'401':
description: Unauthorized
x-auto-injected: true
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
example:
message: Unauthenticated.
'403':
description: Missing ability
x-auto-injected: true
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
example:
message: 'Missing ability: brands:read'
'404':
description: Not found
x-auto-injected: true
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
example:
message: Brand-Mention not found.
'422':
description: Validation failed
x-auto-injected: true
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationErrorEnvelope'
example:
message: Invalid sort_by value.
errors:
sort_by:
- Invalid sort_by value.
security:
- BearerToken:
- brands:read
x-codeSamples:
- lang: bash
label: cURL
source: "curl -X GET https://pineprompt.com/api/v1/brand-mentions/91234 \\\n -H \"Authorization: Bearer $PINEPROMPT_TOKEN\" \\\n -H \"Pineprompt-Project-Id: 1\""
- lang: javascript
label: JavaScript (fetch)
source: "const response = await fetch(\"https://pineprompt.com/api/v1/brand-mentions/91234\", {\n method: \"GET\",\n headers: {\n \"Authorization\": `Bearer ${process.env.PINEPROMPT_TOKEN}`,\n \"Pineprompt-Project-Id\": \"1\",\n },\n});\n\nif (!response.ok) throw new Error(`Request failed: ${response.status}`);\n\nconst payload = await response.json();"
- lang: python
label: Python (requests)
source: "import os\nimport requests\n\nresponse = requests.get(\n \"https://pineprompt.com/api/v1/brand-mentions/91234\",\n headers={\n \"Authorization\": f\"Bearer {os.environ['PINEPROMPT_TOKEN']}\",\n \"Pineprompt-Project-Id\": \"1\",\n },\n)\n\nresponse.raise_for_status()\npayload = response.json()"
- lang: php
label: PHP (Guzzle)
source: "use GuzzleHttp\\Client;\n\n$response = (new Client())->get('https://pineprompt.com/api/v1/brand-mentions/91234', [\n 'headers' => [\n 'Authorization' => 'Bearer '.getenv('PINEPROMPT_TOKEN'),\n 'Pineprompt-Project-Id' => '1',\n ],\n]);\n\n// Guzzle throws on 4xx/5xx by default, so no manual check needed.\n$payload = json_decode((string) $response->getBody(), true);"
components:
parameters:
PerPage:
name: per_page
in: query
description: The number of items per page. Defaults to `25`, maximum `100`.
required: false
schema:
type: integer
example: 25
Page:
name: page
in: query
description: The page number to return. Defaults to `1`.
required: false
schema:
type: integer
example: 1
SortOrder:
name: sort_order
in: query
description: The direction to sort by. Each endpoint has its own default.
required: false
schema:
type: string
enum:
- asc
- desc
ProjectHeader:
name: Pineprompt-Project-Id
in: header
description: The active project's numeric ID.
required: true
schema:
type: integer
IncludeBrandMention:
name: include
in: query
description: 'A comma-separated list of related resources to include in the response. Allowed values: `response`, `response.prompt`, `response.monitor`, `response.project`, `brand`, `brand.project`, `brand.project.organization`.'
required: false
schema:
type: string
example: brand
schemas:
Response:
title: The response object
description: A response is one captured answer from an AI platform to one prompt on a single daily run. It carries the rendered content, the model that produced it, the monitor's country and language, and any search queries the platform issued.
properties:
id:
description: The unique ID of the response.
type: integer
example: 7842
prompt_id:
description: The numeric ID of the prompt that produced this response. You may pass this ID to the `prompt_id` filter on the list endpoint.
type: integer
example: 901
monitor_id:
description: The numeric ID of the monitor this response ran under.
type: integer
example: 271
prompt_text:
description: The exact prompt text the platform was given.
type: string
example: What are the best AI visibility monitoring tools?
platform:
description: The AI platform that produced this answer.
type: string
example: chatgpt
model:
description: The model identifier reported by the platform.
type: string
example: gpt-4
country:
description: The ISO 3166-1 alpha-2 country code the response was run in.
type: string
example: US
language:
description: The language the response was run in.
type: string
example: en
content:
description: The raw markdown content the platform produced.
type: string
html:
description: The rendered HTML form of the content, suitable for display.
type: string
excerpt:
description: A whitespace-collapsed plain-text excerpt of the content, suitable for list views.
type: string
search_queries:
description: The web search queries the platform ran while producing this answer, if any.
type:
- array
- 'null'
items:
type: string
prompt:
description: The originating prompt. Returned when requested via `include=prompt` or a deeper chain such as `prompt.monitor.project.organization`.
allOf:
- $ref: '#/components/schemas/Prompt'
x-relation: include
monitor:
description: The monitor this response ran under. Returned when requested via `include=monitor` or a deeper chain.
allOf:
- $ref: '#/components/schemas/Monitor'
x-relation: include
project:
description: The project this response belongs to. Returned when requested via `include=project` or `include=project.organization`.
allOf:
- $ref: '#/components/schemas/Project'
x-relation: include
created_at:
description: When the response was recorded.
type: string
format: date-time
example: '2026-05-15T09:11:42+00:00'
updated_at:
description: When the response was last updated.
type: string
format: date-time
example: '2026-05-15T09:11:42+00:00'
type: object
PaginationLink:
title: Pagination link
properties:
url:
description: The URL for this link, or `null` for the disabled previous and next boundaries.
type:
- string
- 'null'
example: https://pineprompt.com/api/v1/monitors?page=2
label:
description: The label for this link, either a page number or a localized previous or next caption.
type: string
example: '2'
page:
description: The page number this link points to, or `null` for the disabled previous and next boundaries.
type:
- integer
- 'null'
example: 2
active:
description: Whether this link is the page currently being returned.
type: boolean
example: false
type: object
PaginationMeta:
title: Pagination metadata
properties:
current_page:
type: integer
example: 1
from:
type:
- integer
- 'null'
example: 1
last_page:
type: integer
example: 1
path:
type: string
example: https://pineprompt.com/api/v1/monitors
per_page:
type: integer
example: 25
to:
type:
- integer
- 'null'
example: 1
total:
type: integer
example: 1
links:
description: The page-link rows, in display order from the first page through the last. The set always opens with a previous link and closes with a next link.
type: array
items:
$ref: '#/components/schemas/PaginationLink'
type: object
Brand:
title: The brand object
description: 'A brand is an entity Pineprompt matches against platform answers: your own brand, a competitor you track, or a brand discovered in an answer. Matches are found through the display name, the aliases, and the domains.'
properties:
id:
description: The unique ID of the brand.
type: integer
example: 555
project_id:
description: The ID of the project the brand belongs to.
type: integer
example: 42
display_name:
description: The canonical display name of the brand.
type: string
example: Acme Inc.
aliases:
description: Alternative names that the brand is referred to by.
type: array
items:
type: string
example:
- Acme
- Acme Co
domains:
description: The web domains associated with the brand.
type: array
items:
type: string
example:
- acme.com
- acme.co
kind:
description: 'The brand''s classification, derived from its context rather than stored: the brand the project''s `brand_id` points at is `own`, a brand with `ignored_at` set is `ignored`, a brand attached to any segment is a `competitor`, and a brand with none of those is `discovered`. This field is read-only.'
type: string
example: competitor
enum:
- own
- competitor
- discovered
- ignored
color:
description: A hex color used to color the brand consistently across charts. It is derived from the brand's favicon, or assigned automatically when no color can be derived. This field is read-only and is always present.
type: string
example: '#008FFB'
ignored_at:
description: When the brand was ignored, or null while it is not. Set and cleared through the `ignored` field on the update endpoint.
type:
- string
- 'null'
format: date-time
example: null
project:
description: The parent project. Returned when requested via `include=project` or `include=project.organization`.
allOf:
- $ref: '#/components/schemas/Project'
x-relation: include
created_at:
description: When the brand was created.
type: string
format: date-time
example: '2026-05-15T09:11:42+00:00'
updated_at:
description: When the brand was last updated.
type: string
format: date-time
example: '2026-05-15T09:11:42+00:00'
type: object
PaginationLinks:
title: Pagination links
properties:
first:
type:
- string
- 'null'
example: https://pineprompt.com/api/v1/monitors?page=1
last:
type:
- string
- 'null'
example: https://pineprompt.com/api/v1/monitors?page=1
prev:
type:
- string
- 'null'
example: null
next:
type:
- string
- 'null'
example: null
type: object
BrandMention:
title: The brand-mention object
description: A brand mention is a single appearance of a tracked brand inside a response, recorded with its position in the answer and its sentiment score.
properties:
id:
description: The unique ID of the brand mention.
type: integer
example: 91234
response_id:
description: The numeric ID of the response the brand was mentioned in. You may pass this ID to the `response_id` filter on the list endpoint.
type: integer
example: 7842
brand_id:
description: The numeric ID of the brand that was mentioned. You may pass this ID to the `brand_id` filter on the list endpoint.
type: integer
example: 555
position:
description: The one-indexed order in which the brand appeared in the response. A position of `1` means the brand was mentioned first.
type: integer
example: 1
sentiment_score:
description: The sentiment score on a 0-100 scale, where 50 is neutral, 0 is strongly negative, and 100 is strongly positive.
type: integer
example: 72
response:
description: The response the brand was mentioned in. Returned when requested via `include=response` or a deeper chain.
allOf:
- $ref: '#/components/schemas/Response'
x-relation: include
brand:
description: The brand that was mentioned. Returned when requested via `include=brand`.
allOf:
- $ref: '#/components/schemas/Brand'
x-relation: include
created_at:
description: When the brand mention was recorded.
type: string
format: date-time
example: '2026-05-15T09:11:42+00:00'
updated_at:
description: When the brand mention was last updated.
type: string
format: date-time
example: '2026-05-15T09:11:42+00:00'
type: object
Organization:
title: The organization object
description: An organization is the top-level billing entity and tenant boundary in Pineprompt. Every project, member, and API key belongs to exactly one organization.
properties:
id:
description: The unique ID of the organization.
type: integer
example: 7
name:
description: The display name of the organization.
type: string
example: Acme Inc.
plan:
description: The key of the active plan, or null when the organization has no active subscription (including a past-due one). Without an active plan, daily monitor runs and write operations are unavailable.
type:
- string
- 'null'
example: pro
billing_url:
description: The billing page where the organization owner can choose a plan or fix a failed payment. Only set when the organization has no active plan and the request is made in the owner membership context (MCP organization tools); always null over the REST API.
type:
- string
- 'null'
format: uri
example: https://pineprompt.io/settings/organizations/7/billing
created_at:
description: When the organization was created.
type: string
format: date-time
example: '2026-05-15T09:11:42+00:00'
updated_at:
description: When the organization was last updated.
type: string
format: date-time
example: '2026-05-15T09:11:42+00:00'
type: object
Monitor:
title: The monitor object
description: 'A monitor is a configured daily run: a set of prompts bound to one or more AI platforms in a chosen country and language. While a monitor is active, Pineprompt runs it once per day on your behalf.'
properties:
id:
description: The unique ID of the monitor.
type: integer
example: 271
project_id:
description: The ID of the project this monitor runs under.
type: integer
example: 42
name:
description: The display name of the monitor.
type: string
example: Brand visibility (US)
platforms:
description: The AI platforms the monitor runs against.
type: array
items:
type: string
example:
- chatgpt
- gemini
- claude
country:
description: The ISO 3166-1 alpha-2 country code.
type: string
example: US
language:
description: The language the monitor runs in.
type: string
example: en
is_active:
description: Whether the monitor will run on its next daily run.
type: boolean
example: true
project:
description: The parent project. Returned when requested via `include=project` or `include=project.organization`.
allOf:
- $ref: '#/components/schemas/Project'
x-relation: include
created_at:
description: When the monitor was created.
type: string
format: date-time
example: '2026-05-15T09:11:42+00:00'
updated_at:
description: When the monitor was last updated.
type: string
format: date-time
example: '2026-05-15T09:11:42+00:00'
type: object
Prompt:
title: The prompt object
description: A prompt is a single question Pineprompt asks the AI platforms on your behalf. An active prompt runs with its monitor once per day; an inactive prompt keeps its history but no longer runs.
properties:
id:
description: The unique ID of the prompt.
type: integer
example: 901
monitor_id:
description: The ID of the monitor that owns this prompt.
type: integer
example: 271
prompt:
description: The question text the monitor asks each platform on every run.
type: string
example: What are the best AI visibility monitoring tools?
is_active:
description: Whether the prompt will run on each daily run of its monitor.
type: boolean
example: true
monitor:
description: The parent monitor. Returned when requested via `include=monitor` or a deeper chain.
allOf:
- $ref: '#/components/schemas/Monitor'
x-relation: include
created_at:
description: When the prompt was created.
type: string
format: date-time
example: '2026-05-15T09:11:42+00:00'
updated_at:
description: When the prompt was last updated.
type: string
format: date-time
example: '2026-05-15T09:11:42+00:00'
type: object
BrandMentionList:
properties:
data:
type: array
items:
$ref: '#/components/schemas/BrandMention'
links:
$ref: '#/components/schemas/PaginationLinks'
meta:
$ref: '#/components/schemas/PaginationMeta'
type: object
Project:
title: The project object
description: A project represents a single brand or site you monitor. Its `brand_id` names the own brand, the brand every core metric is computed for.
properties:
id:
description: The unique ID of the project.
type: integer
example: 42
organization_id:
description: The ID of the organization that owns the project.
type: integer
example: 7
name:
description: The display name of the project.
type: string
example: Acme Marketing
brand_id:
description: The ID of the project's own brand, or null while none has been designated.
type:
- integer
- 'null'
example: 555
organization:
description: The parent organization. Returned when requested via `include=organization`.
allOf:
- $ref: '#/components/schemas/Organization'
x-relation: include
created_at:
description: When the project was created.
type: string
format: date-time
example: '2026-05-15T09:11:42+00:00'
updated_at:
description: When the project was last updated.
type: string
format: date-time
example: '2026-05-15T09:11:42+00:00'
type: object
ErrorEnvelope:
properties:
message:
type: string
type: object
ValidationErrorEnvelope:
properties:
message:
type: string
errors:
type: object
additionalProperties:
type: array
items:
type: string
type: object
securitySchemes:
BearerToken:
type: http
description: An API key bound to a single organization.
bearerFormat: Pineprompt API Key
scheme: bearer