Get Trends
GET
Get current Twitter trending topics
GET /api/v1/twitter/trends
Authorization
X-API-Key
stringrequired
Parameters
| Name | Type | Required | Description |
|---|
Example Request
curl -X GET \
"https://api.xscraper.xyz/api/v1/twitter/trends" \
-H "X-API-Key: " Response
Trends
application/json
{
"data": [
"#Bitcoin",
"#AI",
"Elon Musk",
"#Tech",
"OpenAI",
"#Crypto",
"SpaceX",
"#Breaking",
"ChatGPT",
"#News"
],
"meta": {
"statusCode": 200,
"timestamp": "2025-04-19T15:49:28.824Z"
}
}Error Responses
401 Unauthorized
{
"statusCode": 401,
"timestamp": "2025-04-19T15:49:28.824Z",
"path": "/api/v1/twitter/trends",
"method": "GET",
"message": "Invalid or expired API key"
}