# 인스타그램 게시물 목록 수집



인스타그램 공개 계정의 최근 게시물·릴스를 최대 100개까지 수집합니다(좋아요·댓글 수·조회수·캡션·해시태그).



인증: Authorization: Bearer $APICK_API_KEY

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

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



## POST /rest/instagram_posts/jobs 응답 필드

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

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

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

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

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

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

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

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

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

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

- `data.completed_at` (string): 아래 하위 항목을 확인하세요. null 허용.

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

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

- `data.items[].url` (string): 아래 하위 항목을 확인하세요.

- `data.items[].shortcode` (string): 아래 하위 항목을 확인하세요.

- `data.items[].username` (string): 아래 하위 항목을 확인하세요.

- `data.items[].caption` (string): 아래 하위 항목을 확인하세요.

- `data.items[].content_type` (string): 아래 하위 항목을 확인하세요.

- `data.items[].posted_at` (string): 아래 하위 항목을 확인하세요.

- `data.items[].likes` (integer): 아래 하위 항목을 확인하세요.

- `data.items[].comments` (integer): 아래 하위 항목을 확인하세요.

- `data.items[].views` (undefined): 아래 하위 항목을 확인하세요. null 허용.

- `data.items[].hashtags` (array): 아래 하위 항목을 확인하세요.

- `data.items[].thumbnail_url` (string): 아래 하위 항목을 확인하세요.

- `data.items[].image_urls` (array): 아래 하위 항목을 확인하세요.

- `data.items[].video_url` (string): 아래 하위 항목을 확인하세요.

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

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

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

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

## 작업 접수: POST /rest/instagram_posts/jobs



### 입력

- `username` (string, 선택): 인스타그램 사용자명 (username 또는 url 중 하나 필수)

- `url` (string, 선택): 인스타그램 프로필 주소

- `max_results` (string, 선택): 최대 결과 수 1~100 (기본 12). 이 수만큼 포인트를 먼저 예약하고 실제 건수만 차감

- `idempotency_key` (string, 선택): 응답을 못 받아 다시 보낼 때 같은 접수로 처리할 키(8~128자, 영문·숫자·_.:-)



### 응답 명세

```json

{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "job_id": {
          "type": "string"
        },
        "product": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "max_results": {
          "type": "integer"
        },
        "unit_point": {
          "type": "integer"
        },
        "reserved_point": {
          "type": "integer"
        },
        "charged_point": {
          "type": "integer"
        },
        "result_count": {
          "type": "integer"
        },
        "created_at": {
          "type": "string"
        },
        "completed_at": {
          "type": "string",
          "nullable": true
        },
        "result_expires_at": {
          "type": "string"
        },
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string"
              },
              "shortcode": {
                "type": "string"
              },
              "username": {
                "type": "string"
              },
              "caption": {
                "type": "string"
              },
              "content_type": {
                "type": "string"
              },
              "posted_at": {
                "type": "string"
              },
              "likes": {
                "type": "integer"
              },
              "comments": {
                "type": "integer"
              },
              "views": {
                "nullable": true
              },
              "hashtags": {
                "type": "array",
                "items": {}
              },
              "thumbnail_url": {
                "type": "string"
              },
              "image_urls": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "video_url": {
                "type": "string"
              }
            }
          }
        },
        "result_expired": {
          "type": "boolean"
        }
      }
    },
    "api": {
      "type": "object",
      "properties": {
        "success": {
          "type": "boolean"
        },
        "cost": {
          "type": "integer"
        }
      }
    }
  }
}

```

### 정적 응답 예시

```json

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

```

### 정적 응답 예시

```json

{
  "data": {
    "job_id": "5f0c2a9e7b1d4c3a8e6f90a1b2c3d4e5",
    "product": "instagram_posts",
    "status": "completed",
    "max_results": 12,
    "unit_point": 5,
    "reserved_point": 0,
    "charged_point": 5,
    "result_count": 1,
    "created_at": "2026-10-06T10:00:00.000Z",
    "completed_at": "2026-10-06T10:01:12.000Z",
    "result_expires_at": "2026-10-09T10:01:12.000Z",
    "items": [
      {
        "url": "https://www.instagram.com/p/DeHufcWDCjf",
        "shortcode": "DeHufcWDCjf",
        "username": "natgeo",
        "caption": "Women in this Sardinian mountain village ...",
        "content_type": "Image",
        "posted_at": "2026-10-05T17:17:36.000Z",
        "likes": 35618,
        "comments": 246,
        "views": null,
        "hashtags": [],
        "thumbnail_url": "https://scontent.cdninstagram.com/...",
        "image_urls": [
          "https://scontent.cdninstagram.com/..."
        ],
        "video_url": ""
      }
    ],
    "result_expired": false
  },
  "api": {
    "success": true,
    "cost": 0
  }
}

```

