# X 게시물 조회



X(트위터) 게시물 주소로 본문·작성 시각·좋아요·리포스트·답글·조회수·해시태그·미디어 주소를 조회합니다.



인증: Authorization: Bearer $APICK_API_KEY

본문 있는 REST 요청: multipart/form-data. GET 본문 및 MCP JSON-RPC 규격은 해당 명세를 따릅니다.

인증키는 서버에 보관하세요. 모든 예제는 정적 자료입니다.



## POST /rest/x_post 응답 필드

- `data` (object): 조회 데이터. 실패하면 error 에 안내 문구가 담깁니다.

- `data.post_id` (string): 게시물 ID

- `data.url` (string): 게시물 주소

- `data.username` (string): 작성자 사용자명

- `data.name` (string): 작성자 표시 이름

- `data.text` (string): 본문

- `data.posted_at` (string): 작성 시각 (ISO 8601)

- `data.likes` (integer): 좋아요 수

- `data.reposts` (integer): 리포스트 수

- `data.replies` (integer): 답글 수

- `data.quotes` (integer): 인용 수

- `data.views` (integer): 조회수

- `data.bookmarks` (integer): 북마크 수

- `data.hashtags` (array): 해시태그

- `data.is_repost` (boolean): 리포스트 여부

- `data.photo_urls` (array): 사진 주소

- `data.video_urls` (array): 영상 주소

- `data.author` (object): 작성자 정보

- `data.author.followers` (integer): 작성자 팔로워 수

- `data.author.is_verified` (boolean): 작성자 인증 여부

- `api` (object): API 호출 공통 데이터

- `api.success` (boolean): API 서버 정상 응답 여부

- `api.cost` (integer): 차감된 포인트. 실패한 응답은 0

- `api.pl_id` (integer): API 결제 로그 ID

- `api.ms` (integer): API 응답 시간(밀리초)

## API 요청: POST /rest/x_post



### 입력

