API · Instagram
GET /instagram/locations/{location_id}/posts
The top Instagram posts tagged at a place.
| Request | GET /v1/instagram/locations/{location_id}/posts |
| Operation id | instagram.location.posts |
| Cost | 2 credits, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
The top Instagram posts tagged at a place.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
location_id | string | yes | Location id, or its instagram.com/explore/locations/<id>/ URL. Example: 6889842. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | The place and its top posts. | InstagramLocationPosts |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | The account or post does not exist, or was removed. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Instagram is temporarily unavailable. Retryable; nothing was charged. | Error |
InstagramLocationPosts fields
| Field | Type | Description |
|---|---|---|
location | InstagramLocationInfo | |
items | InstagramMedia[] | |
more_available | boolean |
Errors use one shape everywhere; see Errors for every code and what to do.