Search Users
Search for a specific user (max 50 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_users(query="kanyewest"))
<?php
require('vendor/autoload.php');
use RocketAPI\InstagramAPI;
$api = new InstagramAPI('your-api-key');
print_r($api->searchUsers('kanyewest'));
curl --request POST \
--url https://v1.rocketapi.io/instagram/user/search \
--header 'Content-Type: application/json' \
--header 'Authorization: Token your-api-key' \
--data '{
"query": "kanyewest"
}'
Response example
Loading...