# List Instagram location posts

Posts tagged at a location, returned as `edges` with a `page_info` block. `tab` chooses between Instagram's ranked feed and the most recent posts. Page with `end_cursor` from `page_info`.

- Platform: Instagram V3
- Request: `GET https://api.toolzerhub.com/v3/instagram/location/posts`
- Auth: `x-api-key` header
- Cost: 3 credits per successful request. Failed requests are not billed.
- Page: https://docs.toolzerhub.com/reference/instagram-v3/location/get-instagram-location-posts-v3

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `location_id` | query | yes | string | Instagram location ID from /v1/instagram/search/locations. |
| `tab` | query | no | enum: ranked, recent | Feed to read: ranked for Instagram's ranked feed, recent for newest posts. Default: ranked. |
| `end_cursor` | query | no | string | Pass the previous response's page_info.end_cursor. |

## Example request

```bash
curl "https://api.toolzerhub.com/v3/instagram/location/posts?location_id=<location_id>" \
  -H "x-api-key: $TOOLZERHUB_API_KEY"
```

Success responses are wrapped as `{ "data": ... }`. Errors return `{ "error": { "code", "status", "message", "retryable", "details" } }`. See https://docs.toolzerhub.com/docs/responses-and-errors.
