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

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
Trending parameters
search_service
enum<string>
required

The platform to get trending topics from

Available options:
github,
hackernews
max_results
integer
default:10

The maximum number of trending items to return

Response

200
application/json
Successful Response
results
object[]
required