List Active Monitors - API Reference
Returns a list of monitors owned by the user
GET https://api.socialdata.tools/monitors?page={page}
Headers
Authorization string required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR_API_KEY
Query Parameters
page integer optional
Page number. Endpoint returns up to 50 monitors per page
Example: 2
Code Examples
curl "https://api.socialdata.tools/monitors" -H 'Authorization: Bearer YOUR_API_KEY' -H 'Accept: application/json'
const API_KEY = 'YOUR_API_KEY_HERE';
fetch('https://api.socialdata.tools/monitors', { method: 'GET', headers: { 'Authorization': `Bearer ${API_KEY}`, 'Accept': 'application/json' }}).then(response => response.json()).then(response => console.log(response)).catch(err => console.error(err));
import requests
API_KEY = 'YOUR_API_KEY_HERE'
url = 'https://api.socialdata.tools/monitors'
headers = { 'Authorization': f'Bearer {API_KEY}', 'Accept': 'application/json'}
response = requests.get(url, headers=headers)
if response.status_code == 200: data = response.json() print(data)else: print(f"Error: {response.status_code}") print(response.text)
$API_KEY = 'YOUR_API_KEY_HERE';
$url = "https://api.socialdata.tools/monitors";
$ch = curl_init();
curl_setopt_array($ch, [ CURLOPT_URL => $url, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ "Authorization: Bearer $API_KEY", "Accept: application/json" ]]);
$response = curl_exec($ch);$data = json_decode($response, true);print_r($data);
curl_close($ch);
Example Responses
{ "data": [ { "id": "01jhfkd7xsvy6afdmwycs1qn61", "created_at": "2025-01-13T15:30:02.000000Z", "monitor_type": "user_followers", "webhook_url": null, "parameters": { "user_screen_name": "elon_musk", "user_name": "Elon Musk", "user_id_str": "231198744196397360" } }, { "id": "01jhfkdcmt0d8fjbbxqrtqbmck", "created_at": "2025-01-13T15:30:07.000000Z", "monitor_type": "user_tweets", "webhook_url": null, "parameters": { "user_screen_name": "elon_musk", "user_name": "Elon Musk", "user_id_str": "44196397" } }, // ... ], "meta": { "page": 1, "last_page": 2, "items_count": 100 }}
{ "status": "error", "message": "Insufficient balance"}
{ "status": "error", "message": "Not found"}
{ "status": "error", "message": "Failed to fetch data from Twitter"}
Response Codes
- 200 OK - request succeeded
- 404 Not Found - requested tweet does not exist
- 500 Internal Error - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later