# 수집 작업 상태·결과 조회



인스타그램·틱톡·아마존·구글 지도 수집 작업의 진행 상태와 결과를 job_id 로 조회합니다. 조회는 무료입니다.



인증: Authorization: Bearer $APICK_API_KEY

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

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



## GET /rest/scrape_jobs/5f0c2a9e7b1d4c3a8e6f90a1b2c3d4e5 응답 필드

- `data` (object): 아래 하위 항목을 확인하세요.

- `data.job_id` (string): 작업 ID (32자리). 상태·결과 조회에 씁니다

- `data.product` (string): 수집 상품 이름

- `data.status` (string): waiting · processing · completed · failed

- `data.max_results` (integer): 요청한 최대 결과 수

- `data.unit_point` (integer): 결과 1건당 포인트(이 작업에 적용된 단가)

- `data.reserved_point` (integer): 현재 예약 중인 포인트. 완료·실패하면 0

- `data.charged_point` (integer): 최종 차감 포인트(완료 시 결과 건수 × 단가)

- `data.result_count` (integer): 받은 결과 수

- `data.created_at` (string): 접수 시각 (ISO 8601)

- `data.completed_at` (string): 완료 시각. 진행 중이면 null null 허용.

- `data.error` (object): 실패 시 { code, message }

- `data.error.code` (string): 아래 하위 항목을 확인하세요.

- `data.error.message` (string): 아래 하위 항목을 확인하세요.

- `api` (object): 아래 하위 항목을 확인하세요.

- `api.success` (boolean): 아래 하위 항목을 확인하세요.

- `api.cost` (integer): 아래 하위 항목을 확인하세요.

## 상태·목록 조회: GET /rest/scrape_jobs/5f0c2a9e7b1d4c3a8e6f90a1b2c3d4e5



### 입력



### 응답 명세

```json

{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "job_id": {
          "type": "string",
          "description": "작업 ID (32자리). 상태·결과 조회에 씁니다"
        },
        "product": {
          "type": "string",
          "description": "수집 상품 이름"
        },
        "status": {
          "type": "string",
          "description": "waiting · processing · completed · failed"
        },
        "max_results": {
          "type": "integer",
          "description": "요청한 최대 결과 수"
        },
        "unit_point": {
          "type": "integer",
          "description": "결과 1건당 포인트(이 작업에 적용된 단가)"
        },
        "reserved_point": {
          "type": "integer",
          "description": "현재 예약 중인 포인트. 완료·실패하면 0"
        },
        "charged_point": {
          "type": "integer",
          "description": "최종 차감 포인트(완료 시 결과 건수 × 단가)"
        },
        "result_count": {
          "type": "integer",
          "description": "받은 결과 수"
        },
        "created_at": {
          "type": "string",
          "description": "접수 시각 (ISO 8601)"
        },
        "completed_at": {
          "type": "string",
          "nullable": true,
          "description": "완료 시각. 진행 중이면 null"
        },
        "error": {
          "type": "object",
          "properties": {
            "code": {
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "description": "실패 시 { code, message }"
        }
      }
    },
    "api": {
      "type": "object",
      "properties": {
        "success": {
          "type": "boolean"
        },
        "cost": {
          "type": "integer"
        }
      }
    }
  }
}

```

### 정적 응답 예시

```json

{
  "data": {
    "job_id": "5f0c2a9e7b1d4c3a8e6f90a1b2c3d4e5",
    "product": "instagram_comments",
    "status": "processing",
    "max_results": 15,
    "unit_point": 5,
    "reserved_point": 75,
    "charged_point": 0,
    "result_count": 0,
    "created_at": "2026-10-06T10:00:00.000Z",
    "completed_at": null
  },
  "api": {
    "success": true,
    "cost": 0
  }
}

```

### 정적 응답 예시

```json

{
  "data": {
    "job_id": "5f0c2a9e7b1d4c3a8e6f90a1b2c3d4e5",
    "product": "instagram_comments",
    "status": "failed",
    "max_results": 15,
    "unit_point": 5,
    "reserved_point": 0,
    "charged_point": 0,
    "result_count": 0,
    "created_at": "2026-10-06T10:00:00.000Z",
    "completed_at": "2026-10-06T10:00:41.000Z",
    "error": {
      "code": "TARGET_NOT_FOUND",
      "message": "대상을 찾을 수 없습니다. 주소와 공개 여부를 확인해 주세요. 예약한 포인트는 모두 돌려드렸습니다."
    }
  },
  "api": {
    "success": true,
    "cost": 0
  }
}

```

### curl

```curl

curl --fail-with-body --request GET 'https://apick.app/rest/scrape_jobs/5f0c2a9e7b1d4c3a8e6f90a1b2c3d4e5' \
  --header "Authorization: Bearer $APICK_API_KEY"

```

### Node.js (서버 ESM)