### curl

```curl

curl --fail-with-body --request POST 'https://apick.app/rest/instagram_posts/jobs' \
  --header "Authorization: Bearer $APICK_API_KEY" \
  --form-string 'username=natgeo' \
  --form-string 'max_results=12'

```

### Node.js (서버 ESM)

```javascript

const form = new FormData();
form.append("username", "natgeo");
form.append("max_results", "12");
const response = await fetch("https://apick.app/rest/instagram_posts/jobs", {
  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 = [
    ("username", (None, "natgeo")),
    ("max_results", (None, "12")),
]
response = requests.request("POST", "https://apick.app/rest/instagram_posts/jobs",
    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 = [
    'username' => 'natgeo',
    'max_results' => '12',
];
$curl = curl_init('https://apick.app/rest/instagram_posts/jobs');
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);

```

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

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

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

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

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

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

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

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

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

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

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

- `data.completed_at` (string): 아래 하위 항목을 확인하세요. null 허용.

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

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

- `data.items[].url` (string): 아래 하위 항목을 확인하세요.

- `data.items[].shortcode` (string): 아래 하위 항목을 확인하세요.

- `data.items[].username` (string): 아래 하위 항목을 확인하세요.

- `data.items[].caption` (string): 아래 하위 항목을 확인하세요.

- `data.items[].content_type` (string): 아래 하위 항목을 확인하세요.

- `data.items[].posted_at` (string): 아래 하위 항목을 확인하세요.

- `data.items[].likes` (integer): 아래 하위 항목을 확인하세요.

- `data.items[].comments` (integer): 아래 하위 항목을 확인하세요.

- `data.items[].views` (undefined): 아래 하위 항목을 확인하세요. null 허용.

- `data.items[].hashtags` (array): 아래 하위 항목을 확인하세요.

- `data.items[].thumbnail_url` (string): 아래 하위 항목을 확인하세요.

- `data.items[].image_urls` (array): 아래 하위 항목을 확인하세요.

- `data.items[].video_url` (string): 아래 하위 항목을 확인하세요.

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

- `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"
        },
        "product": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "max_results": {
          "type": "integer"
        },
        "unit_point": {
          "type": "integer"
        },
        "reserved_point": {
          "type": "integer"
        },
        "charged_point": {
          "type": "integer"
        },
        "result_count": {
          "type": "integer"
        },
        "created_at": {
          "type": "string"
        },
        "completed_at": {
          "type": "string",
          "nullable": true
        },
        "result_expires_at": {
          "type": "string"
        },
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string"
              },
              "shortcode": {
                "type": "string"
              },
              "username": {
                "type": "string"
              },
              "caption": {
                "type": "string"
              },
              "content_type": {
                "type": "string"
              },
              "posted_at": {
                "type": "string"
              },
              "likes": {
                "type": "integer"
              },
              "comments": {
                "type": "integer"
              },
              "views": {
                "nullable": true
              },
              "hashtags": {
                "type": "array",
                "items": {}
              },
              "thumbnail_url": {
                "type": "string"
              },
              "image_urls": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "video_url": {
                "type": "string"
              }
            }
          }
        },
        "result_expired": {
          "type": "boolean"
        }
      }
    },
    "api": {
      "type": "object",
      "properties": {
        "success": {
          "type": "boolean"
        },
        "cost": {
          "type": "integer"
        }
      }
    }
  }
}

```

### 정적 응답 예시

```json

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

```

### 정적 응답 예시

