Topics
Topics from Events
Find (or search for) topics and the count of events with matches
GET /topics/from_events
Parameter | Type | DataType | Description |
---|---|---|---|
size | query | integer | The number of matches to return |
search | query | string | Search term |
from_index | query | integer | The index to start returning from, combine with size for paging |
Request
https://premium.aiera.com/api/topics/from_events?search=Interest%20Rates
Response
[
{
"topic_id": "133213",
"topic": "interest rates",
"event_count": 23
},
{
"topic_id": "5744645",
"topic": "market interest rates",
"event_count": 1
},
{
"topic_id": "70953299",
"topic": "yen interest rates",
"event_count": 1
},
{
"topic_id": "217282705",
"topic": "short-term interest rates",
"event_count": 2
}
]
Code Samples
Bash
curl --request GET \
--url 'https://premium.aiera.com/api/topics/from_events' \
--header 'X-API-Key: xxx'
Python
import requests
requests.get("https://premium.aiera.com/api/topics/from_events", headers={"X-API-Key": "xxx"})