Felo API PlatformFelo API Platform
All X endpoints
v0.2.0-beta
OpenAPI 3.1.0
Server:https://openapi.felo.ai
Client Libraries

Twitter / X

​

Query public users, posts, communities and trends.

Twitter / X Operations

Get Trends

​

Get the trending topics for a location, identified by its Yahoo WOEID (Where On Earth ID), with an optional count (default 30). Use this for a real-time read on what a specific market is talking about right now — useful for timing content or spotting emerging stories. Returns trend names and volumes under trends. Once you pick a trend, search its posts with get_twitter_tweet_advanced_search.

Pricing reference

  • Metering: Plan resource units.
  • Reference request estimate: USD 0.00015.
  • Unit cost basis: USD 1e-05.
  • Resource unit: provider_credit.
  • Reference customer multiplier: 1.0. Do not apply it again to a settled customer amount.
  • Cost bases do not establish the final customer price, including when zero.

Reference metadata only, not an account quote, a guaranteed price or a spending cap. Resource credits are not Felo credits. Final charges follow Felo billing records.

Query Parameters
  • count
    Type: string
  • woeid
    Type: string
Responses
  • 200
    Type: object · Response0D1E98E052C3_TrendsResponse

    Successful response

    • msg
      Type: string
    • status
      Type: string enum
      values
      • success
      • error
    • trends
      Type: array object[] · Response0D1E98E052C3_Trend[]
      • meta_description
        Type: string
      • name
        Type: string
      • rank
        Type: integer Format: int64

        Signed 64-bit integers (long type).

      • target
        Type: object
        • query
          Type: string
    application/json
  • 400

    The request could not be processed. Check the request parameters.

  • 401

    A valid Felo API key is required.

  • 402

    The request cannot proceed because a billing requirement is not met.

  • 403

    The account is not permitted to perform this operation.

  • 429

    A request or spending limit has been reached.

  • 502

    The service could not complete the request.

  • 503

    The API or billing service is temporarily unavailable.

  • 504

    The service timed out while processing the request.

  • default

    Error response; upstream passthrough responses may use provider formats

    application/json
Request Example for get/v1/beta/twitter/trends
curl https://openapi.felo.ai/v1/beta/twitter/trends \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "trends": [
    {
      "name": "string",
      "target": {
        "query": "string"
      },
      "rank": 1,
      "meta_description": "string"
    }
  ],
  "status": "success",
  "msg": "string"
}
Get Trends

Need help?