Instagram Nearby locations API

POST

API 상태

24시간 상태
정상
  • 양호 / 정상
  • 사용 가능
  • 제한적
  • 대부분 작동 중단
정상

최근 24시간

최근 30일

List the locations Instagram shows near one location, from its location_id: about 20 rows in one call, no next page. Each row has location_id, name, category, lat, lng and post counts.

POST https://api.everyinfra.com/api/v1/social을 보내고 platform은 instagram, action은 location_nearby로 설정합니다. 요금은 요청 1,000개당 $0.56(호출당 $0.000556)입니다. 실패한 호출과 빈 결과에는 과금하지 않습니다. 동기 방식입니다. 오래 걸리는 작업은 요청 본문에 "mode": "async"를 추가하고 job_id를 받아 폴링하세요.

AI 프롬프트

#
EveryInfra Instagram Nearby locations 엔드포인트(instagram/location_nearby)를 사용하는 데이터 수집 스크립트 작성을 도와주세요.

엔드포인트 사용 방법:
- 요청: Authorization: Bearer <API 키> 헤더와 함께 POST https://api.everyinfra.com/api/v1/social로 보냅니다. 키는 EVERYINFRA_API_KEY 환경 변수에서 읽고, 절대 하드코딩하지 마세요.
- 요청 본문에서 platform은 instagram, action은 location_nearby로 설정하고, 파라미터는 params 안에 넣습니다.
- 필수 파라미터:
  - location_id: A numeric location ID, such as the id in a post's location_detail, or a location page link (https://www.instagram.com/explore/locations/212988663/); the link works too.
- 레코드 목록을 반환합니다. 각 레코드의 주요 필드: rank (1부터 시작하는 순위로, 이 결과 안에서 해당 행의 순서입니다), location_id (Location ID), name, category, lat (Latitude), lng (Longitude), post_count, post_count_label (The post count as Instagram writes it,…), price_range ((location_nearby) Price range as Instag…), hours_status ((location_nearby) Opening status as Ins…), thumbnail_url, url; 전체 필드 13개, 전체 목록은 https://api.everyinfra.com/api/v1/social/catalog?platform=instagram.
- 요청 본문 예시:
{
  "platform": "instagram",
  "action": "location_nearby",
  "params": {
    "location_id": "212988663"
  }
}
- 요금: 요청 1,000개당 $0.56. 실패하거나 빈 결과에는 과금하지 않습니다.
- 대상이 수십~수백 개라면 요청 본문에 "mode": "async"를 추가하세요. job_id를 즉시 받은 뒤 GET https://api.everyinfra.com/api/v1/jobs/{job_id}를 폴링해 결과를 가져옵니다.
- 422가 반환되면 오류에 제시된 파라미터 이름과 허용 값을 참고해 요청을 수정하고, 429 또는 503이 반환되면 Retry-After만큼 기다린 뒤 다시 시도합니다.

코드를 작성하기 전에 필요한 대상과 수량, 필드, 원하는 출력 형식을 먼저 물어봐 주세요. 그런 다음 계획과 대략적인 비용을 저와 확인해 주세요.

요청 파라미터

#
이름위치타입필수기본값설명
Authorizationheaderstring예-Bearer 뒤에 API 키를 붙여 입력합니다. API 키는 콘솔에서 생성하며, URL이나 코드 저장소에 절대 넣지 마세요.
platformbodystring예instagram플랫폼 식별자이며 고정값입니다.
actionbodystring예location_nearby기능 식별자이며 고정값입니다.
location_idbody.paramsstring예-A numeric location ID, such as the id in a post's location_detail, or a location page link (https://www.instagram.com/explore/locations/212988663/); the link works too.

코드 샘플

#
bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "instagram",
  "action": "location_nearby",
  "params": {
    "location_id": "212988663"
  }
}'

OpenAPI 정의(JSON)샘플 코드는 EVERYINFRA_API_KEY 환경 변수에서 키를 읽으므로, 복사한 코드에는 API 키가 포함되지 않습니다.

응답 예시

