Sand AISand AI MAGI-2MAGI-2가 이제 SandBase에서 제공됩니다: 네이티브 오디오가 포함된 1080p 동영상지금 사용해 보기

Instagram Location Posts

API 문서
https://api.sandbase.ai/v1/api/instagram/location-posts

List public Instagram posts tagged at a location, ranked or most recent, with cursor pagination.

가격
$0.0012부터USD / 호출
메서드
POST
응답
JSON
매개변수
필수 1개 · 선택 사항 2개

Playground

입력
Instagram location id, as returned by instagram.search_locations.
Order the posts by Instagram's top ranking or by newest first. Defaults to ranked.
Pagination cursor from a previous response's nextCursor.
출력준비됨

출력이 여기에 표시됩니다

입력을 완료한 다음 Run을 클릭하세요.

API README

Instagram Location Posts API

Returns public Instagram posts tagged at one location, either ranked by Instagram or newest first. It needs an Instagram locationId. Each post includes the author, caption, counts, media size, and the location name and coordinates.

Use cases

  • Monitor new posts tagged at a landmark, venue or hotel by polling with sort set to recent.
  • Collect captions and hashtags from a tourist spot to see what visitors say about it.
  • Find active local creators by listing the author of posts at a city location.
  • Pull image links and post URLs from a place to build a visual feed for a travel page.

Request

curl -X POST "https://api.sandbase.ai/v1/api/instagram/location-posts" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sort": "recent", "locationId": "103912118089363"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
locationIdstringYesInstagram location id, as returned by instagram.search_locations.
cursorstringNoPagination cursor from a previous response's nextCursor.
sortstringNoOrder the posts by Instagram's top ranking or by newest first. Defaults to ranked.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "nextCursor": "cur_uju1QQCUkfS3KOLawGhzRg",
    "posts": [
      {
        "author": "honey_petals8483444",
        "authorId": "16540969846",
        "authorPrivate": false,
        "authorVerified": false,
        "avatarUrl": "https://scontent-cdg4-1.cdninstagram.com/v/t51.82787-19/883558648_18149634271545…",
        "caption": "Slow down, look up. Weekend mood 🍃",
        "captionEdited": false,
        "coauthors": [],
        "comments": 0,
        "countsHidden": false,
        "createdUtc": 1793667839,
        "hashtags": []
      }
    ]
  },
  "found": true
}

Response fields

FieldMeaning
data.posts[].id / data.posts[].shortcodeThe numeric post ID and the short code used in the post URL.
data.posts[].urlLink to the post on Instagram.
data.posts[].captionCaption text of the post. captionEdited shows whether the caption was changed after posting.
data.posts[].hashtags / data.posts[].mentions / data.posts[].taggedUsers / data.posts[].coauthorsLists of hashtags, mentioned accounts, tagged users and co-authors on the post. Each list is empty when none exist.
data.posts[].author / data.posts[].authorIdUsername and numeric ID of the account that posted.
data.posts[].authorVerified / data.posts[].authorPrivateFlags for whether the author account is verified and whether it is private.
data.posts[].likes / data.posts[].commentsLike and comment counts for the post. countsHidden is true when the author hides counts.
data.posts[].createdUtcTime the post was created, as a Unix timestamp in seconds.
data.posts[].mediaType / data.posts[].productType / data.posts[].imageMedia type (such as photo), the post format (such as feed), and the image link.
data.posts[].locationId / data.posts[].locationName / data.posts[].locationLat / data.posts[].locationLngThe tagged location's ID, name, latitude and longitude.
data.nextCursorCursor for the next page of posts.

Notes

  • Get locationId from Instagram Location Search.
  • For the next page, send the data.nextCursor value as cursor with the same locationId and sort.
  • sort accepts ranked (the default) or recent.
  • To read a single post in full, pass its link or ID to Instagram Post Details.

Pricing

Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.

더 살펴보기

관련 API

모든 API
API가격응답
Instagram호출당 $0.0012부터JSON
Instagram호출당 $0.0011부터JSON
Instagram호출당 $0.001부터JSON
Instagram호출당 $0.0011부터JSON
Instagram호출당 $0.0012부터JSON
Instagram호출당 $0.0011부터JSON

가이드:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared

질문

FAQ

Instagram Location Posts API를 어떻게 사용하나요?

Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/instagram/location-posts에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.

Instagram Location Posts API 비용은 얼마인가요?

호출당 $0.0012부터, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.

Instagram Location Posts API는 어떤 매개변수를 받나요?

필수: locationId (string). 선택: sort(ranked, recent 중 하나) 및 cursor (string). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.

Instagram Location Posts API는 무엇을 반환하나요?

같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.

Instagram 개발자 계정이나 API 키가 필요한가요?

아니요. Instagram Location Posts은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Instagram API 액세스를 별도로 신청할 필요는 없습니다.