Retrieve citation metrics showing where and how often your brand is cited in AI responses.
Track the number of citations, unique pages citing your brand, and unique domains across different dimensions. This helps you understand which sources AI models use to reference your brand.
Use cases:
curl --request POST \
--url https://api.writesonic.com/v2/geo/reports/citations \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"project_id": "<string>",
"dimensions": [
"topic"
],
"start_date": "2023-11-07T05:31:56Z",
"end_date": "2023-11-07T05:31:56Z",
"order_by": [
{
"field": "<string>",
"order": "asc"
}
],
"pagination": {
"limit": 10,
"offset": 0
},
"measures": [
"count"
],
"filters": {
"topics": {
"condition": "AND",
"items": [
{
"operator": "is",
"value": "<unknown>"
}
]
},
"prompts": {
"condition": "AND",
"items": [
{
"operator": "is",
"value": "<unknown>"
}
]
},
"tags": {
"condition": "AND",
"items": [
{
"operator": "is",
"value": "<unknown>"
}
]
},
"markets": {
"condition": "AND",
"items": [
{
"operator": "is",
"value": "<unknown>"
}
]
},
"intent": {
"condition": "AND",
"items": [
{
"operator": "is",
"value": "<unknown>"
}
]
},
"branded": {
"condition": "AND",
"items": [
{
"operator": "is",
"value": "<unknown>"
}
]
},
"platform": {
"condition": "AND",
"items": [
{
"operator": "is",
"value": "<unknown>"
}
]
},
"has_shopping_card": {
"condition": "AND",
"items": [
{
"operator": "is",
"value": "<unknown>"
}
]
},
"visibility": {
"condition": "AND",
"items": [
{
"operator": "eq",
"value": "<unknown>"
}
]
},
"rank": {
"condition": "AND",
"items": [
{
"operator": "eq",
"value": "<unknown>"
}
]
},
"website_mentioned_in_answer": {
"condition": "AND",
"items": [
{
"operator": "is",
"value": "<unknown>"
}
]
},
"cited_page_url": {
"condition": "AND",
"items": [
{
"operator": "is",
"value": "<unknown>"
}
]
},
"cited_domain": {
"condition": "AND",
"items": [
{
"operator": "is",
"value": "<unknown>"
}
]
},
"website_mentioned_in_citation": {
"condition": "AND",
"items": [
{
"operator": "is",
"value": "<unknown>"
}
]
},
"status": {
"condition": "AND",
"items": [
{
"operator": "is",
"value": "<unknown>"
}
]
},
"domains": {
"condition": "AND",
"items": [
{
"operator": "is",
"value": "<unknown>"
}
]
},
"paths": {
"condition": "AND",
"items": [
{
"operator": "is",
"value": "<unknown>"
}
]
}
},
"date_aggregation_interval": "day",
"website_type": "SELF"
}
'{
"info": {
"total_rows": 123,
"query": {
"metrics": [
"<string>"
],
"start_date": "2023-11-07T05:31:56Z",
"end_date": "2023-11-07T05:31:56Z",
"order_by": {},
"pagination": {},
"filters": {}
}
},
"data": [
{
"topic_id": "<string>",
"topic_name": "<string>",
"tag_id": "<string>",
"tag_name": "<string>",
"market_id": "<string>",
"market_name": "<string>",
"model_id": "<string>",
"model_name": "<string>",
"query_id": "<string>",
"query_name": "<string>",
"date": "<string>",
"website_id": "<string>",
"website_name": "<string>",
"count": 123,
"unique_pages": 123,
"unique_domains": 123
}
]
}Request parameters for the Citation Report API.
Unique identifier of the project to query
"550e8400-e29b-41d4-a716-446655440000"
Dimensions to group citation data by. At least one dimension is required.
1topic, tag, market, model, query, date, website ["model", "date"]["topic", "market"]Start date for filtering data (ISO 8601 format). If not provided but the metrics are provided then defaults to latest run date else defaults to all time for non report APIs
"2026-01-01T00:00:00Z"
End date for filtering data (ISO 8601 format). If not provided but the metrics are provided then defaults to latest run date else defaults to today for non report APIs
"2024-01-31T23:59:59Z"
List of fields to sort by with their sort direction.
Show child attributes
Pagination parameters. If not provided, returns all results.
Show child attributes
Citation metrics to include. Options: count, unique_pages, unique_domains.
count, unique_pages, unique_domains ["count", "unique_domains"]Optional filters including domain and path filters for citations.
Show child attributes
Time interval for aggregating data when using 'date' dimension.
day, week, month "month"
Filter by website type. SELF for your brand only, SELF+COMPETITORS for all.
SELF, SELF+COMPETITORS Successful Response
curl --request POST \
--url https://api.writesonic.com/v2/geo/reports/citations \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"project_id": "<string>",
"dimensions": [
"topic"
],
"start_date": "2023-11-07T05:31:56Z",
"end_date": "2023-11-07T05:31:56Z",
"order_by": [
{
"field": "<string>",
"order": "asc"
}
],
"pagination": {
"limit": 10,
"offset": 0
},
"measures": [
"count"
],
"filters": {
"topics": {
"condition": "AND",
"items": [
{
"operator": "is",
"value": "<unknown>"
}
]
},
"prompts": {
"condition": "AND",
"items": [
{
"operator": "is",
"value": "<unknown>"
}
]
},
"tags": {
"condition": "AND",
"items": [
{
"operator": "is",
"value": "<unknown>"
}
]
},
"markets": {
"condition": "AND",
"items": [
{
"operator": "is",
"value": "<unknown>"
}
]
},
"intent": {
"condition": "AND",
"items": [
{
"operator": "is",
"value": "<unknown>"
}
]
},
"branded": {
"condition": "AND",
"items": [
{
"operator": "is",
"value": "<unknown>"
}
]
},
"platform": {
"condition": "AND",
"items": [
{
"operator": "is",
"value": "<unknown>"
}
]
},
"has_shopping_card": {
"condition": "AND",
"items": [
{
"operator": "is",
"value": "<unknown>"
}
]
},
"visibility": {
"condition": "AND",
"items": [
{
"operator": "eq",
"value": "<unknown>"
}
]
},
"rank": {
"condition": "AND",
"items": [
{
"operator": "eq",
"value": "<unknown>"
}
]
},
"website_mentioned_in_answer": {
"condition": "AND",
"items": [
{
"operator": "is",
"value": "<unknown>"
}
]
},
"cited_page_url": {
"condition": "AND",
"items": [
{
"operator": "is",
"value": "<unknown>"
}
]
},
"cited_domain": {
"condition": "AND",
"items": [
{
"operator": "is",
"value": "<unknown>"
}
]
},
"website_mentioned_in_citation": {
"condition": "AND",
"items": [
{
"operator": "is",
"value": "<unknown>"
}
]
},
"status": {
"condition": "AND",
"items": [
{
"operator": "is",
"value": "<unknown>"
}
]
},
"domains": {
"condition": "AND",
"items": [
{
"operator": "is",
"value": "<unknown>"
}
]
},
"paths": {
"condition": "AND",
"items": [
{
"operator": "is",
"value": "<unknown>"
}
]
}
},
"date_aggregation_interval": "day",
"website_type": "SELF"
}
'{
"info": {
"total_rows": 123,
"query": {
"metrics": [
"<string>"
],
"start_date": "2023-11-07T05:31:56Z",
"end_date": "2023-11-07T05:31:56Z",
"order_by": {},
"pagination": {},
"filters": {}
}
},
"data": [
{
"topic_id": "<string>",
"topic_name": "<string>",
"tag_id": "<string>",
"tag_name": "<string>",
"market_id": "<string>",
"market_name": "<string>",
"model_id": "<string>",
"model_name": "<string>",
"query_id": "<string>",
"query_name": "<string>",
"date": "<string>",
"website_id": "<string>",
"website_name": "<string>",
"count": 123,
"unique_pages": 123,
"unique_domains": 123
}
]
}