Pineprompt Sources API
A source is a URL that a platform cited inside an answer. Pineprompt tracks sources over time so that you may see which pages drive your visibility. Sources are read-only.
A source is a URL that a platform cited inside an answer. Pineprompt tracks sources over time so that you may see which pages drive your visibility. Sources 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-sources-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 Sources 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: Sources
description: A source is a URL that a platform cited inside an answer. Pineprompt tracks sources over time so that you may see which pages drive your visibility. Sources are read-only.
x-title: Sources
x-objects:
- Source
paths:
/api/v1/sources:
get:
tags:
- Sources
summary: List sources
description: Returns every cited source in the active project. The response is paginated.
operationId: list-sources
parameters:
- $ref: '#/components/parameters/ProjectHeader'
- $ref: '#/components/parameters/Page'
- $ref: '#/components/parameters/PerPage'
- name: sort_by
in: query
description: The column to sort by. Defaults to `domain`.
required: false
schema:
type: string
enum:
- created_at
- updated_at
- domain
- $ref: '#/components/parameters/SortOrder'
- $ref: '#/components/parameters/IncludeSource'
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/SourceList'
'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: sources: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:
- sources:read
x-codeSamples:
- lang: bash
label: cURL
source: "curl -X GET https://pineprompt.com/api/v1/sources \\\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/sources\", {\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/sources\",\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/sources', [\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/sources/{source}:
get:
tags:
- Sources
summary: Get a source
description: Returns a single source. The source must belong to the active project.
operationId: get-source
parameters:
- $ref: '#/components/parameters/ProjectHeader'
- name: source
in: path
description: The numeric ID of the source.
required: true
schema:
type: integer
example: 4096
- $ref: '#/components/parameters/IncludeSource'
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Source'
'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: sources:read'
'404':
description: Not found
x-auto-injected: true
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
example:
message: Source 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:
- sources:read
x-codeSamples:
- lang: bash
label: cURL
source: "curl -X GET https://pineprompt.com/api/v1/sources/4096 \\\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/sources/4096\", {\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/sources/4096\",\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/sources/4096', [\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
IncludeSource:
name: include
in: query
description: 'A comma-separated list of related resources to include in the response. Allowed values: `project`, `project.organization`.'
required: false
schema:
type: string
example: project
ProjectHeader:
name: Pineprompt-Project-Id
in: header
description: The active project's numeric ID.
required: true
schema:
type: integer
schemas:
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
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
SourceList:
properties:
data:
type: array
items:
$ref: '#/components/schemas/Source'
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
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
ValidationErrorEnvelope:
properties:
message:
type: string
errors:
type: object
additionalProperties:
type: array
items:
type: string
type: object
Source:
title: The source object
description: A source is a domain that an AI platform cited inside an answer, recorded with its type classification and a playbook of recommended actions.
properties:
id:
description: The unique ID of the source.
type: integer
example: 4096
project_id:
description: The ID of the project the source belongs to.
type: integer
example: 42
domain:
description: The domain of the cited URL.
type: string
example: example.com
type:
description: The source type, as classified by Pineprompt.
type:
- string
- 'null'
example: blog
playbook:
description: The playbook category the source falls under.
type:
- string
- 'null'
example: pitch
enum:
- pitch
- buy
- participate
- claim
- hands_off
- null
analyzed_at:
description: When the source was most recently analyzed, or `null` if it has not yet been analyzed.
type:
- string
- 'null'
format: date-time
example: '2026-05-15T09:11:42+00:00'
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 source was created.
type: string
format: date-time
example: '2026-05-15T09:11:42+00:00'
updated_at:
description: When the source was last updated.
type: string
format: date-time
example: '2026-05-15T09:11:42+00:00'
type: object
securitySchemes:
BearerToken:
type: http
description: An API key bound to a single organization.
bearerFormat: Pineprompt API Key
scheme: bearer