AI용

X (Twitter)소셜 미디어

X 계정 프로필 API

핸들이나 숫자 ID로 계정 하나, 또는 ID로 한 번에 최대 100개 계정을 조회: 팔로워, 팔로잉, 게시물 수, 소개, 인증. 계정을 찾지 못한 ID는 data.missing에 나열되며 과금되지 않습니다. 하나도 찾지 못한 배치는 계정 1개 요금이 부과됩니다.

GEThttps://api.okdata.online/v1/x/users/get

POST일괄 처리, 최대 100
가격
$0.0004
per item returned · at most $0.04 a call
반환
Account 1개
as data.item, or up to 100 in one POST
호출이 실패하면
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 accounts cost $0.40. New accounts get $0.20 of credit, no card needed: enough for 500 accounts from this endpoint. 과금 규칙 →

Playground에서 실행

파라미터

이름유형필수설명예시
idstring아니요The numeric account ID. Give one of id, username or ids.4398626122
usernamestring아니요The handle, with or without @. Give one of id, username or ids.openai
idsstring[]아니요Up to 100 numeric account IDs (POST with a JSON body, or comma-separated in a GET). Give one of id, username or ids.4398626122,11348282
viewstringbriefcompactstandardfull아니요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. 기본값 standard—
fieldsstring[]아니요Fields to keep, by path (author.name), to save tokens. In a query string: comma-separated.—

다음 중 정확히 하나를 지정하세요 id, username, ids. cursor, view and fields work the same on every endpoint: how requests work.

POST로 일괄 요청

This endpoint also takes a POST with a JSON body: put up to 100 values in ids and they come back in one call. Each item returned is billed at $0.0004, at most $0.04 a call.

POST /v1/x/users/getids: string[] ≤ 100
curl -X POST "https://api.okdata.online/v1/x/users/get" \
  -H "Authorization: Bearer $OKDATA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ids":["4398626122","11348282"]}'

사용해 보기

New accounts get $0.20 of credit, no card needed: enough for 500 accounts from this endpoint.무료로 시작

This sends a real call to https://api.okdata.online and is billed as usual: at most $0.04, 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.

알려진 제한 사항

  • A POST batch takes at most 100 values in ids.
  • 다음 중 정확히 하나를 지정하세요 id, username, ids.

반환 필드

data.item 하나 계정.

필드유형보기설명
idstringcompact플랫폼상의 계정 ID.
urlstringcompact프로필 링크.
usernamestring | nullcompact핸들(플랫폼에 있는 경우).
namestringcompact표시 이름.
biostring | nullcompact프로필 소개.긴 텍스트: view=compact를 쓰면 줄어들 수 있습니다.
avatar_urlstring | nullstandard아바타 이미지 URL.
12개 필드 모두 보기나머지 6개 숨기기
필드유형보기설명
verifiedboolean | nullstandard플랫폼 인증 배지 표시 여부.
followersinteger | nullcompact팔로워 수.
followinginteger | nullcompact팔로우 중인 계정.
postsinteger | nullcompact게시된 게시물, 동영상, 노트 또는 글 수.
likesinteger | nullcompact받은 총 좋아요 수(플랫폼이 표시하는 경우).
ext객체full플랫폼별 추가 필드. view=full일 때만 반환됩니다.

조회 수 열이 가장 작습니다 view 필드 반환 위치: compact returns only compact fields, standard adds the standard ones, full 는 모든 항목을 반환합니다. 기본값은 standard.

과금되는 경우

You pay $0.0004 for each of the accounts a call returns, at least one and at most $0.04 per call (100 accounts). 1,000 accounts cost $0.40. When the platform answers with nothing, says not found or fails, the call is billed as one item; calls stopped before reaching the platform are free.

데이터 반환반환 항목당 $0.0004

잘못된 파라미터, 잔액 부족, 일시 중지된 엔드포인트무료

시간결제 금액
호출 1회 최대 비용$0.04
성공한 호출의 최소 비용$0.0004
POST 일괄 요청(값 최대 100개)반환 항목당 $0.0004
빈 응답$0.0004
찾을 수 없음(플랫폼에 해당 항목이 없음)$0.0004
플랫폼 오류 또는 시간 초과 시$0.0004
잘못된 파라미터, 잔액 부족, 일시 중지된 엔드포인트무료
24시간 이내 동일한 Idempotency-Key로 재전송유지된 결과가 반환되면 무료

A call that reached the platform costs $0.0004 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코드의미청구액
400invalid_paramsA parameter is missing, has the wrong type or value, or the method is wrong. problems lists each one; param names the first.재시도: 수정 후아니요
401unauthorizedThe key is missing, malformed, revoked, disabled or expired (reason says which when known).Retry: 아니요아니요
402insufficient_balanceThe balance (available) cannot cover the most this call could cost (required).재시도: 수정 후아니요
404not_foundThe 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
429rate_limitedThe account sent too many requests this minute (reason: rate) or has too many calls running (reason: concurrency).재시도: 가능아니요
500settlement_unknownThe data came back, but the charge could not be confirmed.Retry: 동일한 Idempotency-Key로unknown until looked up
502fetch_failedThe 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
503capability_paused이 엔드포인트는 현재 일시 중지되어 실행되지 않았습니다.재시도: 가능아니요
504timeoutThe 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?

You pay $0.0004 for each of the accounts a call returns, at least one and at most $0.04 per call (100 accounts). 1,000 accounts cost $0.40. When the platform answers with nothing, says not found or fails, the call is billed as one item; calls stopped before reaching the platform are free.

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/users/get.md, then call this endpoint for me through okdata; my key is in the OKDATA_API_KEY environment variable. Use X 계정 프로필 and tell me the follower count and what the account posts about.

MCP 서버를 연결하고 이렇게 물어보세요: Use X 계정 프로필 and tell me the follower count and what the account posts about.

다른 플랫폼의 같은 데이터

The same kind of data from other platforms, in the same Account shape:

Compare them all: 프로필 API →

X (Twitter) 엔드포인트 21개 전체

X (Twitter) API 개요 →X (Twitter) API 요금 →

이름 및 ID

이름
X 계정 프로필 API
약칭
X 계정 프로필
ID
x.users.get
엔드포인트
GET /v1/x/users/get · POST
카테고리
소셜 미디어
데이터 유형
프로필 API
반환
계정: 필드 12개

한 번 연결하면, 그다음엔 묻기만 하세요.

새 키에는 $0.20 무료 크레딧이 들어 있습니다. AI에 한 문장만 붙여 넣으면 연결됩니다.

무료로 시작
AI에 연결

이 문장을 AI 에이전트에 붙여 넣으세요

https://okdata.online/agents.md을 읽고 okdata를 설정해 줘. 키는 환경 변수 OKDATA_API_KEY에 있어.

Claude Code, Cursor, Codex처럼 링크를 열 수 있는 AI 에이전트는 읽고 나서 스스로 설정합니다.

MCP 서버https://api.okdata.online/mcp