#
November 21, 2026 at 07:18(UTC)에 위 코드 샘플의 파라미터로 이 API를 호출해 수집한 응답입니다. results와 count는 해당 호출의 실제 응답이며, 개인정보(이름, 핸들, 아바타, 프로필 링크, 연락처)는 제거했습니다(목록은 처음 2개만 표시). id, billing, quota는 호출할 때마다 달라지므로 형태만 표시합니다.
json
{  "id": "req_…",  "platform": "instagram",  "action": "location_nearby",  "results": [    {      "rank": 1,      "location_id": "105978888134411",      "name": "Long Island City",      "category": "Government Building",      "lat": 40.714199791679,      "lng": -74.006406068802,      "post_count": 2200,      "post_count_label": "2.2K posts",      "thumbnail_url": "https://scontent-lax7-1.cdninstagram.com/v/t51.82787-15/894460983_17948449221127280_215263549254016924_n.jpg?stp=dst-jpg_e15_tt6&_nc_cat=110&_nc_map=urlgen_bucketless&ig_cache_key=NDAzMTk4MzE0NDE1NTc3ODIyMzE3OTQ4NDQ5MjE1MTI3Mjgw.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3R…",      "url": "https://www.instagram.com/explore/locations/105978888134411/long-island-city/",      "platform": "instagram",      "origin": {        "location_id": "212988663",        "name": "New York, New York",        "lat": 40.7142,        "lng": -74.0064      }    },    {      "rank": 2,      "location_id": "106075139432188",      "name": "New York, N.Y.",      "category": "Government organization",      "lat": 40.716666666667,      "lng": -74,      "post_count": 1400000,      "post_count_label": "1.4M posts",      "thumbnail_url": "https://scontent-lax7-1.cdninstagram.com/v/t51.71878-15/916393440_1696283865348282_5708378039583168201_n.jpg?stp=dst-jpg_e15_tt6&_nc_cat=110&_nc_map=urlgen_bucketless&ig_cache_key=NDAzNTEzNDEwNDI4MDk0MTk1MA%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkNMSVBTLnh…",      "url": "https://www.instagram.com/explore/locations/106075139432188/new-york-ny/",      "platform": "instagram",      "origin": {        "location_id": "212988663",        "name": "New York, New York",        "lat": 40.7142,        "lng": -74.0064      }    }  ],  "count": 20,  "billing": {    "charged": …,    "charged_usd": …,    "balance_after_usd": …,    …  },  "quota": { … }}

응답 필드

#

비즈니스 데이터는 results에 담깁니다. 아래 표는 레코드에 포함될 수 있는 필드를 나열하며, 플랫폼에 표시되지 않는 값을 임의로 만들어 넣지 않습니다.

필드의미
rank1부터 시작하는 순위로, 이 결과 안에서 해당 행의 순서입니다. user_search: 먼저 Instagram 검색창이 반환한 계정이 검색창 순서대로 오고(matched_by는 search_box), 이어서 개수를 채우기 위해 이 키워드로 찾은 게시물의 작성자가 추가됩니다(matched_by는 post_author). matched_by가 없는 결과에는 Instagram이 이 키워드에 대해 해당 계정을 매긴 순위가 들어갑니다. similar_profiles: 팔로워 수 순으로 정렬한 유사 계정 중 해당 계정의 순위입니다. likers: 좋아요를 누른 계정 목록에서 해당 계정의 순위입니다.
location_idLocation ID. Pass it to location_info, location_nearby or location_posts.
name객체 자체의 이름으로, 계정, 상품, 업체 관련 기능에 해당합니다.
category플랫폼 자체 분류 체계의 카테고리 이름으로, 플랫폼 간에 정규화되지 않습니다.
latLatitude.
lngLongitude.
post_count전체 게시물 수입니다. null은 비공개라는 뜻이며, 0이 아닙니다.
post_count_labelThe post count as Instagram writes it, such as 2.2K posts.
price_range(location_nearby) Price range as Instagram writes it, such as $$; absent when there is none.
hours_status(location_nearby) Opening status as Instagram writes it; absent when there is none.
thumbnail_url썸네일 링크로, image_url보다 해상도가 낮습니다.
url플랫폼에서 해당 레코드로 연결되는 링크입니다.
platform출처 플랫폼 식별자로, 요청의 platform과 같습니다(예: xiaohongshu, tiktok).
origin(location_nearby) The location you asked about, the same on every row: location_id, name, lat, lng.

오류 및 과금

#
401
키가 없거나 유효하지 않습니다.
402
잔액이 부족합니다. 먼저 충전하세요.
422
파라미터 이름 또는 값이 올바르지 않습니다. 오류에 제시된 제안을 참고해 수정하세요. 과금되지 않습니다.
429
분당 요청 속도 제한에 도달했습니다. Retry-After만큼 기다린 뒤 다시 시도하세요.
503
처리를 완료하지 못했습니다. 보류된 금액은 잔액으로 반환됩니다. 결과가 불확실하면 재시도하기 전에 먼저 확인하세요.
200 빈 결과
데이터가 없습니다. 과금되지 않습니다.

오류

Google Analytics는 동의 필요. 개인정보