Search Locations
Search for a specific location (max 20 results)
Params
Name | Type | Default | Description |
---|---|---|---|
query (required) | string | – | The search query |
Usage
- Python
- PHP
- cURL
from rocketapi import InstagramAPI
instagram_api = InstagramAPI(token="your-api-key")
print(instagram_api.search_locations(query="seoul"))
<?php
require('vendor/autoload.php');
use RocketAPI\InstagramAPI;
$api = new InstagramAPI('your-api-key');
print_r($api->searchLocations('seoul'));
curl --request POST \
--url https://v1.rocketapi.io/instagram/location/search \
--header 'Content-Type: application/json' \
--header 'Authorization: Token your-api-key' \
--data '{
"query": "seoul"
}'
Response example
Loading...