메인 콘텐츠로 건너뛰기
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 객체