```javascript

const response = await fetch("https://apick.app/rest/scrape_jobs/5f0c2a9e7b1d4c3a8e6f90a1b2c3d4e5", {
  method: "GET",
  headers: { Authorization: "Bearer " + process.env.APICK_API_KEY },
  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
response = requests.request("GET", "https://apick.app/rest/scrape_jobs/5f0c2a9e7b1d4c3a8e6f90a1b2c3d4e5",
    headers={"Authorization": "Bearer " + os.environ["APICK_API_KEY"]},
    timeout=(10, 120))
response.raise_for_status()
result = response.json()
print(result)

```

### php

```php

<?php
$headers = ["Authorization: Bearer " . getenv("APICK_API_KEY")];
$curl = curl_init('https://apick.app/rest/scrape_jobs/5f0c2a9e7b1d4c3a8e6f90a1b2c3d4e5');
curl_setopt_array($curl, [
    CURLOPT_CUSTOMREQUEST => 'GET',
    CURLOPT_HTTPHEADER => $headers,
    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);

```

## GET /rest/scrape_jobs/:job_id 응답 필드

- `data` (object): 아래 하위 항목을 확인하세요.

- `data.job_id` (string): 작업 ID (32자리). 상태·결과 조회에 씁니다

- `data.product` (string): 수집 상품 이름

- `data.status` (string): waiting · processing · completed · failed

- `data.max_results` (integer): 요청한 최대 결과 수

- `data.unit_point` (integer): 결과 1건당 포인트(이 작업에 적용된 단가)

- `data.reserved_point` (integer): 현재 예약 중인 포인트. 완료·실패하면 0

- `data.charged_point` (integer): 최종 차감 포인트(완료 시 결과 건수 × 단가)

- `data.result_count` (integer): 받은 결과 수

- `data.created_at` (string): 접수 시각 (ISO 8601)

- `data.completed_at` (string): 완료 시각. 진행 중이면 null null 허용.

- `data.error` (object): 실패 시 { code, message }

- `data.error.code` (string): 아래 하위 항목을 확인하세요.

- `data.error.message` (string): 아래 하위 항목을 확인하세요.

- `api` (object): 아래 하위 항목을 확인하세요.

- `api.success` (boolean): 아래 하위 항목을 확인하세요.

- `api.cost` (integer): 아래 하위 항목을 확인하세요.

## 상태·목록 조회: GET /rest/scrape_jobs/:job_id



### 입력



### 응답 명세

```json

{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "job_id": {
          "type": "string",
          "description": "작업 ID (32자리). 상태·결과 조회에 씁니다"
        },
        "product": {
          "type": "string",
          "description": "수집 상품 이름"
        },
        "status": {
          "type": "string",
          "description": "waiting · processing · completed · failed"
        },
        "max_results": {
          "type": "integer",
          "description": "요청한 최대 결과 수"
        },
        "unit_point": {
          "type": "integer",
          "description": "결과 1건당 포인트(이 작업에 적용된 단가)"
        },
        "reserved_point": {
          "type": "integer",
          "description": "현재 예약 중인 포인트. 완료·실패하면 0"
        },
        "charged_point": {
          "type": "integer",
          "description": "최종 차감 포인트(완료 시 결과 건수 × 단가)"
        },
        "result_count": {
          "type": "integer",
          "description": "받은 결과 수"
        },
        "created_at": {
          "type": "string",
          "description": "접수 시각 (ISO 8601)"
        },
        "completed_at": {
          "type": "string",
          "nullable": true,
          "description": "완료 시각. 진행 중이면 null"
        },
        "error": {
          "type": "object",
          "properties": {
            "code": {
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "description": "실패 시 { code, message }"
        }
      }
    },
    "api": {
      "type": "object",
      "properties": {
        "success": {
          "type": "boolean"
        },
        "cost": {
          "type": "integer"
        }
      }
    }
  }
}

```

### 정적 응답 예시

```json

{
  "data": {
    "job_id": "5f0c2a9e7b1d4c3a8e6f90a1b2c3d4e5",
    "product": "instagram_comments",
    "status": "processing",
    "max_results": 15,
    "unit_point": 5,
    "reserved_point": 75,
    "charged_point": 0,
    "result_count": 0,
    "created_at": "2026-10-06T10:00:00.000Z",
    "completed_at": null
  },
  "api": {
    "success": true,
    "cost": 0
  }
}

```

### 정적 응답 예시

```json

{
  "data": {
    "job_id": "5f0c2a9e7b1d4c3a8e6f90a1b2c3d4e5",
    "product": "instagram_comments",
    "status": "failed",
    "max_results": 15,
    "unit_point": 5,
    "reserved_point": 0,
    "charged_point": 0,
    "result_count": 0,
    "created_at": "2026-10-06T10:00:00.000Z",
    "completed_at": "2026-10-06T10:00:41.000Z",
    "error": {
      "code": "TARGET_NOT_FOUND",
      "message": "대상을 찾을 수 없습니다. 주소와 공개 여부를 확인해 주세요. 예약한 포인트는 모두 돌려드렸습니다."
    }
  },
  "api": {
    "success": true,
    "cost": 0
  }
}

```

