Get Topics
Get metrics for all the topics by website ID
get_topics(ClientGetTopicsParams**kwargs) -> archivedboolaverage_rankingGetTopicsResponseItemAverageRankingmention_rateGetTopicsResponseItemMentionRateprompts_countintroifloatsearch_volumeintshare_of_voiceGetTopicsResponseItemShareOfVoicestartedbooltopicGetTopicsResponseItemTopicGetTopicsResponse
post/api/beta/topics
Returns metrics for all the topics by website ID
Parameters
from_dateint
formatint64
llm_providerstr
tag_idslist
List[str]
to_dateint
formatint64
competitor_urlstr
optional
Returns
GetTopicsResponsetype
from anvil import Anvil
client = Anvil(
api_key="My API Key",
)
response = client.get_topics(
from_date=0,
llm_provider="llmProvider",
tag_ids=["string"],
to_date=0,
)
print(response)200 Example
[
{
"archived": true,
"averageRanking": {
"average": 0,
"dataFormat": "NUMBER",
"dates": [
"2019-12-27T18:11:19.117Z"
],
"daysSpan": 0,
"delta": 0,
"displayName": "displayName",
"fromDate": "2019-12-27T18:11:19.117Z",
"language": "ENGLISH",
"locale": "GLOBAL",
"median": 0,
"metricName": "metricName",
"series": [
{
"date": "2019-12-27T18:11:19.117Z",
"value": 0
}
],
"toDate": "2019-12-27T18:11:19.117Z",
"value": 0
},
"mentionRate": {
"average": 0,
"dataFormat": "NUMBER",
"dates": [
"2019-12-27T18:11:19.117Z"
],
"daysSpan": 0,
"delta": 0,
"displayName": "displayName",
"fromDate": "2019-12-27T18:11:19.117Z",
"language": "ENGLISH",
"locale": "GLOBAL",
"median": 0,
"metricName": "metricName",
"series": [
{
"date": "2019-12-27T18:11:19.117Z",
"value": 0
}
],
"toDate": "2019-12-27T18:11:19.117Z",
"value": 0
},
"promptsCount": 0,
"roi": 0,
"searchVolume": 0,
"shareOfVoice": {
"average": 0,
"dataFormat": "NUMBER",
"dates": [
"2019-12-27T18:11:19.117Z"
],
"daysSpan": 0,
"delta": 0,
"displayName": "displayName",
"fromDate": "2019-12-27T18:11:19.117Z",
"language": "ENGLISH",
"locale": "GLOBAL",
"median": 0,
"metricName": "metricName",
"series": [
{
"date": "2019-12-27T18:11:19.117Z",
"value": 0
}
],
"toDate": "2019-12-27T18:11:19.117Z",
"value": 0
},
"started": true,
"topic": {
"id": "id",
"archived": true,
"language": "ENGLISH",
"lastRun": "2019-12-27T18:11:19.117Z",
"llmProvider": "llmProvider",
"locale": "GLOBAL",
"prompts": [
{
"id": "id",
"language": "ENGLISH",
"text": "text"
}
],
"seoKeywordIndex": 0,
"tags": [
{
"colorHex": "colorHex",
"name": "name",
"websiteTopicId": "websiteTopicId",
"id": "id",
"topicIds": [
"string"
]
}
],
"text": "text",
"websiteId": "websiteId"
}
}
]