X 게시물 상세 API
ID나 링크로 게시물 하나를 조회합니다: 본문, 미디어, 조회수, 좋아요, 리포스트, 답글.
GEThttps://api.okdata.online/v1/x/posts/get
- 가격
- $0.0003
- 호출당 · 잘못된 파라미터는 무료
- 반환
- Post 1개
- data.item으로
- 호출이 실패하면
- 1회만 과금
- A failed call is retried on our side first. A call that reached the platform is charged once even if it fails; bad parameters are free.
- 상태
- 미리보기
- It may still change; any change is announced beforehand.
결제1,000 lookups cost $0.30. New accounts get $0.20 of credit, no card needed: 666 calls to this endpoint. 과금 규칙 →
Playground에서 실행파라미터
| 이름 | 유형 | 필수 | 설명 | 예시 |
|---|---|---|---|---|
id | string | 아니요 | 게시물 ID. id 또는 url을 지정하세요. | 1850000000000000000 |
url | string | 아니요 | A share link or page URL; the ID is read from it. | https://x.com/user/status/1850000000000000000 |
view | stringbriefcompactstandardfull | 아니요 | How much of each object comes back. brief: IDs, title, the first 100 characters of the text, link, time and the main counts, for scanning a list (then get what you need by ID). compact leaves out empty fields and cuts long text at 500 characters. full adds platform-specific fields under ext. | — |
fields | string[] | 아니요 | Fields to keep, by path (author.name), to save tokens. In a query string: comma-separated. | — |
다음 중 정확히 하나를 지정하세요 id, url. cursor, view and fields work the same on every endpoint: how requests work.
사용해 보기
New accounts get $0.20 of credit, no card needed: 666 calls to this endpoint.무료로 시작
This sends a real call to https://api.okdata.online and is billed as usual: at most $0.0003, also when the platform comes back empty, not found or failed. Bad parameters are never charged. Your key goes only to that address and is never stored on this site.
알려진 제한 사항
- 다음 중 정확히 하나를 지정하세요
id,url. - 이 엔드포인트가 제공하지 않는 Post 필드 1개
반환 필드
data.item 하나 게시물.
| 필드 | 유형 | 보기 | 설명 |
|---|---|---|---|
id | string | compact | 플랫폼상의 게시물 ID. |
url | string | compact | 게시물 링크. |
type | string | compact | 게시물 유형. |
title | string | null | compact | Title, where the platform has one (videos, notes, articles). |
text | string | compact | Caption, body or description as plain text; articles come as Markdown.긴 텍스트: view=compact를 쓰면 줄어들 수 있습니다. |
lang | string | null | standard | 언어 코드(제공되거나 감지된 값). |
12개 필드 모두 보기나머지 6개 숨기기
| 필드 | 유형 | 보기 | 설명 |
|---|---|---|---|
published_at | string | null | compact | When it was published, ISO 8601 in UTC; null only where the platform gives no time (wechat_mp.articles.metrics, wechat_channels.videos.metrics, youtube.channels.videos.list with type=short) or left it out of an answer (youtube.videos.get now and then), then listed in meta.unavailable. Never an empty string. |
author | AccountRef | compact | 게시자. |
metrics | 지표 | compact | Counts at fetch time; a count the platform hides is null. |
images | string[] | null | standard | 이미지 게시물 및 노트의 이미지 URL. |
hashtags | string[] | null | standard | # 기호를 뺀 해시태그 또는 토픽. |
ext | 객체 | full | 플랫폼별 추가 필드. view=full일 때만 반환됩니다. |
조회 수 열이 가장 작습니다 view 필드 반환 위치: compact returns only compact fields, standard adds the standard ones, full 는 모든 항목을 반환합니다. 기본값은 standard.
이 엔드포인트가 제공하지 않는 것
These fields of Post come back as null here, and meta.unavailable names each one with its reason.
metrics.sharesthe platform does not show it
과금되는 경우
One call costs $0.0003 and returns one post. 1,000 lookups cost $0.30. A lookup that reached the platform is charged even when it is not found or the platform fails; calls stopped before reaching the platform are free.
데이터 반환호출당 $0.0003
잘못된 파라미터, 잔액 부족, 일시 중지된 엔드포인트무료
| 시간 | 결제 금액 |
|---|---|
| 호출 1회 최대 비용 | $0.0003 |
| 빈 응답 | $0.0003 |
| 찾을 수 없음(플랫폼에 해당 항목이 없음) | $0.0003 |
| 플랫폼 오류 또는 시간 초과 시 | $0.0003 |
| 잘못된 파라미터, 잔액 부족, 일시 중지된 엔드포인트 | 무료 |
| 24시간 이내 동일한 Idempotency-Key로 재전송 | 유지된 결과가 반환되면 무료 |
A call that reached the platform costs $0.0003 even when the answer is empty, not found or a platform failure; a call stopped before that, such as for bad parameters, is free.
Prices from price book fb99dc8a88674793. 이 플랫폼의 모든 요금 →
자주 발생하는 오류
Every error has the same shape and says whether it was charged. The ones this endpoint can return:
| HTTP | 코드 | 의미 | 청구액 |
|---|---|---|---|
| 400 | invalid_params | A parameter is missing, has the wrong type or value, or the method is wrong. problems lists each one; param names the first.재시도: 수정 후 | 아니요 |
| 401 | unauthorized | The key is missing, malformed, revoked, disabled or expired (reason says which when known).Retry: 아니요 | 아니요 |
| 402 | insufficient_balance | The balance (available) cannot cover the most this call could cost (required).재시도: 수정 후 | 아니요 |
| 404 | not_found | The post, account or page does not exist or is not public. When the lookup reached the platform and was billed, or the endpoint's charge_when_not_found is above 0, this answer is charged: the body then says charged: true and amount.Retry: 아니요 | once, if it reached the platform |
| 429 | rate_limited | The account sent too many requests this minute (reason: rate) or has too many calls running (reason: concurrency).재시도: 가능 | 아니요 |
| 500 | settlement_unknown | The data came back, but the charge could not be confirmed.Retry: 동일한 Idempotency-Key로 | unknown until looked up |
| 502 | fetch_failed | The request failed even after we retried automatically on our side. If it reached the platform and the request was billed, it is charged once at the endpoint's price (charged: true and amount); otherwise nothing is charged.재시도: 가능 | once, if it reached the platform |
| 503 | capability_paused | 이 엔드포인트는 현재 일시 중지되어 실행되지 않았습니다.재시도: 가능 | 아니요 |
| 504 | timeout | The data did not come back in time. If the request had reached the platform and was billed, it is charged once at the endpoint's price (charged: true and amount); otherwise the hold is released.재시도: 가능 | once, if it reached the platform |
질문
How much does the X 게시물 상세 API cost?
One call costs $0.0003 and returns one post. 1,000 lookups cost $0.30. A lookup that reached the platform is charged even when it is not found or the platform fails; calls stopped before reaching the platform are free.
Can I pass a share link instead of an ID?
Yes. Put the link in url and okdata reads the ID from it. Short share links work too.
Do I need a X (Twitter) account, cookies or a QR login?
No. You send only your okdata API key. The data is public data from X (Twitter); nothing is fetched with your own X (Twitter) account.
호출이 실패해도 과금되나요?
Yes, once, when the call reached the platform: an empty answer, a not_found, a failure or a timeout on the platform's side costs one call (one item for per-item endpoints), and the error says charged: true with amount. Calls refused before reaching the platform, such as bad parameters or a low balance, cost nothing.
What if X (Twitter) does not show a field?
The field is null, and meta.unavailable names it with the reason: platform (the platform never shows it) or capability (we cannot fetch it yet).
AI에서 사용하기
Paste this into Claude, ChatGPT, Cursor or any agent that can open a web page. It reads this endpoint’s page and calls it with your key.
Read https://okdata.online/apis/x/posts/get.md, then call this endpoint for me through okdata; my key is in the OKDATA_API_KEY environment variable. Use X 게시물 상세 and list the five posts with the most likes, with links.
MCP 서버를 연결하고 이렇게 물어보세요: Use X 게시물 상세 and list the five posts with the most likes, with links.
다른 플랫폼의 같은 데이터
The same kind of data from other platforms, in the same Post shape:
- Douyin 동영상 상세$0.002/call
- Xiaohongshu 노트 상세$0.035/call
- Official Account 글 상세$0.02/call
- Bilibili 동영상 상세$0.002/call
- TikTok 동영상 상세$0.002/call
- YouTube 동영상 상세$0.002/call
- Instagram 게시물 상세$0.004/call
- Reddit 게시물 상세$0.002/call
- Kuaishou 동영상 상세$0.002/call
- Zhihu 글 상세$0.002/call
- WeChat Channels 동영상 상세$0.02/call
- Douyin Xingtu 동영상 리포트$0.004/call
- 동영상이 포함된 Xiaohongshu 동영상 노트$0.035/call
- Weibo 게시물 상세$0.002/call
- YouTube 게시물 상세$0.002/call
- Youku 동영상 상세$0.022/call
- Toutiao 기사$0.002/call
- Toutiao 동영상$0.002/call
- Xigua Video 상세$0.004/call
- Bluesky 게시물$0.001/call
- Lemon8 게시물 상세$0.002/call
- Threads 게시물 상세$0.003/call
- LinkedIn 게시물 상세$0.012/call
X (Twitter) 엔드포인트 21개 전체
X (Twitter) 주요 엔드포인트
이름 및 ID
- 이름
- X 게시물 상세 API
- 약칭
- X 게시물 상세
- ID
x.posts.get- 엔드포인트
GET /v1/x/posts/get- 카테고리
- 소셜 미디어
- 데이터 유형
- 게시물 상세 API
- 반환
- 게시물: 필드 12개