Search1API
Advanced

Trending

API endpoint for retrieving trending topics from popular platforms

POST
/trending

Authorization

AuthorizationRequiredBearer <token>

In: header

Request Body

application/jsonRequired

Trending parameters

search_serviceRequiredSearch Service

The platform to get trending topics from

Value in: "github" | "hackernews"
max_resultsMax Results

The maximum number of trending items to return

Default: 10

Response Body

Successful Response

TypeScript Definitions

Use the response body type in TypeScript.

trendingParametersRequiredTrendingRequest
resultsRequiredarray<object>
curl -X POST "https://api.search1api.com/trending" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "search_service": "github",
    "max_results": 10
  }'
{
  "trendingParameters": {
    "search_service": "github",
    "max_results": 10
  },
  "results": [
    {
      "title": "string",
      "url": "string",
      "description": "string"
    }
  ]
}