User Searches
Create user-based social searches (Twitter, Instagram, Facebook).
POST /api/iq/user_search
Parameters
| query | Required — username or handle |
| platform | Required — "twitter" | "facebook" | "instagram" |
| start_date | Optional — default: 1 month before current date |
| end_date | Optional — default: current date |
Request Example
curl -X POST "https://rolli.ai/api/iq/user_search" \
-H "X-ROLLI-TOKEN: your_token" \
-H "X-ROLLI-USER-ID: your_user_id" \
-H "Content-Type: application/json" \
-d '{
"query": "some_username",
"platform": "twitter",
"start_date": "2025-06-01",
"end_date": "2025-07-01"
}'
fetch("https://rolli.ai/api/iq/user_search", {
method: "POST",
headers: {
"X-ROLLI-TOKEN": "your_token",
"X-ROLLI-USER-ID": "your_user_id",
"Content-Type": "application/json"
},
body: JSON.stringify({"query":"some_username","platform":"twitter","start_date":"2025-06-01","end_date":"2025-07-01"})
})
.then(res => res.json())
.then(console.log);
require "net/http"
require "uri"
require "json"
uri = URI("https://rolli.ai/api/iq/user_search")
req = Net::HTTP::Post.new(uri)
req["X-ROLLI-TOKEN"] = "your_token"
req["X-ROLLI-USER-ID"] = "your_user_id"
req["Content-Type"] = "application/json"
req.body = {"query":"some_username","platform":"twitter","start_date":"2025-06-01","end_date":"2025-07-01"}.to_json
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http|
http.request(req)
end
puts res.body
import requests
import json
url = "https://rolli.ai/api/iq/user_search"
headers = {
"X-ROLLI-TOKEN": "your_token",
"X-ROLLI-USER-ID": "your_user_id",
"Content-Type": "application/json"
}
payload = {
"query": "some_username",
"platform": "twitter",
"start_date": "2025-06-01",
"end_date": "2025-07-01"
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
Response Example
{
"id": 1241,
"query": "some_username",
"created_at": "2023-10-01T12:00:00Z",
"updated_at": "2023-10-01T12:00:00Z"
}
Intelligent analysis features (metrics, sentiment, coordination) are available for Twitter only.