メインコンテンツへスキップ
GET
/
2
/
trends
/
by
/
woeid
/
{woeid}
WOEID でトレンドを取得
curl --request GET \
  --url https://api.x.com/2/trends/by/woeid/{woeid} \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "trend_name": "<string>",
      "tweet_count": 123
    }
  ],
  "errors": [
    {
      "title": "<string>",
      "type": "<string>",
      "detail": "<string>",
      "status": 123
    }
  ]
}

承認

Authorization
string
header
必須

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

パスパラメータ

woeid
integer<int32>
必須

トレンドを取得する対象の場所の WOEID。

クエリパラメータ

結果の最大件数。

必須範囲: 1 <= x <= 50
trend.fields
enum<string>[]

表示する Trend のフィールドを指定するカンマ区切りのリストです。 Trend オブジェクトで利用可能なフィールドです。

Minimum array length: 1
利用可能なオプション:
trend_name,
tweet_count
:
["trend_name", "tweet_count"]

レスポンス

リクエストは成功しました。

data
object[]
Minimum array length: 1
errors
object[]
Minimum array length: 1

IETF RFC 7807 (https://tools.ietf.org/html/rfc7807) で定義された HTTP Problem Details オブジェクト。