Search Users ๐๐จโ๐ฆฑ
Search for a specific user in Threads
Paramsโ
Name | Type | Default | Description |
---|---|---|---|
query (required) | string | โ | The search query |
rank_token | string | None | Use for pagination |
page_token | string | None | Use for pagination |
In order to use pagination, you need to use both the rank_token
and page_token
parameters. You can obtain these values from the response's rank_token
and page_token
fields.
Usageโ
- Python
- PHP
- cURL
from rocketapi import ThreadsAPI
threads_api = ThreadsAPI(token="your-api-key")
print(threads_api.search_users(query="kanyewest"))
<?php
require('vendor/autoload.php');
use RocketAPI\ThreadsAPI;
$api = new ThreadsAPI('your-api-key');
print_r($api->searchUsers('kanyewest'));
curl --request POST \
--url https://v1.rocketapi.io/threads/search_users \
--header 'Content-Type: application/json' \
--header 'Authorization: Token your-api-key' \
--data '{
"query": "kanyewest"
}'
Response exampleโ
Loading...