Retrieve analytics for all prompts (queries) tracked in your project.
Get detailed metrics for each prompt including visibility scores, mention counts, and performance indicators. Use this to understand which queries drive the most visibility for your brand.
Use cases:
curl --request POST \
--url https://api.writesonic.com/v2/geo/business/prompts \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"project_id": "<string>",
"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
},
"metrics": [
"answers_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>"
}
]
},
"disabled": {
"join": "and",
"conditions": [
{
"field": "citing_domains",
"operator": "<string>",
"value": "<unknown>"
}
],
"type": "group"
}
}
}
'{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"created_date": "2023-11-07T05:31:56Z",
"intent": [
{
"intent": "transactional",
"value": 123
}
],
"source": [
"<string>"
],
"answers_count": 123,
"answers": [
{
"date": "2023-11-07T05:31:56Z",
"answer": "<string>",
"model": "<string>"
}
]
}
],
"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": {}
}
}
}Request parameters for retrieving all prompts.
Unique identifier of the project to query
"550e8400-e29b-41d4-a716-446655440000"
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
Additional metrics to include. Options: answers_count, answers.
answers_count, answers ["answers_count"]Optional filters to narrow down prompts by topics, tags, markets, etc.
Show child attributes
curl --request POST \
--url https://api.writesonic.com/v2/geo/business/prompts \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"project_id": "<string>",
"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
},
"metrics": [
"answers_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>"
}
]
},
"disabled": {
"join": "and",
"conditions": [
{
"field": "citing_domains",
"operator": "<string>",
"value": "<unknown>"
}
],
"type": "group"
}
}
}
'{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"created_date": "2023-11-07T05:31:56Z",
"intent": [
{
"intent": "transactional",
"value": 123
}
],
"source": [
"<string>"
],
"answers_count": 123,
"answers": [
{
"date": "2023-11-07T05:31:56Z",
"answer": "<string>",
"model": "<string>"
}
]
}
],
"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": {}
}
}
}