- `url` (string, 필수): X 게시물 주소 (예: https://x.com/NASA/status/1234567890)



### 응답 명세

```json

{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "post_id": {
          "type": "string",
          "description": "게시물 ID"
        },
        "url": {
          "type": "string",
          "description": "게시물 주소"
        },
        "username": {
          "type": "string",
          "description": "작성자 사용자명"
        },
        "name": {
          "type": "string",
          "description": "작성자 표시 이름"
        },
        "text": {
          "type": "string",
          "description": "본문"
        },
        "posted_at": {
          "type": "string",
          "description": "작성 시각 (ISO 8601)"
        },
        "likes": {
          "type": "integer",
          "description": "좋아요 수"
        },
        "reposts": {
          "type": "integer",
          "description": "리포스트 수"
        },
        "replies": {
          "type": "integer",
          "description": "답글 수"
        },
        "quotes": {
          "type": "integer",
          "description": "인용 수"
        },
        "views": {
          "type": "integer",
          "description": "조회수"
        },
        "bookmarks": {
          "type": "integer",
          "description": "북마크 수"
        },
        "hashtags": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "해시태그"
        },
        "is_repost": {
          "type": "boolean",
          "description": "리포스트 여부"
        },
        "photo_urls": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "사진 주소"
        },
        "video_urls": {
          "type": "array",
          "items": {},
          "description": "영상 주소"
        },
        "author": {
          "type": "object",
          "properties": {
            "followers": {
              "type": "integer",
              "description": "작성자 팔로워 수"
            },
            "is_verified": {
              "type": "boolean",
              "description": "작성자 인증 여부"
            }
          },
          "description": "작성자 정보"
        }
      },
      "description": "조회 데이터. 실패하면 error 에 안내 문구가 담깁니다."
    },
    "api": {
      "type": "object",
      "properties": {
        "success": {
          "type": "boolean",
          "description": "API 서버 정상 응답 여부"
        },
        "cost": {
          "type": "integer",
          "description": "차감된 포인트. 실패한 응답은 0"
        },
        "pl_id": {
          "type": "integer",
          "description": "API 결제 로그 ID"
        },
        "ms": {
          "type": "integer",
          "description": "API 응답 시간(밀리초)"
        }
      },
      "description": "API 호출 공통 데이터"
    }
  }
}

```

### 정적 응답 예시

```json

{
  "data": {
    "post_id": "2107371838498054539",
    "url": "https://x.com/NASA/status/2107371838498054539",
    "username": "NASA",
    "name": "NASA",
    "text": "A strong start to #IAC2026 in Türkiye. 🚀",
    "posted_at": "2026-10-06T07:26:14.000Z",
    "likes": 152,
    "reposts": 27,
    "replies": 5,
    "quotes": 0,
    "views": 41542,
    "bookmarks": 0,
    "hashtags": [
      "IAC2026"
    ],
    "is_repost": true,
    "photo_urls": [
      "https://pbs.twimg.com/media/..."
    ],
    "video_urls": [],
    "author": {
      "followers": 92374816,
      "is_verified": true
    }
  },
  "api": {
    "success": true,
    "cost": 10,
    "pl_id": 1595635,
    "ms": 6380
  }
}

```

### curl

```curl

curl --fail-with-body --request POST 'https://apick.app/rest/x_post' \
  --header "Authorization: Bearer $APICK_API_KEY" \
  --form-string 'url=https://x.com/NASA/status/2107371838498054539'

```

### Node.js (서버 ESM)

```javascript

const form = new FormData();
form.append("url", "https://x.com/NASA/status/2107371838498054539");
const response = await fetch("https://apick.app/rest/x_post", {
  method: "POST",
  headers: { Authorization: "Bearer " + process.env.APICK_API_KEY },
  body: form,
  signal: AbortSignal.timeout(120_000),
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
const result = await response.json();
console.log(result);

```

### python

```python

import os
import requests
parts = [
    ("url", (None, "https://x.com/NASA/status/2107371838498054539")),
]
response = requests.request("POST", "https://apick.app/rest/x_post",
    headers={"Authorization": "Bearer " + os.environ["APICK_API_KEY"]},
    files=parts,
    timeout=(10, 120))
response.raise_for_status()
result = response.json()
print(result)

```

### php

```php

<?php
$headers = ["Authorization: Bearer " . getenv("APICK_API_KEY")];
$form = [
    'url' => 'https://x.com/NASA/status/2107371838498054539',
];
$curl = curl_init('https://apick.app/rest/x_post');
curl_setopt_array($curl, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => $headers,
    CURLOPT_POSTFIELDS => $form,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CONNECTTIMEOUT => 10, CURLOPT_TIMEOUT => 120,
]);
$body = curl_exec($curl);
if ($body === false) { throw new RuntimeException(curl_error($curl)); }
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($status >= 400) { throw new RuntimeException($body); }
$result = json_decode($body, true, 512, JSON_THROW_ON_ERROR);
print_r($result);

```

## 코드·오류

## 상세 기능·요금

Method URL POST https://apick.app/rest/x_post 실패한 호출(입력 오류, 시간 초과, 대상 없음)은 과금하지 않습니다. 공개 게시물만 조회할 수 있습니다. 처리에 보통 5~15초가 걸립니다. 같은 요청은 최대 10분 동안 같은 결과가 반환될 수 있습니다. API 호출 요청 요청하기 Key Value url 응답

## 상세 요청

Header 이름 필수 설명 Authorization O Bearer 인증키

## 상세 응답

Body 이름 타입 설명 data Object 조회 데이터. 실패하면 error 에 안내 문구가 담깁니다. post_id String 게시물 ID url String 게시물 주소 username String 작성자 사용자명 name String 작성자 표시 이름 text String 본문 posted_at String 작성 시각 (ISO 8601) likes Integer 좋아요 수 reposts Integer 리포스트 수 replies Integer 답글 수 quotes Integer 인용 수 views Integer 조회수 bookmarks Integer 북마크 수 hashtags Array 해시태그 is_repost Boolean 리포스트 여부 photo_urls Array 사진 주소 video_urls Array 영상 주소 author Object 작성자 정보 followers Integer 작성자 팔로워 수 is_verified Boolean 작성자 인증 여부 api Object API 호출 공통 데이터 success Boolean API 서버 정상 응답 여부 cost Integer 차감된 포인트. 실패한 응답은 0 ms Integer API 응답 시간(밀리초) pl_id Integer API 결제 로그 ID

## 상세 예제

요청 예시 form-data 전체 예제 보기 응답 예시 { "data": { "post_id": "2107371838498054539", "url": "https://x.com/NASA/status/2107371838498054539", "username": "NASA", "name": "NASA", "text": "A strong start to #IAC2026 in Türkiye. 🚀", "posted_at": "2026-10-06T07:26:14.000Z", "likes": 152, "reposts": 27, "replies": 5, "quotes": 0, "views": 41542, "bookmarks": 0, "hashtags": [ "IAC2026" ], "is_repost": true, "photo_urls": [ "https://pbs.twimg.com/media/..." ], "video_urls": [], "author": { "followers": 92374816, "is_verified": true } }, "api": { "success": true, "cost": 10, "pl_id": 1595635, "ms": 6380 } }