```json

{
  "data": {
    "job_id": "5f0c2a9e7b1d4c3a8e6f90a1b2c3d4e5",
    "product": "instagram_posts",
    "status": "completed",
    "max_results": 12,
    "unit_point": 5,
    "reserved_point": 0,
    "charged_point": 5,
    "result_count": 1,
    "created_at": "2026-10-06T10:00:00.000Z",
    "completed_at": "2026-10-06T10:01:12.000Z",
    "result_expires_at": "2026-10-09T10:01:12.000Z",
    "items": [
      {
        "url": "https://www.instagram.com/p/DeHufcWDCjf",
        "shortcode": "DeHufcWDCjf",
        "username": "natgeo",
        "caption": "Women in this Sardinian mountain village ...",
        "content_type": "Image",
        "posted_at": "2026-10-05T17:17:36.000Z",
        "likes": 35618,
        "comments": 246,
        "views": null,
        "hashtags": [],
        "thumbnail_url": "https://scontent.cdninstagram.com/...",
        "image_urls": [
          "https://scontent.cdninstagram.com/..."
        ],
        "video_url": ""
      }
    ],
    "result_expired": false
  },
  "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): 아래 하위 항목을 확인하세요.

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

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

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

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

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

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

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

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

- `data.completed_at` (string): 아래 하위 항목을 확인하세요. null 허용.

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

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

- `data.items[].url` (string): 아래 하위 항목을 확인하세요.

- `data.items[].shortcode` (string): 아래 하위 항목을 확인하세요.

- `data.items[].username` (string): 아래 하위 항목을 확인하세요.

- `data.items[].caption` (string): 아래 하위 항목을 확인하세요.

- `data.items[].content_type` (string): 아래 하위 항목을 확인하세요.

- `data.items[].posted_at` (string): 아래 하위 항목을 확인하세요.

- `data.items[].likes` (integer): 아래 하위 항목을 확인하세요.

- `data.items[].comments` (integer): 아래 하위 항목을 확인하세요.

- `data.items[].views` (undefined): 아래 하위 항목을 확인하세요. null 허용.

- `data.items[].hashtags` (array): 아래 하위 항목을 확인하세요.

- `data.items[].thumbnail_url` (string): 아래 하위 항목을 확인하세요.

- `data.items[].image_urls` (array): 아래 하위 항목을 확인하세요.

- `data.items[].video_url` (string): 아래 하위 항목을 확인하세요.

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

- `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"
        },
        "product": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "max_results": {
          "type": "integer"
        },
        "unit_point": {
          "type": "integer"
        },
        "reserved_point": {
          "type": "integer"
        },
        "charged_point": {
          "type": "integer"
        },
        "result_count": {
          "type": "integer"
        },
        "created_at": {
          "type": "string"
        },
        "completed_at": {
          "type": "string",
          "nullable": true
        },
        "result_expires_at": {
          "type": "string"
        },
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string"
              },
              "shortcode": {
                "type": "string"
              },
              "username": {
                "type": "string"
              },
              "caption": {
                "type": "string"
              },
              "content_type": {
                "type": "string"
              },
              "posted_at": {
                "type": "string"
              },
              "likes": {
                "type": "integer"
              },
              "comments": {
                "type": "integer"
              },
              "views": {
                "nullable": true
              },
              "hashtags": {
                "type": "array",
                "items": {}
              },
              "thumbnail_url": {
                "type": "string"
              },
              "image_urls": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "video_url": {
                "type": "string"
              }
            }
          }
        },
        "result_expired": {
          "type": "boolean"
        }
      }
    },
    "api": {
      "type": "object",
      "properties": {
        "success": {
          "type": "boolean"
        },
        "cost": {
          "type": "integer"
        }
      }
    }
  }
}

```

### 정적 응답 예시

```json

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

```

### 정적 응답 예시

```json

