메인 콘텐츠로 건너뛰기
GET
최근 포스트 검색

인증

Authorization
string
header
필수

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

Scopes

tweet.read

View all Posts you can see, including those from protected accounts.

users.read

View any account you can see, including protected accounts.

쿼리 매개변수

query
string
필수

포스트와 매칭하기 위한 단일 쿼리/규칙/필터입니다. 최대 쿼리 길이는 https://t.co/rulelength 를 참조하세요.

Required string length: 1 - 4096
예시:

"(from:TwitterDev OR from:TwitterAPI) has:media -is:retweet"

start_time
string<date-time>

YYYY-MM-DDTHH:mm:ssZ 형식. 포스트가 제공되는 가장 이른 UTC 타임스탬프입니다. 타임스탬프는 초 단위 정밀도를 가지며, 경계값을 포함합니다(예: 12:00:01은 해당 분의 첫 번째 초를 포함합니다).

end_time
string<date-time>

YYYY-MM-DDTHH:mm:ssZ 형식입니다. 포스트가 제공될 수 있는 가장 최신 UTC 타임스탬프입니다. 타임스탬프는 초 단위 정밀도를 가지며, 배타적입니다(예: 12:00:01은 해당 분의 첫 번째 초를 포함하지 않습니다).

since_id
string

지정된 id보다 큰(즉, 더 최근의) 포스트 id를 가진 결과를 반환합니다. 이 Tweet의 고유 식별자입니다. 일부 언어 및 도구에서 큰 정수를 처리하지 못해 발생하는 문제를 피하기 위해 문자열로 반환됩니다.

Pattern: ^[0-9]{1,19}$
예시:

"1346889436626259968"

until_id
string

지정된 id보다 작은(즉, 더 이전의) 포스트 id를 가진 결과를 반환합니다. 이 Tweet의 고유 식별자입니다. 일부 언어 및 도구에서 큰 정수를 처리하지 못해 발생하는 문제를 피하기 위해 문자열로 반환됩니다.

Pattern: ^[0-9]{1,19}$
예시:

"1346889436626259968"

max_results
integer<int32>
기본값:10

단일 요청으로 반환할 검색 결과의 최대 개수입니다.

필수 범위: 10 <= x <= 100
next_token
string

다음 ‘페이지’의 결과를 가져오는 데 사용하는 매개변수입니다. 이 매개변수에는 API 응답에서 제공된 값을 그대로 사용해야 하며, 임의로 수정해서는 안 됩니다. base36 페이지네이션 토큰입니다.

Minimum string length: 1
pagination_token
string

다음 ‘페이지’의 결과를 가져오는 데 사용하는 매개변수입니다. 이 매개변수에는 API 응답에서 제공된 값을 그대로 사용해야 하며, 임의로 수정해서는 안 됩니다. base36 페이지네이션 토큰입니다.

Minimum string length: 1
sort_order
enum<string>

결과가 반환되는 정렬 순서입니다.

사용 가능한 옵션:
recency,
relevancy
tweet.fields
enum<string>[]

표시할 Tweet 필드의 쉼표로 구분된 목록입니다. Tweet 객체에서 사용할 수 있는 필드입니다.

Minimum array length: 1
사용 가능한 옵션:
article,
attachments,
author_id,
card_uri,
community_id,
context_annotations,
conversation_id,
created_at,
display_text_range,
edit_controls,
edit_history_tweet_ids,
entities,
geo,
id,
in_reply_to_user_id,
lang,
media_metadata,
non_public_metrics,
note_tweet,
organic_metrics,
possibly_sensitive,
promoted_metrics,
public_metrics,
referenced_tweets,
reply_settings,
scopes,
source,
suggested_source_links,
suggested_source_links_with_counts,
text,
withheld
예시:
expansions
enum<string>[]

확장할 필드를 쉼표로 구분한 목록입니다. Tweet 객체에서 확장할 수 있는 필드 목록입니다. 필드에 id가 포함된 경우 전체 객체로 확장할 수 있습니다.

Minimum array length: 1
사용 가능한 옵션:
article.cover_media,
article.media_entities,
attachments.media_keys,
attachments.media_source_tweet,
attachments.poll_ids,
author_id,
edit_history_tweet_ids,
entities.mentions.username,
geo.place_id,
in_reply_to_user_id,
entities.note.mentions.username,
referenced_tweets.id,
referenced_tweets.id.attachments.media_keys,
referenced_tweets.id.author_id
예시:
media.fields
enum<string>[]

요청에 포함할 Media 필드의 쉼표로 구분된 목록입니다. Media 객체에서 지정할 수 있는 필드입니다.

Minimum array length: 1
사용 가능한 옵션:
alt_text,
duration_ms,
height,
media_key,
non_public_metrics,
organic_metrics,
preview_image_url,
promoted_metrics,
public_metrics,
type,
url,
variants,
width
예시:
poll.fields
enum<string>[]

표시할 Poll 필드를 쉼표로 구분한 목록입니다. Poll 객체에서 사용할 수 있는 필드입니다.

Minimum array length: 1
사용 가능한 옵션:
duration_minutes,
end_datetime,
id,
options,
voting_status
예시:
user.fields
enum<string>[]

요청할 User 필드를 쉼표로 구분한 목록입니다. User 객체에서 사용할 수 있는 필드입니다.

Minimum array length: 1
사용 가능한 옵션:
affiliation,
confirmed_email,
connection_status,
created_at,
description,
entities,
id,
is_identity_verified,
location,
most_recent_tweet_id,
name,
parody,
pinned_tweet_id,
profile_banner_url,
profile_image_url,
protected,
public_metrics,
receives_your_dm,
subscription,
subscription_type,
url,
username,
verified,
verified_followers_count,
verified_type,
withheld
예시:
place.fields
enum<string>[]

요청에 포함할 Place 필드의 쉼표로 구분된 목록입니다. Place 객체에 대해 요청할 수 있는 필드입니다.

Minimum array length: 1
사용 가능한 옵션:
contained_within,
country,
country_code,
full_name,
geo,
id,
name,
place_type
예시:

응답

요청이 성공적으로 처리되었습니다.

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

IETF RFC 7807(https://tools.ietf.org/html/rfc7807)에 정의된 HTTP Problem Details 객체

includes
object
meta
object