GET /v1/instagram/location_info
Instagram location API: name, coordinates and posts by location id
Returns one Instagram location as Location: name, latitude, longitude and the number of posts tagged there. Send the numeric location id as location_id_str.
- Price
- $0.0005 per call
- Batch
- Yes, through /v1/batch
- Failed calls
- Not charged
Example request
curl
curl 'https://api.virev.ai/v1/instagram/location_info?location_id_str=1031760084' \
-H "Authorization: Bearer $VIREV_API_KEY"python
import os
import requests
response = requests.request(
"GET",
"https://api.virev.ai/v1/instagram/location_info",
params={
"location_id_str": "1031760084",
},
headers={"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"},
timeout=60,
)
response.raise_for_status()
print(response.json())Parameters
| Name | In | Type | Description |
|---|---|---|---|
location_id_str required | query | string | Numeric Instagram location id, sent as a string. |
cached | query | auto | cache_only | live | auto (default) serves a read saved within the last 24 hours for these exact arguments, otherwise fetches. cache_only never contacts Instagram (404 not_cached when nothing is saved, whatever its age). live always fetches. Anything else is a 400. A saved read is an earlier answer of this operation for the same arguments; an account in the profile library (/v1/instagram/profile) is not one until this operation has read it. |
get_raw | query | boolean | Not available on this operation: the upstream document is an HTML page, and true answers 400. The default false returns the normalized type. |
Example response
The example response of the API reference.
json
{
"data": {
"id": "1031760084",
"name": "Seoul, Korea",
"slug": null,
"lat": 37.5665,
"lng": 126.978,
"address": null,
"city": null,
"phone": null,
"website": null,
"posts": 1234567
},
"meta": {
"source": "live",
"fetched_at": "2026-09-09T03:10:22Z",
"cost": "$0.0005",
"balance": "$0.7872",
"request_id": "req_fbf3eb8a510aa7659b6e7c7c0ad725a6"
}
}How it works
Wraps GET /explore/locations/{id}/ (preloaded PolarisExploreLocationsContainerQuery). Returns Location under data; the upstream document is an HTML page, so get_raw is not available.
Unknown, unsupported, and repeated query parameters return 400 before acquisition or billing.
The example response is the crawler's own projection of a synthetic upstream document into Location, not a live capture.
Errors
| Status | When |
|---|---|
400 | The request parameters are invalid. |
401 | Missing, malformed, or revoked API key. |
402 | Balance is too low for this request. |
403 | Instagram does not show this account to logged-out readers: it is private, hidden or restricted, or it no longer exists. Retrying will not change the answer until the account changes. You are not charged. |
404 | cached=cache_only found nothing saved for these arguments (not_cached; call again with cached=auto to fetch it), or the account, post, highlight, or location does not exist (not_found). |
429 | Over the per-minute limit. The limit belongs to your organization and all its API keys share it: 100 requests per minute unless an increase was granted. Wait for the Retry-After seconds, then retry. On a live read, code rate_limited means the platform itself rate-limited this read; retry after the Retry-After seconds. You are not charged. |
502 | The upstream fetch failed. You are not charged. |
503 | Billing could not be confirmed, so no upstream data was returned. |
504 | The upstream request timed out. You are not charged. |