{
  "data": {
    "job_id": "5f0c2a9e7b1d4c3a8e6f90a1b2c3d4e5",
    "product": "instagram_posts",
    "status": "completed",
    "max_results": 12,
    "unit_point": 5,
    "reserved_point": 0,
    "charged_point": 5,
    "result_count": 1,
    "created_at": "2026-10-06T10:00:00.000Z",
    "completed_at": "2026-10-06T10:01:12.000Z",
    "result_expires_at": "2026-10-09T10:01:12.000Z",
    "items": [
      {
        "url": "https://www.instagram.com/p/DeHufcWDCjf",
        "shortcode": "DeHufcWDCjf",
        "username": "natgeo",
        "caption": "Women in this Sardinian mountain village ...",
        "content_type": "Image",
        "posted_at": "2026-10-05T17:17:36.000Z",
        "likes": 35618,
        "comments": 246,
        "views": null,
        "hashtags": [],
        "thumbnail_url": "https://scontent.cdninstagram.com/...",
        "image_urls": [
          "https://scontent.cdninstagram.com/..."
        ],
        "video_url": ""
      }
    ],
    "result_expired": false
  },
  "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);

```

## 코드·오류

## 상세 기능·요금

지원 API 요약 수집 작업은 접수한 뒤 상태를 조회해 결과를 받는 흐름입니다. 접수할 때 max_results 만큼 포인트를 예약하고, 완료되면 실제로 받은 결과 건수만큼만 차감한 뒤 나머지를 바로 돌려드립니다. 대상을 찾지 못하거나 실패하면 예약한 포인트를 모두 돌려드립니다. Method API entry point 기능 성공 결과 POST /rest/instagram_posts/jobs 수집 작업 접수 HTTP 202와 job_id GET /rest/scrape_jobs/{job_id} 작업 상태·결과 조회(무료) HTTP 200과 현재 상태·결과 1. 작업 접수 Header 이름 필수 설명 Authorization O Bearer 인증키 요청 항목 · multipart/form-data 이름 타입 필수 설명 username String △ 인스타그램 사용자명 (username 또는 url 중 하나 필수) url String △ 인스타그램 프로필 주소 max_results Integer X 최대 결과 수 1~100 (기본 12) idempotency_key String X 응답을 못 받아 다시 보낼 때 같은 접수로 처리할 키. 영문·숫자·_.:-, 8~128자 진행 중인 작업은 계정당 최대 5개입니다. 공개 계정의 공개 정보만 제공합니다. 최근 게시물·릴스 순으로 수집합니다.

## 상세 코드·정책

2. 상태·결과 조회 GET /rest/scrape_jobs/{job_id} 를 5~10초 간격으로 호출해 status 가 completed 또는 failed 가 될 때까지 확인합니다. 보통 30초~1분 안에 끝납니다. 조회는 무료이며, 완료되면 이 조회에서 정산이 끝납니다. 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 수집 결과(완료 시). 각 항목의 필드는 아래 표 url String 게시물 주소 shortcode String 게시물 코드 username String 작성자 사용자명 caption String 캡션 content_type String Image · Video · Carousel · Reel posted_at String 게시 시각 likes Integer 좋아요 수. 숨김이면 null comments Integer 댓글 수 views Integer 조회수(영상) hashtags Array 해시태그 thumbnail_url String 썸네일 주소 image_urls Array 이미지 주소 video_url String 영상 주소 result_expires_at String 결과 보관 기한(완료 후 72시간) result_expired Boolean 보관 기한이 지나 결과를 지웠으면 true error Object 실패 시 { code, message } 오류 코드 HTTP error_code 설명 400 SCRAPE_INPUT_INVALID 입력 형식 또는 max_results 범위 오류. 상류를 호출하지 않으며 포인트는 차감되지 않습니다 402 SCRAPE_POINTS_INSUFFICIENT max_results 만큼의 포인트가 부족합니다 403 SCRAPE_PAYMENT_REQUIRED 충전 이력이 있는 계정만 이용할 수 있습니다 404 SCRAPE_JOB_NOT_FOUND 작업이 없거나 다른 계정의 작업입니다 409 SCRAPE_IDEMPOTENCY_CONFLICT 같은 idempotency_key 로 다른 내용을 접수했습니다 429 SCRAPE_TOO_MANY_JOBS 진행 중인 작업이 5개입니다. 끝난 뒤 다시 접수해 주세요 503 SCRAPE_TEMPORARILY_UNAVAILABLE 일시적으로 접수하지 못했습니다. 포인트는 차감되지 않습니다 작업 실패 TARGET_NOT_FOUND · TARGET_PRIVATE · SCRAPE_TIMEOUT · SCRAPE_FAILED 상태 조회의 error.code. 예약한 포인트는 모두 돌려드립니다

## 상세 예제

접수 요청 form-data 전체 예제 보기 접수 응답 (HTTP 202) { "data": { "job_id": "5f0c2a9e7b1d4c3a8e6f90a1b2c3d4e5", "product": "instagram_posts", "status": "processing", "max_results": 12, "unit_point": 5, "reserved_point": 60, "charged_point": 0, "result_count": 0, "created_at": "2026-10-06T10:00:00.000Z", "completed_at": null }, "api": { "success": true, "cost": 60 } } 상태 조회 form-data 전체 예제 보기 완료 응답 (HTTP 200) { "data": { "job_id": "5f0c2a9e7b1d4c3a8e6f90a1b2c3d4e5", "product": "instagram_posts", "status": "completed", "max_results": 12, "unit_point": 5, "reserved_point": 0, "charged_point": 5, "result_count": 1, "created_at": "2026-10-06T10:00:00.000Z", "completed_at": "2026-10-06T10:01:12.000Z", "result_expires_at": "2026-10-09T10:01:12.000Z", "items": [ { "url": "https://www.instagram.com/p/DeHufcWDCjf", "shortcode": "DeHufcWDCjf", "username": "natgeo", "caption": "Women in this Sardinian mountain village ...", "content_type": "Image", "posted_at": "2026-10-05T17:17:36.000Z", "likes": 35618, "comments": 246, "views": null, "hashtags": [], "thumbnail_url": "https://scontent.cdninstagram.com/...", "image_urls": [ "https://scontent.cdninstagram.com/..." ], "video_url": "" } ], "result_expired": false }, "api": { "success": true, "cost": 0 } }
