Instagram: Location
instagram_locationInstagram locations: posts tagged at a place, and nearby places.
Actions:
action=posts: List Instagram posts tagged at a location: top posts (tab=ranked) or most recent (tab=recent). Needs a location_id, e.g. from a place in instagram_search (action=search). Returns an end_cursor for the next page. Pricing: 1 credit per call. Inputs: location_id (required), tab (optional), end_cursor (optional).
action=nearby: List Instagram places near a given location, with name, category, coordinates and post count. Needs a location_id, e.g. from a place in instagram_search (action=search). Pricing: 1 credit per call. Inputs: location_id (required).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab | No | Filter: "recent" or "ranked". Optional for: posts. | |
| action | Yes | Which operation to run. See the tool description for what each action returns and which parameters it needs. | |
| end_cursor | No | Pagination cursor for next page. Optional for: posts. | |
| location_id | No | Instagram location ID. Required for: posts, nearby. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | JSON response from the SocialAPIs REST endpoint, unchanged. Object or array depending on the endpoint; most include a `meta` block (statusCode, duration, creditsCharged, creditsRemaining). | |
| creditsCharged | No | Credits charged for this call, or null if the endpoint did not report it. | |
| creditsRemaining | No | Credits left on the API key after this call, or null if not reported. |