locationIdstring필수
Instagram location id, as returned by instagram.search_locations.
https://api.sandbase.ai/v1/api/instagram/location-postsList public Instagram posts tagged at a location, ranked or most recent, with cursor pagination.
출력이 여기에 표시됩니다
입력을 완료한 다음 Run을 클릭하세요.
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.
sort set to recent.author of posts at a city location.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.
| Name | Type | Required | Description |
|---|---|---|---|
locationId | string | Yes | Instagram location id, as returned by instagram.search_locations. |
cursor | string | No | Pagination cursor from a previous response's nextCursor. |
sort | string | No | Order the posts by Instagram's top ranking or by newest first. Defaults to ranked. |
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
}
| Field | Meaning |
|---|---|
data.posts[].id / data.posts[].shortcode | The numeric post ID and the short code used in the post URL. |
data.posts[].url | Link to the post on Instagram. |
data.posts[].caption | Caption text of the post. captionEdited shows whether the caption was changed after posting. |
data.posts[].hashtags / data.posts[].mentions / data.posts[].taggedUsers / data.posts[].coauthors | Lists of hashtags, mentioned accounts, tagged users and co-authors on the post. Each list is empty when none exist. |
data.posts[].author / data.posts[].authorId | Username and numeric ID of the account that posted. |
data.posts[].authorVerified / data.posts[].authorPrivate | Flags for whether the author account is verified and whether it is private. |
data.posts[].likes / data.posts[].comments | Like and comment counts for the post. countsHidden is true when the author hides counts. |
data.posts[].createdUtc | Time the post was created, as a Unix timestamp in seconds. |
data.posts[].mediaType / data.posts[].productType / data.posts[].image | Media 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[].locationLng | The tagged location's ID, name, latitude and longitude. |
data.nextCursor | Cursor for the next page of posts. |
locationId from Instagram Location Search.data.nextCursor value as cursor with the same locationId and sort.sort accepts ranked (the default) or recent.Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.
빌드를 시작하세요
통합 인증 및 사용량 추적이 있는 플랫폼 API 엔드포인트입니다.
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"
}'서버 환경에 SandBase API 키를 설정하세요. 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하지 마세요.
locationIdstring필수Instagram location id, as returned by instagram.search_locations.
sortstringOrder the posts by Instagram's top ranking or by newest first. Defaults to ranked.
가능한 값: ranked, recent
cursorstringPagination cursor from a previous response's nextCursor.
이 API의 저장된 예시 응답입니다. 확인할 때 라이브 요청은 실행되지 않습니다.
저장된 응답이 게시되지 않았습니다. Playground에서 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
질문
Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/instagram/location-posts에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.
호출당 $0.0012부터, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.
필수: locationId (string). 선택: sort(ranked, recent 중 하나) 및 cursor (string). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.
같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.
아니요. Instagram Location Posts은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Instagram API 액세스를 별도로 신청할 필요는 없습니다.