# 인스타그램 프로필 조회



인스타그램 공개 계정의 팔로워·팔로잉·게시물 수·소개·인증 여부와 최근 게시물 12개를 조회합니다.



인증: Authorization: Bearer $APICK_API_KEY

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

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



## POST /rest/instagram_profile 응답 필드

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

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

- `data.full_name` (string): 표시 이름

- `data.biography` (string): 소개

- `data.followers` (integer): 팔로워 수

- `data.following` (integer): 팔로잉 수

- `data.posts_count` (integer): 게시물 수

- `data.is_verified` (boolean): 인증 계정 여부

- `data.is_private` (boolean): 비공개 계정 여부

- `data.external_urls` (array): 프로필 외부 링크

- `data.highlights_count` (integer): 하이라이트 수

- `data.profile_image_url` (string): 프로필 사진 주소

- `data.profile_url` (string): 프로필 주소

- `data.recent_posts` (array): 최근 게시물 (최대 12개)

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

- `data.recent_posts[].content_type` (string): Image · Video · Carousel

- `data.recent_posts[].caption` (string): 캡션 (최대 500자)

- `data.recent_posts[].posted_at` (string): 게시 시각 (ISO 8601)

- `data.recent_posts[].image_url` (string): 대표 이미지 주소

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

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

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

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

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

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

## API 요청: POST /rest/instagram_profile



### 입력

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

- `url` (string, 조건부): 인스타그램 프로필 주소 (예: https://www.instagram.com/natgeo/)



### 응답 명세

```json

{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "username": {
          "type": "string",
          "description": "사용자명"
        },
        "full_name": {
          "type": "string",
          "description": "표시 이름"
        },
        "biography": {
          "type": "string",
          "description": "소개"
        },
        "followers": {
          "type": "integer",
          "description": "팔로워 수"
        },
        "following": {
          "type": "integer",
          "description": "팔로잉 수"
        },
        "posts_count": {
          "type": "integer",
          "description": "게시물 수"
        },
        "is_verified": {
          "type": "boolean",
          "description": "인증 계정 여부"
        },
        "is_private": {
          "type": "boolean",
          "description": "비공개 계정 여부"
        },
        "external_urls": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "프로필 외부 링크"
        },
        "highlights_count": {
          "type": "integer",
          "description": "하이라이트 수"
        },
        "profile_image_url": {
          "type": "string",
          "description": "프로필 사진 주소"
        },
        "profile_url": {
          "type": "string",
          "description": "프로필 주소"
        },
        "recent_posts": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string",
                "description": "게시물 주소"
              },
              "content_type": {
                "type": "string",
                "description": "Image · Video · Carousel"
              },
              "caption": {
                "type": "string",
                "description": "캡션 (최대 500자)"
              },
              "posted_at": {
                "type": "string",
                "description": "게시 시각 (ISO 8601)"
              },
              "image_url": {
                "type": "string",
                "description": "대표 이미지 주소"
              },
              "hashtags": {
                "type": "array",
                "items": {},
                "description": "해시태그"
              }
            }
          },
          "description": "최근 게시물 (최대 12개)"
        }
      },
      "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": {
    "username": "natgeo",
    "full_name": "National Geographic",
    "biography": "Inspiring the explorer in everyone 🌎",
    "followers": 268438644,
    "following": 194,
    "posts_count": 32000,
    "is_verified": true,
    "is_private": false,
    "external_urls": [
      "http://visitstore.bio/natgeo"
    ],
    "highlights_count": 20,
    "profile_image_url": "https://scontent.cdninstagram.com/...",
    "profile_url": "https://www.instagram.com/natgeo",
    "recent_posts": [
      {
        "url": "https://www.instagram.com/p/DeHufcWDCjf",
        "content_type": "Image",
        "caption": "Women in this Sardinian mountain village have high odds of living to 100...",
        "posted_at": "2026-10-05T17:17:36.000Z",
        "image_url": "https://scontent.cdninstagram.com/...",
        "hashtags": []
      }
    ]
  },
  "api": {
    "success": true,
    "cost": 20,
    "pl_id": 1595635,
    "ms": 52410
  }
}

```

### curl

```curl

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

```

### Node.js (서버 ESM)

```javascript

const form = new FormData();
form.append("username", "natgeo");
const response = await fetch("https://apick.app/rest/instagram_profile", {
  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")),
]
response = requests.request("POST", "https://apick.app/rest/instagram_profile",
    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',
];
$curl = curl_init('https://apick.app/rest/instagram_profile');
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/instagram_profile 공개 계정의 공개 정보만 제공합니다. 비공개 계정은 is_private 가 true 이며 게시물 목록이 비어 있을 수 있습니다. 처리에 보통 40~60초가 걸립니다. 클라이언트 타임아웃을 100초 이상으로 설정해 주세요. 실패한 호출(입력 오류, 시간 초과, 대상 없음)은 과금하지 않습니다. 같은 요청은 최대 10분 동안 같은 결과가 반환될 수 있습니다. API 호출 요청 요청하기 Key Value username url 응답

## 상세 요청

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

## 상세 응답

Body 이름 타입 설명 data Object 조회 데이터. 실패하면 error 에 안내 문구가 담깁니다. username String 사용자명 full_name String 표시 이름 biography String 소개 followers Integer 팔로워 수 following Integer 팔로잉 수 posts_count Integer 게시물 수 is_verified Boolean 인증 계정 여부 is_private Boolean 비공개 계정 여부 external_urls Array 프로필 외부 링크 highlights_count Integer 하이라이트 수 profile_image_url String 프로필 사진 주소 profile_url String 프로필 주소 recent_posts Array 최근 게시물 (최대 12개) url String 게시물 주소 content_type String Image · Video · Carousel caption String 캡션 (최대 500자) posted_at String 게시 시각 (ISO 8601) image_url String 대표 이미지 주소 hashtags Array 해시태그 api Object API 호출 공통 데이터 success Boolean API 서버 정상 응답 여부 cost Integer 차감된 포인트. 실패한 응답은 0 ms Integer API 응답 시간(밀리초) pl_id Integer API 결제 로그 ID

## 상세 예제

요청 예시 form-data 전체 예제 보기 응답 예시 { "data": { "username": "natgeo", "full_name": "National Geographic", "biography": "Inspiring the explorer in everyone 🌎", "followers": 268438644, "following": 194, "posts_count": 32000, "is_verified": true, "is_private": false, "external_urls": [ "http://visitstore.bio/natgeo" ], "highlights_count": 20, "profile_image_url": "https://scontent.cdninstagram.com/...", "profile_url": "https://www.instagram.com/natgeo", "recent_posts": [ { "url": "https://www.instagram.com/p/DeHufcWDCjf", "content_type": "Image", "caption": "Women in this Sardinian mountain village have high odds of living to 100...", "posted_at": "2026-10-05T17:17:36.000Z", "image_url": "https://scontent.cdninstagram.com/...", "hashtags": [] } ] }, "api": { "success": true, "cost": 20, "pl_id": 1595635, "ms": 52410 } }
