Social Media
X Trending
List X trending topics for a country — trend name, an optional description, and a post-volume context string — as JSON. Costs 1 credit per request.
POST/api/v1/x/trending
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsoncountrystringCountry name to get trends for. Defaults to UnitedStates.
Example: UnitedStates
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.x.trending(country="UnitedStates")
print(results)Response
},
"response_time": 640,
"credits_used": 1,
"credits_remaining": 4810
}