X (Twitter) User reposts API
POST
API 상태
- 24시간 상태
- 정상
- 양호 / 정상
- 사용 가능
정상
최근 24시간
최근 30일
List the posts an X (Twitter) account has reposted, from username, newest repost first. Each row is the original post with its text, author and counts, plus reposted_by and reposted_at. Up to 20 per page; page on with next_page_token.
POST https://api.everyinfra.com/api/v1/social을 보내고 platform은 twitter, action은 user_reposts로 설정합니다. 요금은 요청 1,000개당 $0.56(호출당 $0.000556)입니다. 실패한 호출과 빈 결과에는 과금하지 않습니다. 동기 방식입니다. 오래 걸리는 작업은 요청 본문에 "mode": "async"를 추가하고 job_id를 받아 폴링하세요.
AI 프롬프트
#EveryInfra X (Twitter) User reposts 엔드포인트(twitter/user_reposts)를 사용하는 데이터 수집 스크립트 작성을 도와주세요.
엔드포인트 사용 방법:
- 요청: Authorization: Bearer <API 키> 헤더와 함께 POST https://api.everyinfra.com/api/v1/social로 보냅니다. 키는 EVERYINFRA_API_KEY 환경 변수에서 읽고, 절대 하드코딩하지 마세요.
- 요청 본문에서 platform은 twitter, action은 user_reposts로 설정하고, 파라미터는 params 안에 넣습니다.
- 필수 파라미터:
- username: X username, with or without @, or a profile link such as https://x.com/NASA.
- 선택 파라미터:
- page_token: Page token. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received, with the other parameters unchanged. Each page holds up to 20 rows and is one call.
- 레코드 목록을 반환합니다. 각 레코드의 주요 필드: id, url, text, like_count, retweet_count, reply_count, view_count, posted_at, author_username, author_name, author_url, author_follower_count; 전체 필드 33개, 전체 목록은 https://api.everyinfra.com/api/v1/social/catalog?platform=twitter.
- 요청 본문 예시:
{
"platform": "twitter",
"action": "user_reposts",
"params": {
"username": "nasa"
}
}
- 요금: 요청 1,000개당 $0.56. 실패하거나 빈 결과에는 과금하지 않습니다.
- 대상이 수십~수백 개라면 요청 본문에 "mode": "async"를 추가하세요. job_id를 즉시 받은 뒤 GET https://api.everyinfra.com/api/v1/jobs/{job_id}를 폴링해 결과를 가져옵니다.
- 422가 반환되면 오류에 제시된 파라미터 이름과 허용 값을 참고해 요청을 수정하고, 429 또는 503이 반환되면 Retry-After만큼 기다린 뒤 다시 시도합니다.
코드를 작성하기 전에 필요한 대상과 수량, 필드, 원하는 출력 형식을 먼저 물어봐 주세요. 그런 다음 계획과 대략적인 비용을 저와 확인해 주세요.요청 파라미터
#| 이름 | 위치 | 타입 | 필수 | 기본값 | 설명 |
|---|---|---|---|---|---|
Authorization | header | string | 예 | - | Bearer 뒤에 API 키를 붙여 입력합니다. API 키는 콘솔에서 생성하며, URL이나 코드 저장소에 절대 넣지 마세요. |
platform | body | string | 예 | twitter | 플랫폼 식별자이며 고정값입니다. |
action | body | string | 예 | user_reposts | 기능 식별자이며 고정값입니다. |
username | body.params | string | 예 | - | X username, with or without @, or a profile link such as https://x.com/NASA. |
page_token | body.params | string | 아니요 | - | Page token. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received, with the other parameters unchanged. Each page holds up to 20 rows and is one call; limit has no effect. Tokens last 24 hours; the last page has no next_page_token. |
코드 샘플
#bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
-H "Authorization: Bearer $EVERYINFRA_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"platform": "twitter",
"action": "user_reposts",
"params": {
"username": "nasa"
}
}'OpenAPI 정의(JSON)샘플 코드는 EVERYINFRA_API_KEY 환경 변수에서 키를 읽으므로, 복사한 코드에는 API 키가 포함되지 않습니다.
응답 예시
#November 21, 2026 at 07:22(UTC)에 위 코드 샘플의 파라미터로 이 API를 호출해 수집한 응답입니다. results와 count는 해당 호출의 실제 응답이며, 개인정보(이름, 핸들, 아바타, 프로필 링크, 연락처)는 제거했습니다(목록은 처음 2개만 표시). id, billing, quota는 호출할 때마다 달라지므로 형태만 표시합니다.
json
{ "id": "req_…", "platform": "twitter", "action": "user_reposts", "results": [ { "id": "•••", "url": "https://x.com/NASASpox/status/2123892108893295099", "text": "Another week of exploration, partnership, and discovery at @NASA!\n\n📡 Voyager 1 reaches one light-day from Earth\n🇯🇵 @••• visits Japan and JAXA\n🧪 @••• ISS research heads home to advance medicine and future missions\n\nHere’s your NASA Minute!", "like_count": 397, "retweet_count": 48, "reply_count": 16, "view_count": 120614, "posted_at": "2026-11-20T21:31:53+00:00", "author_username": "N•••x", "author_name": "N•••x", "author_url": "https://x.com/•••", "author_follower_count": 20752, "quote_count": 5, "bookmark_count": 20, "language": "en", "conversation_id": "2123892108893295099", "is_reply": false, "is_quote": false, "is_repost": true, "media": [ { "type": "video", "url": "https://pbs.twimg.com/media/HXmO91SXUAAwUEh.jpg", "width": 1080, "height": 1920, "duration_sec": 100.7, "video_url": "https://video.twimg.com/amplify_video/2123885768443674624/vid/avc1/1080x1920/XU-ESVN5knbA18fV.mp4?tag=29" } ], "mentions": [ "NASA", "N•••n", "S•••n" ], "author_id": "•••", "author_avatar_url": "https://pbs.twimg.com/•••", "author_bio": "•••", "author_is_verified": true, "author_created_at": "2025-04-03T20:34:05+00:00", "platform": "twitter", "reposted_by": "NASA", "reposted_at": "2026-11-20T22:32:40+00:00" }, { "id": "•••", "url": "https://x.com/NASASolarSystem/status/2123830179617186024", "text": "Millions of people fly every day, but there’s only one trip like this. 🚀\n\nSend your name nearly a billion miles to Saturn’s moon Titan with NASA’s Dragonfly mission. Boarding passes for you and your crew: https://go.nasa.gov/dragonfly-names", "like_count": 545, "retweet_count": 107, "reply_count": 23, "view_count": 121493, "posted_at": "2026-11-20T17:25:48+00:00", "author_username": "N•••m", "author_name": "N•••m", "author_url": "https://x.com/•••", "author_follower_count": 2977774, "quote_count": 13, "bookmark_count": 114, "language": "en", "conversation_id": "2123830179617186024", "is_reply": false, "is_quote": false, "is_repost": true, "media": [ { "type": "video", "url": "https://pbs.twimg.com/media/HXlcSwjWQAAzLF2.png", "width": 720, "height": 405, "duration_sec": 50, "video_url": "https://video.twimg.com/amplify_video/2123830107949117440/vid/avc1/1920x1080/TEGVtCeTF12JkdXh.mp4?tag=16" } ], "links": [ "https://go.nasa.gov/dragonfly-names" ], "author_id": "•••", "author_avatar_url": "https://pbs.twimg.com/•••", "author_bio": "•••", "author_is_verified": true, "author_created_at": "2008-06-19T03:16:46+00:00", "platform": "twitter", "reposted_by": "NASA", "reposted_at": "2026-11-20T17:55:17+00:00" } ], "next_page_token": …, "pagination": { … }, "count": 20, "billing": { "charged": …, "charged_usd": …, "balance_after_usd": …, … }, "quota": { … }}
응답 필드
#비즈니스 데이터는 results에 담깁니다. 아래 표는 레코드에 포함될 수 있는 필드를 나열하며, 플랫폼에 표시되지 않는 값을 임의로 만들어 넣지 않습니다.
| 필드 | 의미 |
|---|---|
id | 플랫폼에서 레코드의 고유 ID입니다. 한 플랫폼 안에서만 고유하며, 플랫폼이 다르면 ID가 중복될 수 있습니다. |
url | 플랫폼에서 해당 레코드로 연결되는 링크입니다. |
text | HTML을 제거한 본문으로, 잘리지 않고 전체가 반환됩니다(일부 플랫폼은 목록 결과 자체에 발췌문만 포함되며, 이 경우 해당 플랫폼의 필드 설명에 명시되어 있습니다). |
like_count | 좋아요 수입니다. null은 플랫폼 또는 이 기능에서 공개하지 않는다는 뜻이며, 0이 아닙니다. |
retweet_count | 플랫폼 자체의 의미를 따름 |
reply_count | 답글 수로, 보통 댓글에 달린 답글입니다. null은 비공개라는 뜻입니다. |
view_count | 조회수 또는 재생 수입니다. null은 비공개라는 뜻이며, 0이 아닙니다. |
posted_at | 게시 시각으로, ISO 8601 UTC 형식입니다(예: 2026-08-07T12:34:56+00:00). 플랫폼에서 받은 비표준 문자열은 그대로 전달되므로 방어적으로 파싱하세요. null이면 플랫폼이 공개하지 않은 것입니다. |
author_username | 작성자의 사용자 이름(@handle)으로, 보통 URL에 사용할 수 있습니다. |
author_name | 작성자의 표시 이름입니다. |
author_url | 플랫폼의 작성자 프로필 링크입니다. |
author_follower_count | 작성자의 팔로워 수입니다. null은 비공개라는 뜻입니다. |
quote_count | 플랫폼 자체의 의미를 따름 |
bookmark_count | 플랫폼 자체의 의미를 따름 |
language | 플랫폼이 판단한 콘텐츠 언어 코드입니다(예: zh, en). 틀릴 수 있습니다. |
conversation_id | 플랫폼 자체의 의미를 따름 |
is_reply | 플랫폼 자체의 의미를 따름 |
is_quote | 플랫폼 자체의 의미를 따름 |
is_repost | 플랫폼 자체의 의미를 따름 |
reply_to_id | 플랫폼 자체의 의미를 따름 |
reply_to_user_id | 플랫폼 자체의 의미를 따름 |
reply_to | 플랫폼 자체의 의미를 따름 |
media | 플랫폼 자체의 의미를 따름 |
hashtags | 본문에 포함된 해시태그로, 등장 순서대로 나열됩니다. 없으면 필드가 생략됩니다. |
mentions | 플랫폼 자체의 의미를 따름 |
links | 플랫폼 자체의 의미를 따름 |
author_id | 플랫폼에서 작성자의 고유 ID입니다. |
author_avatar_url | 플랫폼 자체의 의미를 따름 |
author_bio | 플랫폼 자체의 의미를 따름 |
author_is_verified | 플랫폼 자체의 의미를 따름 |
author_created_at | 플랫폼 자체의 의미를 따름 |
platform | 출처 플랫폼 식별자로, 요청의 platform과 같습니다(예: xiaohongshu, tiktok). |
reposted_by | 플랫폼 자체의 의미를 따름 |
reposted_at | 플랫폼 자체의 의미를 따름 |
오류 및 과금
#- 401
- 키가 없거나 유효하지 않습니다.
- 402
- 잔액이 부족합니다. 먼저 충전하세요.
- 422
- 파라미터 이름 또는 값이 올바르지 않습니다. 오류에 제시된 제안을 참고해 수정하세요. 과금되지 않습니다.
- 429
- 분당 요청 속도 제한에 도달했습니다. Retry-After만큼 기다린 뒤 다시 시도하세요.
- 503
- 처리를 완료하지 못했습니다. 보류된 금액은 잔액으로 반환됩니다. 결과가 불확실하면 재시도하기 전에 먼저 확인하세요.
- 200 빈 결과
- 데이터가 없습니다. 과금되지 않습니다.