게시물
여러 ID로 게시물 조회
GET /v1/tweets reads 1 크레딧
id로 여러 게시물을 한 번에 가져옵니다. 요청당 최대 20개, id마다 1 크레딧. id는 게시물 링크의 /status/ 뒤 숫자입니다.
쿼리 매개변수
| 쿼리 파라미터 | 타입 | 의미 |
|---|---|---|
ids * | string (comma-separated, ≤ 20) | 쉼표로 구분한 게시물 id, 최대 20개 |
응답
items에 조회된 게시물이 요청한 순서대로 담깁니다. 조회되지 않는 id(삭제됨, 보호됨, 또는 존재한 적 없음)는 missing에 나열됩니다. 필드별 설명: Tweet (읽기).
상태: 200, 400, 429, 502
요청
curl https://api.xsignalfeed.com/v1/tweets?ids=2099875660290228642,2100085873807364122,1234567890123456789 \ -H "Authorization: Bearer xsf_your_key"
응답 · 200 / 400
{
"items": [
{
"id": 2099875660290228642,
"created_ms": 1789484345873,
"user_id": 44196397,
"user": "elonmusk",
"name": "Elon Musk",
"text": "Live demo of building a company with @Grok @Bot!",
"lang": "en",
"reply_to": null,
"reply_to_status_id": null,
"reply_to_user_id": null,
"conversation_id": "2099875660290228642",
"is_rt": false,
"rt_of": null,
"is_quote": true,
"quoted": {
"id": "2099871914655424894",
"user": "poteto",
"name": "lauren",
"user_id": "2832427459",
"text": "going live in about an hour!\n\n…",
"media": [],
"media_items": [],
"created_ms": 1789483452844,
"url": "https://x.com/poteto/status/2099871914655424894"
},
"media": [],
"media_items": [],
"urls": [],
"views": "28720489",
"counts": {
"reply": 2323,
"rt": 2244,
"like": 22995,
"quote": 177,
"bookmark": 3136
},
"article": null,
"edit_of": null,
"edit_ids": [
2099875660290228642
],
"source": "<a href=\"http://twitter.com/download/iphone\" rel=\"nofollow\">Twitter for iPhone</a>"
},
{
"id": 2100085873807364122,
"user": "elonmusk",
"text": "😂🎯",
"…": "…"
}
],
"missing": [
"1234567890123456789"
]
}