### curl

```curl

curl --fail-with-body --request GET "https://apick.app/rest/scrape_jobs/${APICK_JOB_ID}" \
  --header "Authorization: Bearer $APICK_API_KEY"

```

### Node.js (서버 ESM)

```javascript

const response = await fetch(`https://apick.app/rest/scrape_jobs/${encodeURIComponent(process.env.APICK_JOB_ID)}`, {
  method: "GET",
  headers: { Authorization: "Bearer " + process.env.APICK_API_KEY },
  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
from urllib.parse import quote
response = requests.request("GET", "https://apick.app" + "/rest/scrape_jobs/{job_id}".format(job_id=quote(os.environ["APICK_JOB_ID"], safe="")),
    headers={"Authorization": "Bearer " + os.environ["APICK_API_KEY"]},
    timeout=(10, 120))
response.raise_for_status()
result = response.json()
print(result)

```

### php

```php

<?php
$headers = ["Authorization: Bearer " . getenv("APICK_API_KEY")];
$curl = curl_init('https://apick.app/rest/scrape_jobs/' . rawurlencode(getenv('APICK_JOB_ID')) . '');
curl_setopt_array($curl, [
    CURLOPT_CUSTOMREQUEST => 'GET',
    CURLOPT_HTTPHEADER => $headers,
    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 GET https://apick.app/rest/scrape_jobs/{job_id} 대상 수집 상품 상품 접수 API 과금 인스타그램 게시물 목록 수집 POST /rest/instagram_posts/jobs 결과 1건당 인스타그램 댓글 수집 POST /rest/instagram_comments/jobs 결과 1건당 틱톡 키워드 영상 검색 POST /rest/tiktok_search/jobs 결과 1건당 틱톡 영상 정보 조회 POST /rest/tiktok_video/jobs 건당 틱톡 댓글 수집 POST /rest/tiktok_comments/jobs 결과 1건당 아마존 리뷰 수집 POST /rest/amazon_reviews/jobs 결과 1건당 구글 지도 장소 상세·리뷰 조회 POST /rest/google_maps_place/jobs 건당 조회는 무료입니다. 5~10초 간격으로 호출해 status 가 completed 또는 failed 가 될 때까지 확인해 주세요. 완료되면 이 조회에서 실제 결과 건수만큼 정산되고, 남은 예약 포인트는 바로 돌려드립니다. 아무도 조회하지 않아도 서버가 주기적으로 정산합니다. 실패(failed)하면 예약한 포인트를 모두 돌려드립니다. error.code 로 원인을 확인할 수 있습니다. 결과는 완료 후 72시간 동안 조회할 수 있고, 그 뒤에는 result_expired 가 true 가 되며 결과가 비워집니다.

## 상세 요청



## 상세 응답

Body (data) 이름 타입 설명 job_id String 작업 ID (32자리). 상태·결과 조회에 씁니다 product String 수집 상품 이름 status String waiting · processing · completed · failed max_results Integer 요청한 최대 결과 수 unit_point Integer 결과 1건당 포인트(이 작업에 적용된 단가) reserved_point Integer 현재 예약 중인 포인트. 완료·실패하면 0 charged_point Integer 최종 차감 포인트(완료 시 결과 건수 × 단가) result_count Integer 받은 결과 수 created_at String 접수 시각 (ISO 8601) completed_at String 완료 시각. 진행 중이면 null items Array 수집 결과(완료 시). 항목 필드는 각 상품 가이드 참고 result_expires_at String 결과 보관 기한(완료 후 72시간) result_expired Boolean 보관 기한이 지나 결과를 지웠으면 true error Object 실패 시 { code, message }

## 상세 예제

요청 예시 form-data 전체 예제 보기 진행 중 응답 { "data": { "job_id": "5f0c2a9e7b1d4c3a8e6f90a1b2c3d4e5", "product": "instagram_comments", "status": "processing", "max_results": 15, "unit_point": 5, "reserved_point": 75, "charged_point": 0, "result_count": 0, "created_at": "2026-10-06T10:00:00.000Z", "completed_at": null }, "api": { "success": true, "cost": 0 } } 실패 응답 { "data": { "job_id": "5f0c2a9e7b1d4c3a8e6f90a1b2c3d4e5", "product": "instagram_comments", "status": "failed", "max_results": 15, "unit_point": 5, "reserved_point": 0, "charged_point": 0, "result_count": 0, "created_at": "2026-10-06T10:00:00.000Z", "completed_at": "2026-10-06T10:00:41.000Z", "error": { "code": "TARGET_NOT_FOUND", "message": "대상을 찾을 수 없습니다. 주소와 공개 여부를 확인해 주세요. 예약한 포인트는 모두 돌려드렸습니다." } }, "api": { "success": true, "cost": 0 } }
