Skip to main content
GET
/
api
/
v1
/
brands
/
{brandId}
/
prompts
/
{promptId}
/
evolution
Prompt Evolution
curl --request GET \
  --url https://api.example.com/api/v1/brands/{brandId}/prompts/{promptId}/evolution

Documentation Index

Fetch the complete documentation index at: https://docs.qwairy.co/llms.txt

Use this file to discover all available pages before exploring further.

Track how a prompt’s metrics change over time. Returns daily time-series data for mentions, sources, and sentiment.

Path Parameters

brandId
string
required
The unique identifier of the brand
promptId
string
required
The unique identifier of the prompt

Query Parameters

period
number
Number of days to include. If not specified, returns all data.
startDate
string
Start date (ISO 8601 format)
endDate
string
End date (ISO 8601 format)
provider
string
Filter by AI provider. Supports comma-separated multi-select (e.g., chatgpt,claude).
tag
string
Filter by tag ID. Supports comma-separated multi-select (e.g., id1,id2).

Example Request

curl -X GET "https://www.qwairy.co/api/v1/brands/cm1234567890abcdef/prompts/q1/evolution?period=7" \
  -H "Authorization: Bearer qw-api-your-token-here"

Example Response

{
  "success": true,
  "prompt": {
    "id": "q1",
    "text": "What are the best products in this category?"
  },
  "evolution": [
    {
      "date": "2024-12-01",
      "answers": 5,
      "mentionRate": 80.0,
      "sourceRate": 60.0,
      "avgSentiment": 78.5
    },
    {
      "date": "2024-12-02",
      "answers": 8,
      "mentionRate": 75.0,
      "sourceRate": 62.5,
      "avgSentiment": 80.1
    }
  ]
}

Error Responses

StatusCodeDescription
400INVALID_PARAMETERInvalid query parameter
401INVALID_TOKENAuthentication failed
404BRAND_NOT_FOUNDBrand doesn’t exist or not accessible
404PROMPT_NOT_FOUNDPrompt doesn’t exist