JavaScript
Reports v1
Query Citations
Get citations for a given category.
POST
JavaScript
Authorizations
Body
application/json
Metrics to include. share_of_voice is deprecated, use citation_share instead.
Available options:
count, citation_share, share_of_voice, first_cited_at Start date for the report. Accepts formats: YYYY-MM-DD, YYYY-MM-DD HH:MM, or full ISO timestamp.
End date for the report. Accepts formats: YYYY-MM-DD, YYYY-MM-DD HH:MM, or full ISO timestamp.
Date interval for the report. (only used with date dimension)
Available options:
hour, day, week, month, quarter, year, relative_week Dimensions to group the report by.
Available options:
hostname, path, date, region, topic, topic_id, model, tag, prompt, prompt_id, url, root_domain, persona, citation_category Custom ordering of the report results.
The order is a record of key-value pairs where:
- `key` is the field to order by, which can be a metric or dimension
- `value` is the direction of the order, either `asc` for ascending or `desc` for descending.
When not specified, the default order is the first metric in the query descending.Examples:
{ "date": "asc" }{ "count": "desc", "date": "asc" }Pagination settings for the report results.
filters
(HostnameFilter · object | PathFilter · object | RegionIdFilter · object | RegionNameFilter · object | TopicIdFilter · object | TopicNameFilter · object | ModelIdFilter · object | TagIdFilter · object | TagNameFilter · object | UrlFilter · object | RootDomainFilter · object | AnalysisTypeFilter · object | PromptTypeFilter · object | PersonaIdFilter · object | CitationCategoryFilter · object | PromptFilter · object | PromptIdFilter · object)[]
List of filters to apply to the citations report.
Filter by hostname
- HostnameFilter
- PathFilter
- RegionIdFilter
- RegionNameFilter
- TopicIdFilter
- TopicNameFilter
- ModelIdFilter
- TagIdFilter
- TagNameFilter
- UrlFilter
- RootDomainFilter
- AnalysisTypeFilter
- PromptTypeFilter
- PersonaIdFilter
- CitationCategoryFilter
- PromptFilter
- PromptIdFilter