Get cited-source analytics and citation events
curl --request GET \
--url https://app.promptingco.com/api/v1/sources/analytics \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://app.promptingco.com/api/v1/sources/analytics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.promptingco.com/api/v1/sources/analytics"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"ok": true,
"data": {
"data": [
{
"hostname": "<string>",
"citation_count": 123,
"id": "<string>",
"path": "<string>",
"search": "<string>",
"unique_conversations": 123,
"category": "<string>",
"content_type": "<string>",
"ownership": "<string>",
"brand_name": "<string>",
"brand_slug": "<string>",
"simulation_brand_id": "<string>",
"answer_engines": [
"<string>"
],
"product_mentioned": true,
"title": "<string>",
"author_id": "<string>",
"authorId": "<string>",
"author_name": "<string>",
"authorName": "<string>",
"creator_id": "<string>",
"creatorId": "<string>",
"creator_name": "<string>",
"creatorName": "<string>",
"date": "<string>",
"created_at": "<string>",
"createdAt": "<string>"
}
],
"total": 123,
"totalCitations": 123,
"page": 123,
"pageSize": 123,
"events": [
{
"date": "<string>",
"product_id": "<string>",
"product_name": "<string>",
"product_slug": "<string>",
"prompt_id": "<string>",
"prompt_text": "<string>",
"topic_id": "<string>",
"topic_name": "<string>",
"model": "<string>",
"citation_url": "<string>",
"citation_domain": "<string>",
"source_category": "<string>",
"content_type": "<string>",
"mentioned_product_name": "<string>",
"url_citation_count": 123,
"conversation_query_run_id": "<string>",
"view_ids": [
"<string>"
],
"view_names": [
"<string>"
],
"mentioned_product_id": "<string>",
"overall_sentiment": "positive"
}
],
"eventPagination": {
"page": 123,
"pageSize": 123,
"total": 123,
"totalPages": 123
}
}
}{
"ok": false,
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"ok": false,
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"ok": false,
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"ok": false,
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"ok": false,
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"ok": false,
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}Traffic & Sources
Get cited-source analytics and citation events
GET
/
api
/
v1
/
sources
/
analytics
Get cited-source analytics and citation events
curl --request GET \
--url https://app.promptingco.com/api/v1/sources/analytics \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://app.promptingco.com/api/v1/sources/analytics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.promptingco.com/api/v1/sources/analytics"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"ok": true,
"data": {
"data": [
{
"hostname": "<string>",
"citation_count": 123,
"id": "<string>",
"path": "<string>",
"search": "<string>",
"unique_conversations": 123,
"category": "<string>",
"content_type": "<string>",
"ownership": "<string>",
"brand_name": "<string>",
"brand_slug": "<string>",
"simulation_brand_id": "<string>",
"answer_engines": [
"<string>"
],
"product_mentioned": true,
"title": "<string>",
"author_id": "<string>",
"authorId": "<string>",
"author_name": "<string>",
"authorName": "<string>",
"creator_id": "<string>",
"creatorId": "<string>",
"creator_name": "<string>",
"creatorName": "<string>",
"date": "<string>",
"created_at": "<string>",
"createdAt": "<string>"
}
],
"total": 123,
"totalCitations": 123,
"page": 123,
"pageSize": 123,
"events": [
{
"date": "<string>",
"product_id": "<string>",
"product_name": "<string>",
"product_slug": "<string>",
"prompt_id": "<string>",
"prompt_text": "<string>",
"topic_id": "<string>",
"topic_name": "<string>",
"model": "<string>",
"citation_url": "<string>",
"citation_domain": "<string>",
"source_category": "<string>",
"content_type": "<string>",
"mentioned_product_name": "<string>",
"url_citation_count": 123,
"conversation_query_run_id": "<string>",
"view_ids": [
"<string>"
],
"view_names": [
"<string>"
],
"mentioned_product_id": "<string>",
"overall_sentiment": "positive"
}
],
"eventPagination": {
"page": 123,
"pageSize": 123,
"total": 123,
"totalPages": 123
}
}
}{
"ok": false,
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"ok": false,
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"ok": false,
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"ok": false,
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"ok": false,
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"ok": false,
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}Authorizations
apiKeyAuthbearerAuthcookieAuth
Organization-scoped API key. Available scopes:
- content:read: Read site pages, markdown content, and llms.txt files
- content:write: Create, update, and delete site pages and content
- prompts:read: Read prompts, topics, Radar topics, prompt suggestions, and prompt analysis results
- prompts:write: Create, update, archive prompts and generate, edit, or review prompt suggestions
- simulations:read: Read agent-simulation tasks, runs, environments, and analytics
- simulations:write: Create and trigger simulation runs
- logs:read: Read AI-traffic logs and request-level audit events
- analytics:read: Read analytics aggregates (rankings, mentions, sources, SOV)
- analytics:write: Write events to analytics
- products:read: Read product metadata and competitor data
- products:write: Update product settings and competitor lists