# SocialData API Documentation
> SocialData API is a scalable and reliable API that simplifies the process of fetching data from social media websites. At the moment, we only support X (formerly Twitter). With SocialData API, you can easily retrieve tweets, user profiles, user followers/following and other information without the need for proxies or parsing Twitter responses. This ensures a seamless and hassle-free integration with your application, saving you valuable time and effort.
## Getting Started
### Getting Started: Twitter/X Data API - Overview
Source: [Twitter/X Data API - Overview](https://docs.socialdata.tools/getting-started/overview/)
#### Introduction
SocialData API is a scalable and reliable Twitter API alternative that simplifies the process of fetching data from social media websites. At the moment, we only support X (formerly Twitter).
With SocialData’s Twitter data API, you can easily retrieve tweets, user profiles, user followers/following and other information without the need for proxies or parsing Twitter responses. This ensures a seamless and hassle-free integration with your application, saving you valuable time and effort.
#### Ways to use SocialData
There are four ways to reach the same data. All of them use a single API key and draw on the same balance — there is no separate subscription for any of them.
- **[Data API](#available-endpoints)** — REST endpoints you call on demand for tweets, profiles, followers, lists, communities and Spaces. Listed in full below.
- **[Monitoring API](https://docs.socialdata.tools/monitoring/introduction/)** — instead of polling, create a monitor and we send a webhook to your server shortly after a user posts, follows a new account, changes their profile, or a search query picks up a match.
- **[Social Actions](https://docs.socialdata.tools/social-actions/verify-user-following/)** — single-call checks for whether a specific user followed, retweeted or replied.
- **[MCP Server](https://docs.socialdata.tools/mcp/introduction/)** — connect Claude, Cursor or any other MCP client straight to this data and ask questions in plain English. Each tool call is billed exactly like the equivalent REST call.
If you are just getting started, [Authentication](https://docs.socialdata.tools/getting-started/authentication/) covers how to get your key and [Pricing](https://docs.socialdata.tools/getting-started/pricing/) covers what each request costs.
#### Available Endpoints
##### Data API
| | |
| --- | --- |
| Search Endpoints |
| GET [Get Search Results](https://docs.socialdata.tools/reference/get-search-results/) | Fetch tweets matching specified search criteria, including keywords, hashtags, and user mentions. Supports all [Twitter Advanced Search operators](https://docs.socialdata.tools/resources/twitter-search-operators/) |
| User Endpoints |
| GET [Get User Profile](https://docs.socialdata.tools/reference/get-user-profile/) | Retrieve detailed information about a Twitter user’s profile, including bio, follower count, and profile picture |
| POST [Get Multiple User Profiles By Ids](https://docs.socialdata.tools/reference/get-multiple-user-profiles/) | Retrieve detailed information about up to 100 user profiles per request based on user\_ids |
| GET [Get User Followers](https://docs.socialdata.tools/reference/get-user-followers/) | Retrieve the full list of users who follow the specified account |
| GET [Get User Verified Followers](https://docs.socialdata.tools/reference/get-user-verified-followers/) | Retrieve the full list of verified users who follow the specified account |
| GET [Get User Following](https://docs.socialdata.tools/reference/get-user-followings/) | Retrieve the full list of users that the specified account is following |
| GET [Get User Tweets](https://docs.socialdata.tools/reference/get-user-tweets-replies/) | Retrieve recent tweets or replies posted by the specified user |
| GET [Get User Mentions](https://docs.socialdata.tools/reference/get-user-mentions/) | Retrieve all mentions of any user |
| GET [Get User Affiliates](https://docs.socialdata.tools/reference/get-user-affiliates/) | Retrieve information about accounts associated with or connected to the specified organization profile |
| GET [Get User Highlights](https://docs.socialdata.tools/reference/get-user-highlights/) | Retrieve highlighted tweets from the specified user’s timeline |
| GET [Get User Lists](https://docs.socialdata.tools/reference/get-user-lists/) | Retrieve a list of Twitter lists created by or subscribed to by the specified user |
| GET [Get User Extended Bio](https://docs.socialdata.tools/reference/get-user-extended-bio/) | Retrieve a user’s extended bio, if available |
| GET [Get Similar Profiles](https://docs.socialdata.tools/reference/get-user-similar-profiles/) | Retrieve users that Twitter/X considers similar to a given user |
| Tweet Endpoints |
| GET [Get Tweet](https://docs.socialdata.tools/reference/get-tweet/) | Retrieve complete tweet details together with all embedded media, URLs, and complete tweet stats |
| POST [Get Multiple Tweets By IDs](https://docs.socialdata.tools/reference/get-multiple-tweets/) | Retrieve detailed information about up to 100 tweets per request based on tweet\_ids |
| GET [Get Tweet Comments](https://docs.socialdata.tools/reference/get-tweet-comments/) | Retrieve comments posted in response to any tweet |
| GET [Get Tweet Quotes](https://docs.socialdata.tools/reference/get-tweet-quotes/) | Retrieve quote-tweets posted in response to any tweet |
| GET [Get Tweet Retweeters](https://docs.socialdata.tools/reference/get-tweet-retweeters/) | Retrieve the full list of users who have retweeted a specific tweet |
| GET [Get Thread](https://docs.socialdata.tools/reference/get-tweet-thread/) | Retrieve all tweets in a conversation thread (i.e., a chain of tweets posted by the same user) |
| GET [Get Article Details](https://docs.socialdata.tools/reference/get-tweet-article/) | Retrieve information about an article shared on Twitter, including metadata and engagement statistics |
| List Endpoints |
| GET [Get List Details](https://docs.socialdata.tools/reference/get-list-details/) | Retrieve detailed information about a specific Twitter list, including description and member count |
| GET [Get List Members](https://docs.socialdata.tools/reference/get-list-members/) | Retrieve a list of users who are members of a specified Twitter list |
| GET [Get List Tweets](https://docs.socialdata.tools/reference/get-list-tweets/) | Retrieve tweets published by members of a Twitter list |
| Community Endpoints |
| GET [Get Community Details](https://docs.socialdata.tools/reference/get-community-details/) | Retrieve information about a Twitter community |
| GET [Get Community Tweets](https://docs.socialdata.tools/reference/get-community-tweets/) | Retrieve tweets published by members of a Twitter community |
| GET [Get Community Members](https://docs.socialdata.tools/reference/get-community-members/) | Retrieve a list of users who are members of a specified Twitter community |
| GET [Search Community Tweets](https://docs.socialdata.tools/reference/get-community-search-results/) | Retrieve search results from Twitter community search |
| Spaces Endpoints |
| GET [Get Space Details](https://docs.socialdata.tools/reference/get-space-details/) | Retrieve information about a specific Twitter Space |
| | |
| --- | --- |
| Social Actions |
| GET [Verify User Following](https://docs.socialdata.tools/social-actions/verify-user-following/) | Check if a specified user is following another user |
| GET [Verify User Retweeted](https://docs.socialdata.tools/social-actions/verify-user-retweeted/) | Check whether a user has retweeted a specific tweet |
| GET [Verify User Commented](https://docs.socialdata.tools/social-actions/verify-user-commented/) | Check if a user has replied to or commented on a particular tweet |
### Getting Started: Twitter/X API Pricing
Source: [Twitter/X API Pricing](https://docs.socialdata.tools/getting-started/pricing/)
> **Summary**
>
> Most of our endpoints follow the same pricing structure - **$0.0002 per tweet or user profile** returned (or $0.2 per 1000 items)
SocialData API follows a usage-based pricing system, where the exact amount charged against your balance is determined by the amount of data you retrieve.
To access the API, users need to maintain a positive balance in their account, otherwise their request will be rejected with `HTTP 402 Payment Required` status code.
Each _successful_ request made to our API consumes a certain amount from your balance. The exact charge per request varies depending on the specific API endpoint and the amount of data returned (e.g., if an endpoint returns 20 tweets in one response, each of these tweets will be charged).
On rare occasions our system will fail to retrieve any data from X. Failed requests do not consume any balance, ensuring fair and accurate billing.
#### Price by Endpoint
| | |
| --- | --- |
| Search Endpoints |
| GET [Get Search Results](https://docs.socialdata.tools/reference/get-search-results/) | $0.0002 per tweet retrieved |
| User Endpoints |
| GET [Get User Profile](https://docs.socialdata.tools/reference/get-user-profile/) | $0.0002 per request |
| POST [Get Multiple User Profiles By Ids](https://docs.socialdata.tools/reference/get-multiple-user-profiles/) | $0.0002 per profile |
| POST [Get Multiple User Profiles By Usernames](https://docs.socialdata.tools/reference/get-multiple-user-profiles-by-usernames/) | $0.0002 per profile |
| GET [Get User Followers](https://docs.socialdata.tools/reference/get-user-followers/) | $0.0002 per follower |
| GET [Get User Verified Followers](https://docs.socialdata.tools/reference/get-user-verified-followers/) | $0.0002 per follower |
| GET [Get User Following](https://docs.socialdata.tools/reference/get-user-followings/) | $0.0002 per followed user |
| GET [Get User Mentions](https://docs.socialdata.tools/reference/get-user-mentions/) | $0.0002 per mention |
| GET [Get User Affiliates](https://docs.socialdata.tools/reference/get-user-affiliates/) | $0.0002 per affiliated user |
| GET [Get User Highlights](https://docs.socialdata.tools/reference/get-user-highlights/) | $0.0002 per tweet |
| GET [Get User Lists](https://docs.socialdata.tools/reference/get-user-lists/) | $0.0002 per list |
| GET [Get User Tweets](https://docs.socialdata.tools/reference/get-user-tweets-replies/) | $0.0002 per tweet |
| GET [Get User Extended Bio](https://docs.socialdata.tools/reference/get-user-extended-bio/) | $0.001 per request |
| GET [Get Similar Profiles](https://docs.socialdata.tools/reference/get-user-similar-profiles/) | $0.0002 per similar user |
| Tweet Endpoints |
| GET [Get Tweet](https://docs.socialdata.tools/reference/get-tweet/) | $0.0002 per request |
| POST [Get Multiple Tweets by IDs](https://docs.socialdata.tools/reference/get-multiple-tweets/) | $0.0002 per tweet |
| GET [Get Tweet Comments](https://docs.socialdata.tools/reference/get-tweet-comments/) | $0.0002 per comment |
| GET [Get Tweet Quotes](https://docs.socialdata.tools/reference/get-tweet-quotes/) | $0.0002 per quote-tweet |
| GET [Get Tweet Retweeters](https://docs.socialdata.tools/reference/get-tweet-retweeters/) | $0.0002 per user profile |
| GET [Get Thread](https://docs.socialdata.tools/reference/get-tweet-thread/) | $0.0002 per tweet |
| GET [Get Article Details](https://docs.socialdata.tools/reference/get-tweet-article/) | $0.0002 per request |
| List Endpoints |
| GET [Get List Details](https://docs.socialdata.tools/reference/get-list-details/) | $0.0002 per request |
| GET [Get List Members](https://docs.socialdata.tools/reference/get-list-members/) | $0.0002 per list member |
| GET [Get List Tweets](https://docs.socialdata.tools/reference/get-list-tweets/) | $0.0002 per tweet |
| Community Endpoints |
| GET [Get Community Details](https://docs.socialdata.tools/reference/get-community-details/) | $0.0002 per request |
| GET [Get Community Tweets](https://docs.socialdata.tools/reference/get-community-tweets/) | $0.0002 per tweet |
| GET [Get Community Members](https://docs.socialdata.tools/reference/get-community-members/) | $0.0002 per member |
| GET [Search Community Tweets](https://docs.socialdata.tools/reference/get-community-search-results/) | $0.0002 per tweet |
| Spaces Endpoints |
| GET [Get Space Details](https://docs.socialdata.tools/reference/get-space-details/) | $0.0002 per request |
| Social Actions API |
| GET [Verify User Following](https://docs.socialdata.tools/social-actions/verify-user-following/) | $0.004 per request |
| GET [Verify User Retweeted](https://docs.socialdata.tools/social-actions/verify-user-retweeted/) | $0.008 per request |
| GET [Verify User Commented](https://docs.socialdata.tools/social-actions/verify-user-commented/) | $0.008 per request |
#### Fair-use Policy
By default, requests that do not return any data do not consume any balance. However, even though these requests are not billed, they still impose a burden on the platform and generate costs.
To provide a certain level of free usage, every account is entitled to make up to 3 requests per minute without incurring any charges. Any requests made beyond the initial 3 free requests per minute will be treated as a billable request and incur a fixed charge of **$0.0002 per request**.
### Getting Started: Authentication
Source: [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
> **Summary**
>
> Include your API key as `Authorization: Bearer YOUR_API_KEY` header with all requests
Each request to the SocialData API needs to contain your API key. All unauthenticated requests are rejected.
#### Obtaining Your API Key
To authenticate with the SocialData API, you will need to obtain an API key. This key must be included in the `Authorization: Bearer` header of every HTTP request you make. Follow these steps to get your API key:
- Sign Up: [Create an account](https://socialdata.tools/signup?utm_source=docs) on the SocialData platform.
- API Key: After signing up, generate your API key in your user dashboard. Keep this key confidential, as it is your private access to the API.
#### Using Your API Key
Once you have your API key, you can use it in the Authorization header with the keyword ‘Bearer’ followed by a space and then your token. Here’s an example of what the Authorization header should look like:
`Authorization: Bearer YOUR_API_KEY`
Here’s a sample cURL request to illustrate how to include the Authorization header in your API calls:
```bash
curl -X GET "https://api.socialdata.tools/twitter/tweets/1740192018918170738" \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_KEY"
```
API keys do not have an expiration date. However, you are free to generate a new API key at any moment in your user dashboard.
> **Important!**
>
> Do not expose your API key publicly. Treat it as you would your password, as it grants access to your SocialData API service and budget.
#### Next steps
- [Make your first request](https://docs.socialdata.tools/reference/get-user-profile/) with the Get user profile endpoint
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/) — how many requests you can make per minute
- [Errors](https://docs.socialdata.tools/getting-started/errors/) — what to do when a request fails
- [Pricing](https://docs.socialdata.tools/getting-started/pricing/) — what each request costs
### Getting Started: Rate Limits
Source: [Rate Limits](https://docs.socialdata.tools/getting-started/rate-limits/)
Each user has a limit of 120 requests per minute shared across all endpoints.
We offer higher rate limits at no extra charge if your app is generating a significant volume. Please reach out to [support@socialdata.tools](mailto:support@socialdata.tools) if you need to raise your rate limit.
#### Related
- [Errors](https://docs.socialdata.tools/getting-started/errors/) — how a throttled request is reported
- [Pricing](https://docs.socialdata.tools/getting-started/pricing/) — per-request costs and monthly caps
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/) — limits are applied per API key
### Getting Started: Errors
Source: [Errors](https://docs.socialdata.tools/getting-started/errors/)
SocialData uses conventional HTTP response codes to indicate the success or failure of an API request. In general:
- Codes in the `2xx` range indicate success.
- Codes in the `4xx` range indicate an error that failed given the information provided (e.g., a required parameter was omitted, Twitter user not found, or suspended, etc.).
- Codes in the `5xx` range indicate an error with SocialData servers (these are rare) — typically a retry will succeed.
HTTP STATUS CODE SUMMARY
| | | |
| --- | --- | --- |
| 200 | OK | Everything worked as expected. |
| 401 | Unauthorized | No valid API key provided. |
| 402 | Payment Required | Credits balance insufficient to process the request, add funds to your balance. |
| 403 | Forbidden | The API key doesn't have permissions to perform the request. |
| 404 | Not Found | The requested resource doesn't exist. |
| 422 | Unprocessable Content | Validation failed. The request was unacceptable, often due to missing a required parameter. |
| 429 | Too Many Requests | Too many requests hit the API too quickly. We recommend an exponential backoff of your requests. |
| 500 | Server Errors | Something went wrong on SocialData's end (These are rare.) Typically a retry will succeed. |
| 502 | Server Errors | Something went wrong on SocialData's end. (These are rare.) |
| 503 | Server Errors | Something went wrong on SocialData's end. (These are rare.) |
#### Related
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/) — most `401` and `403` responses are key problems
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/) — the cause of every `429`
- [Getting help](https://docs.socialdata.tools/getting-started/getting-help/) — reaching support about a persistent error
### Getting Started: Getting help
Source: [Getting help](https://docs.socialdata.tools/getting-started/getting-help/)
We’ve tried to provide the answers to the most common questions in these docs. However, if you need further technical support using the SocialData API, you may reach our support team at [](mailto:support@socialdata.tools)[support@socialdata.tools](mailto:support@socialdata.tools).
#### Before you write in
- [Errors](https://docs.socialdata.tools/getting-started/errors/) — the meaning of each response code
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/) — if you are seeing `429` responses
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/) — if your key is being rejected
## Data API
### Data API: Twitter Search API - Get Search Results
Source: [Twitter Search API - Get Search Results](https://docs.socialdata.tools/reference/get-search-results/)
Returns an array of tweets provided by the Twitter search page. Typically Twitter returns ~20 results per page. You can request additional search results by sending another request to the same endpoint using the `cursor` parameter.
GET https://api.socialdata.tools/twitter/search?query={query}
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Query Parameters
**query** `string` — required
A UTF-8, URL-encoded search query, including any operators supported by the Twitter website search
Example: from:elonmusk doge
**cursor** `string` — optional
Cursor value obtained from `next_cursor` response property. Used to retrieve additional pages for the same query
Example: DAACCgACGC12FhmAJxAKAAMYLXYWGX\_Y8AgABAAAAAILAAUAAADoRW1QQzZ3QUFBZlEvZ0d...
**type** `enum` — optional
Search type (`Latest` for recent tweets or `Top` for popular tweets). Defaults to `Latest`
Example: Top
#### Code Examples
###### curl
```shellscript
curl "https://api.socialdata.tools/twitter/search?query=from%3Aelonmusk&type=Latest" \
-H 'Authorization: Bearer API_KEY' \
-H 'Accept: application/json'
```
###### JavaScript
```js
const query = 'from:elonmusk -filter:replies since_id:1869986946031988780';
const API_KEY = 'YOUR_API_KEY_HERE';
fetch(`https://api.socialdata.tools/twitter/search?query=${encodeURIComponent(query)}&type=Latest`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Accept': 'application/json'
}
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
query = 'from:elonmusk -filter:replies since_id:1869986946031988780'
API_KEY = 'YOUR_API_KEY_HERE'
url = f'https://api.socialdata.tools/twitter/search?query={requests.utils.quote(query)}&type=Latest'
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)
```
###### PHP
```php
$query = 'from:elonmusk -filter:replies since_id:1869986946031988780';
$API_KEY = 'YOUR_API_KEY_HERE';
$url = "https://api.socialdata.tools/twitter/search?query=" . urlencode($query) . "&type=Latest";
$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
###### 200
```json
{
"next_cursor": "DAACCgACGC12FhmAJxAKAAMYLXYWGX_Y8AgABAAAAAILAAUAAADoRW1QQzZ3QUFBZlEvZ0dKTjB2R3AvQUFBQUJNWUxTNkQyQmFoUXhndFRReS9Ga0NOR0MwZG9yS1hzU2NZTFFwYm0xY1I0aGd0YmhZc1drQ3FHQzBjUXNSV1lSZ1lMVml5V3BxQU9CZ3RMbUhUV2tDb0dDMVFuVW1YMEFzWUxKYURhOVpob3hndFZtaklGakNNR0MxWGdlT1dZSE1ZTFRYNFNwZUEraGd0Y2h2bEYxRkxHQzFNMi83V1VGc1lMTTZwemhZQWt4Z3RWMkJKbDNGN0dDMWFGTXBYUUY4WUxUUERuRlp3UVE9PQgABgAAAAAIAAcAAAAADAAICgABGCyWg2vWYaMAAAA",
"tweets": [
{
"tweet_created_at": "2023-12-13T05:39:09.000000Z",
"id_str": "1734810168053956719",
"text": null,
"full_text": "@TeslaHype Pace of Progress",
"source": "Twitter for iPhone<\\/a>",
"truncated": false,
"in_reply_to_status_id_str": "1734777084268920960",
"in_reply_to_user_id_str": "1311506622821400581",
"in_reply_to_screen_name": "TeslaHype",
"user": {
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"location": "\\ud835\\udd4f\\u00d0",
"url": null,
"description": "",
"protected": false,
"verified": false,
"followers_count": 166213349,
"friends_count": 506,
"listed_count": 149586,
"favourites_count": 37958,
"statuses_count": 34934,
"created_at": "2009-06-02T20:12:29.000000Z",
"profile_banner_url": "https:\\/\\/pbs.twimg.com\\/profile_banners\\/44196397\\/1690621312",
"profile_image_url_https": "https:\\/\\/pbs.twimg.com\\/profile_images\\/1683325380441128960\\/yRsRRjGO_normal.jpg",
"can_dm": false
},
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 11,
"reply_count": 156,
"retweet_count": 78,
"favorite_count": 977,
"lang": "en",
"entities": {
"user_mentions": [
{
"id_str": "1311506622821400581",
"name": "Tesla Hype",
"screen_name": "TeslaHype",
"indices": [
0,
10
]
}
],
"urls": [],
"hashtags": [],
"symbols": []
},
"views_count": 32377,
"bookmark_count": 19
},
{
"tweet_created_at": "2023-12-13T05:38:26.000000Z",
"id_str": "1734809984674693446",
"text": null,
"full_text": "@anammostarac Yeah",
"source": "Twitter for iPhone<\\/a>",
"truncated": false,
"in_reply_to_status_id_str": "1734809562258276654",
"in_reply_to_user_id_str": "2852570664",
"in_reply_to_screen_name": "anammostarac",
"user": {
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"location": "\\ud835\\udd4f\\u00d0",
"url": null,
"description": "",
"protected": false,
"verified": false,
"followers_count": 166213349,
"friends_count": 506,
"listed_count": 149586,
"favourites_count": 37958,
"statuses_count": 34934,
"created_at": "2009-06-02T20:12:29.000000Z",
"profile_banner_url": "https:\\/\\/pbs.twimg.com\\/profile_banners\\/44196397\\/1690621312",
"profile_image_url_https": "https:\\/\\/pbs.twimg.com\\/profile_images\\/1683325380441128960\\/yRsRRjGO_normal.jpg",
"can_dm": false
},
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 4,
"reply_count": 64,
"retweet_count": 30,
"favorite_count": 513,
"lang": "en",
"entities": {
"user_mentions": [
{
"id_str": "2852570664",
"name": "Ana Mostarac",
"screen_name": "anammostarac",
"indices": [
0,
13
]
}
],
"urls": [],
"hashtags": [],
"symbols": []
},
"views_count": 25579,
"bookmark_count": 3
}
]
}
```
###### 402
```json
{
"status": "error",
"message": "Insufficient balance"
}
```
###### 500
```json
{
"status": "error",
"message": "Failed to fetch data from Twitter"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **402 Payment Required** - not enough credits to perform this request
- **422 Unprocessable Content** - validation failed (e.g. one of the required parameters was not provided)
- **500 Internal Error** - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later
#### Using Search Operators
> **Caution**
>
> All search operators _must_ be included as part of your `?query=` parameter and not as separate endpoint parameters.
>
> For example, the following query will return tweets by Elon Musk, containing “keyword”, and posted after a specific timestamp:
>
> `keyword from:elonmusk since_time:1738381166`
This endpoint supports all [search operators supported by Twitter](https://docs.socialdata.tools/resources/twitter-search-operators/). Search operators must be included as part of the query parameter and not as separate endpoint parameters.
Some frequently used search operators:
- `@USERNAME -from:USERNAME` — will return all mentions of @username
- `from:USERNAME` — will return all tweets and replies made by the user
- `from:USERNAME filter:replies` — will return only replies, but not tweets
- `from:USERNAME -filter:replies` — will return only tweets, but not replies
- `since_time:TIMESTAMP` and `until_time:TIMESTAMP` — will return tweets and comments posted after or before the provided UNIX timestamp
- `since_id:TWEET_ID` and `max_id:TWEET_ID` — will return tweets with ID higher or lower than the provided TWEET\_ID
- `conversation_id:TWEET_ID` — will return all comments posted in response to TWEET\_ID
For a more detailed overview of Twitter search operators refer to the [following page](https://docs.socialdata.tools/resources/twitter-search-operators/)
#### Known Limitations
Twitter removes tweets flagged as spam, or all tweets from all shadow-banned users. A request to retrieve tweets or comments made by a shadow-banned user (i.e. `from:USERNAME`) will always return 0 tweets, but the user’s timeline is still available through [User tweets and replies endpoint](https://docs.socialdata.tools/reference/get-user-tweets-replies/).
#### Retrieving Large Datasets
Occasionally when you need to scrape a large number of tweets, Twitter eventually refuses to provide additional cursor values after scraping too many pages with “Latest” search filter. As a workaround, it is possible to cycle through a larger dataset using `max_id:` and `since_id:` search operators.
When retrieving “Latest” search results, Twitter provides the response with tweets sorted by ID in descending order. If you need to retrieve more posts - simply make another request with the same query adding `max_id:[lowest ID from current dataset]`. Using this approach it is possible to extract the entire timeline from the moment an account was registered.
#### Related endpoints
- [Get community search results](https://docs.socialdata.tools/reference/get-community-search-results/)
- [Twitter search operators](https://docs.socialdata.tools/resources/twitter-search-operators/)
- [Create search monitor](https://docs.socialdata.tools/monitoring/create-search-query-monitor/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Pricing](https://docs.socialdata.tools/getting-started/pricing/)
### Data API: Get Twitter User Profile - API Reference
Source: [Get Twitter User Profile - API Reference](https://docs.socialdata.tools/reference/get-user-profile/)
Retrieve user information by their Twitter screen name.
GET https://api.socialdata.tools/twitter/user/{username}
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Path Parameters
**username** `string` — required
Username of the target user profile without @. Either a user\_id or username is required for this endpoint.
Example: elonmusk
#### Code Examples
###### curl
```shellscript
curl "https://api.socialdata.tools/twitter/user/elonmusk" \
-H 'Authorization: Bearer API_KEY' \
-H 'Accept: application/json'
# OR
curl "https://api.socialdata.tools/twitter/user/343990983" \
-H 'Authorization: Bearer API_KEY' \
-H 'Accept: application/json'
```
###### JavaScript
```js
const username = 'elonmusk';
const API_KEY = 'YOUR_API_KEY_HERE';
fetch(`https://api.socialdata.tools/twitter/user/${username}`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Accept': 'application/json'
}
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
username = 'elonmusk'
API_KEY = 'YOUR_API_KEY_HERE'
url = f'https://api.socialdata.tools/twitter/user/{username}'
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)
```
###### PHP
```php
$username = 'elonmusk';
$API_KEY = 'YOUR_API_KEY_HERE';
$url = "https://api.socialdata.tools/twitter/user/{$username}";
$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
###### 200
```json
{
"id": 44196397,
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"location": "\\ud835\\udd4f\\u00d0",
"url": null,
"description": "",
"protected": false,
"verified": true,
"followers_count": 166213974,
"friends_count": 506,
"listed_count": 149577,
"favourites_count": 37987,
"statuses_count": 34934,
"created_at": "2009-06-02T20:12:29.000000Z",
"profile_banner_url": "https:\\/\\/pbs.twimg.com\\/profile_banners\\/44196397\\/1690621312",
"profile_image_url_https": "https:\\/\\/pbs.twimg.com\\/profile_images\\/1683325380441128960\\/yRsRRjGO_normal.jpg",
"can_dm": false
}
```
###### 402
```json
{
"status": "error",
"message": "Insufficient balance"
}
```
###### 404
```json
{
"status": "error",
"message": "User not found"
}
```
###### 500
```json
{
"status": "error",
"message": "Failed to fetch data from Twitter"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **402 Payment Required** - not enough credits to perform this request
- **404 Not Found** - requested user does not exist
- **422 Unprocessable Content** - validation failed (e.g. one of the required parameters was not provided)
- **500 Internal Error** - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later
#### Related endpoints
- [Get multiple user profiles by IDs](https://docs.socialdata.tools/reference/get-multiple-user-profiles/)
- [Get user extended bio](https://docs.socialdata.tools/reference/get-user-extended-bio/)
- [Get similar profiles](https://docs.socialdata.tools/reference/get-user-similar-profiles/)
- [Get user affiliates](https://docs.socialdata.tools/reference/get-user-affiliates/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Pricing](https://docs.socialdata.tools/getting-started/pricing/)
### Data API: Get User Profiles by IDs - API Reference
Source: [Get User Profiles by IDs - API Reference](https://docs.socialdata.tools/reference/get-multiple-user-profiles/)
Retrieve user information for up to 100 users per request.
POST https://api.socialdata.tools/twitter/users-by-ids
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Body
**ids** `array` — required
An array of Twitter user IDs. Up to 100 IDs per request
Example: \["44196397", "1319287761048723458", ...\]
> **Caution**
>
> When using languages where the `user_id` value exceeds the default Integer type limit (e.g., JavaScript), you should store `user_id` as a String. Use the `id_str` property returned by the API for these values
#### Code Examples
###### curl
```shellscript
curl "https://api.socialdata.tools/twitter/users-by-ids" \
-X POST \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"ids": [44196397, 1319287761048723458]}'
```
###### JavaScript
```js
const ids = ["44196397", "1319287761048723458"];
const API_KEY = 'YOUR_API_KEY_HERE';
fetch('https://api.socialdata.tools/twitter/users-by-ids', {
method: 'POST',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Content-Type': 'application/json',
'Accept': 'application/json'
},
body: JSON.stringify({ ids })
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
ids = [44196397, 1319287761048723458]
API_KEY = 'YOUR_API_KEY_HERE'
url = 'https://api.socialdata.tools/twitter/users-by-ids'
headers = {
'Authorization': f'Bearer {API_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
payload = {'ids': ids}
response = requests.post(url, json=payload, headers=headers)
if response.status_code == 200:
data = response.json()
print(data)
else:
print(f"Error: {response.status_code}")
print(response.text)
```
###### PHP
```php
$ids = [44196397, 1319287761048723458];
$API_KEY = 'YOUR_API_KEY_HERE';
$url = "https://api.socialdata.tools/twitter/users-by-ids";
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => json_encode(['ids' => $ids]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer $API_KEY",
"Content-Type: application/json",
"Accept: application/json"
]
]);
$response = curl_exec($ch);
$data = json_decode($response, true);
print_r($data);
curl_close($ch);
```
#### Example Responses
###### 200
```json
{
"users": [
{
"id": 44196397,
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"location": "\\ud835\\udd4f\\u00d0",
"url": null,
"description": "",
"protected": false,
"verified": true,
"followers_count": 166213974,
"friends_count": 506,
"listed_count": 149577,
"favourites_count": 37987,
"statuses_count": 34934,
"created_at": "2009-06-02T20:12:29.000000Z",
"profile_banner_url": "https:\\/\\/pbs.twimg.com\\/profile_banners\\/44196397\\/1690621312",
"profile_image_url_https": "https:\\/\\/pbs.twimg.com\\/profile_images\\/1683325380441128960\\/yRsRRjGO_normal.jpg",
"can_dm": false
},
// ...
]
}
```
###### 402
```json
{
"status": "error",
"message": "Insufficient balance"
}
```
###### 404
```json
{
"status": "error",
"message": "User not found"
}
```
###### 500
```json
{
"status": "error",
"message": "Failed to fetch data from Twitter"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **402 Payment Required** - not enough credits to perform this request
- **422 Unprocessable Content** - validation failed (e.g. one of the required parameters was not provided)
- **500 Internal Error** - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later
#### Related endpoints
- [Get user profile](https://docs.socialdata.tools/reference/get-user-profile/)
- [Get user extended bio](https://docs.socialdata.tools/reference/get-user-extended-bio/)
- [Get similar profiles](https://docs.socialdata.tools/reference/get-user-similar-profiles/)
- [Get user affiliates](https://docs.socialdata.tools/reference/get-user-affiliates/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Pricing](https://docs.socialdata.tools/getting-started/pricing/)
### Data API: Get Twitter User Followers - API Reference
Source: [Get Twitter User Followers - API Reference](https://docs.socialdata.tools/reference/get-user-followers/)
This endpoint returns an array of user profiles that are following the target profile identified by `user_id`. The profiles are returned in reverse chronological order, with the most recent followers appearing on the first page.
GET https://api.socialdata.tools/twitter/user/{user\_id}/followers?cursor={cursor}
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Path Parameters
**user\_id** `integer` — required
The numeric ID of the desired user.
Example: 1625802236571033602
#### Query Parameters
**cursor** `string` — optional
Cursor value obtained from the next\_cursor response property. Omit this value to retrieve the first page.
Example: 4611686018541662731|1741085517660815316
> **Caution**
>
> When using languages where the `user_id` value exceeds the default Integer type limit (e.g., JavaScript), you should store `user_id` as a String. Use the `id_str` property returned by the API for these values
#### Code Examples
###### curl
```shellscript
curl "https://api.socialdata.tools/twitter/user/44196397/followers" \
-H 'Authorization: Bearer API_KEY' \
-H 'Accept: application/json'
```
###### JavaScript
```js
const userId = '44196397';
const API_KEY = 'YOUR_API_KEY_HERE';
fetch(`https://api.socialdata.tools/twitter/user/${userId}/followers`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Accept': 'application/json'
}
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
userId = '44196397'
API_KEY = 'YOUR_API_KEY_HERE'
url = f'https://api.socialdata.tools/twitter/user/{userId}/followers'
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)
```
###### PHP
```php
$userId = '44196397';
$API_KEY = 'YOUR_API_KEY_HERE';
$url = "https://api.socialdata.tools/twitter/user/{$userId}/followers";
$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
###### 200
```json
{
"next_cursor": "4611686018541662731|1741080922217775060",
"users": [
{
"id": 1547124452596523008,
"id_str": "1547124452596523008",
"name": "Gwendal Brossard",
"screen_name": "GwendalBrossard",
"location": "Building",
"url": "https:\/\/t.co\/6o4TTYu7LQ",
"description": "I'm an indie maker building products \ud83d\udc68\u200d\ud83d\udcbb @PaletteBrain\u2506https:\/\/t.co\/BEadk6UDlz \u2728",
"protected": false,
"verified": false,
"followers_count": 3557,
"friends_count": 149,
"listed_count": 41,
"favourites_count": 12425,
"statuses_count": 6778,
"created_at": "2022-07-13T07:43:56.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/1547124452596523008\/1672736091",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1572151372455313409\/qq1yH56d_normal.jpg",
"can_dm": true
},
// ...
]
}
```
###### 402
```json
{
"status": "error",
"message": "Insufficient balance"
}
```
###### 404
```json
{
"status": "error",
"message": "User not found"
}
```
###### 500
```json
{
"status": "error",
"message": "Failed to fetch data from Twitter"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **402 Payment Required** - not enough credits to perform this request
- **404 Not Found** - requested user not found
- **422 Unprocessable Content** - validation failed (e.g. one of the required parameters was not provided)
- **500 Internal Error** - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later
#### Related endpoints
- [Get user verified followers](https://docs.socialdata.tools/reference/get-user-verified-followers/)
- [Get user followings](https://docs.socialdata.tools/reference/get-user-followings/)
- [Verify user is following](https://docs.socialdata.tools/social-actions/verify-user-following/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Pricing](https://docs.socialdata.tools/getting-started/pricing/)
### Data API: Get User Verified Followers - API Reference
Source: [Get User Verified Followers - API Reference](https://docs.socialdata.tools/reference/get-user-verified-followers/)
This endpoint returns an array of verified user profiles that are following the target profile identified by `user_id`. The profiles are returned in reverse chronological order, with the most recent followers appearing on the first page.
GET https://api.socialdata.tools/twitter/user/{user\_id}/verified-followers?cursor={cursor}
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Path Parameters
**user\_id** `integer` — required
The numeric ID of the desired user.
Example: 1625802236571033602
#### Query Parameters
**cursor** `string` — optional
Cursor value obtained from the next\_cursor response property. Omit this value to retrieve the first page.
Example: 4611686018541662731|1741085517660815316
> **Caution**
>
> When using languages where the `id` value exceeds the default Integer type limit (e.g., JavaScript), you should store `id` as a String. Use the `id_str` property returned by the API for these values
#### Code Examples
###### curl
```shellscript
curl "https://api.socialdata.tools/twitter/user/44196397/verified-followers" \
-H 'Authorization: Bearer API_KEY' \
-H 'Accept: application/json'
```
###### JavaScript
```js
const userId = '44196397';
const API_KEY = 'YOUR_API_KEY_HERE';
fetch(`https://api.socialdata.tools/twitter/user/${userId}/verified-followers`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Accept': 'application/json'
}
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
userId = '44196397'
API_KEY = 'YOUR_API_KEY_HERE'
url = f'https://api.socialdata.tools/twitter/user/{userId}/verified-followers'
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)
```
###### PHP
```php
$userId = '44196397';
$API_KEY = 'YOUR_API_KEY_HERE';
$url = "https://api.socialdata.tools/twitter/user/{$userId}/verified-followers";
$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
###### 200
```json
{
"next_cursor": "4611686018541662731|1741080922217775060",
"users": [
{
"id": 1547124452596523008,
"id_str": "1547124452596523008",
"name": "Gwendal Brossard",
"screen_name": "GwendalBrossard",
"location": "Building",
"url": "https:\/\/t.co\/6o4TTYu7LQ",
"description": "I'm an indie maker building products \ud83d\udc68\u200d\ud83d\udcbb @PaletteBrain\u2506https:\/\/t.co\/BEadk6UDlz \u2728",
"protected": false,
"verified": true,
"followers_count": 3557,
"friends_count": 149,
"listed_count": 41,
"favourites_count": 12425,
"statuses_count": 6778,
"created_at": "2022-07-13T07:43:56.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/1547124452596523008\/1672736091",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1572151372455313409\/qq1yH56d_normal.jpg",
"can_dm": true
},
// ...
]
}
```
###### 402
```json
{
"status": "error",
"message": "Insufficient balance"
}
```
###### 404
```json
{
"status": "error",
"message": "User not found"
}
```
###### 500
```json
{
"status": "error",
"message": "Failed to fetch data from Twitter"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **402 Payment Required** - not enough credits to perform this request
- **404 Not Found** - requested user not found
- **422 Unprocessable Content** - validation failed (e.g. one of the required parameters was not provided)
- **500 Internal Error** - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later
#### Related endpoints
- [Get user followers](https://docs.socialdata.tools/reference/get-user-followers/)
- [Get user followings](https://docs.socialdata.tools/reference/get-user-followings/)
- [Verify user is following](https://docs.socialdata.tools/social-actions/verify-user-following/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Pricing](https://docs.socialdata.tools/getting-started/pricing/)
### Data API: Get Twitter User Following List - API Reference
Source: [Get Twitter User Following List - API Reference](https://docs.socialdata.tools/reference/get-user-followings/)
This endpoint returns an array of user profiles that the target profile (identified by `user_id`) is following. The profiles are returned in reverse chronological order, with the most recently followed profiles appearing on the first page.
GET https://api.socialdata.tools/twitter/user/{user\_id}/following?cursor={cursor}
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Path Parameters
**user\_id** `integer` — required
The numeric ID of the desired user.
Example: 1729591119699124560
#### Query Parameters
**cursor** `string` — optional
Cursor value obtained from the next\_cursor response property. Omit this value to retrieve the first page.
Example: 4611686018541662731|1741085517660815316
> **Caution**
>
> When using languages where the `user_id` value exceeds the default Integer type limit (e.g., JavaScript), you should store `user_id` as a String. Use the `id_str` property returned by the API for these values
#### Code Examples
###### curl
```shellscript
curl "https://api.socialdata.tools/twitter/user/44196397/following" \
-H 'Authorization: Bearer API_KEY' \
-H 'Accept: application/json'
```
###### JavaScript
```js
const userId = '44196397';
const API_KEY = 'YOUR_API_KEY_HERE';
fetch(`https://api.socialdata.tools/twitter/user/${userId}/following`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Accept': 'application/json'
}
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
userId = '44196397'
API_KEY = 'YOUR_API_KEY_HERE'
url = f'https://api.socialdata.tools/twitter/user/{userId}/following'
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)
```
###### PHP
```php
$userId = '44196397';
$API_KEY = 'YOUR_API_KEY_HERE';
$url = "https://api.socialdata.tools/twitter/user/{$userId}/following";
$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
###### 200
```json
{
"next_cursor": "4611686018541662731|1741080922217775060",
"users": [
{
"id": 1547124452596523008,
"id_str": "1547124452596523008",
"name": "Gwendal Brossard",
"screen_name": "GwendalBrossard",
"location": "Building",
"url": "https:\/\/t.co\/6o4TTYu7LQ",
"description": "I'm an indie maker building products \ud83d\udc68\u200d\ud83d\udcbb @PaletteBrain\u2506https:\/\/t.co\/BEadk6UDlz \u2728",
"protected": false,
"verified": false,
"followers_count": 3557,
"friends_count": 149,
"listed_count": 41,
"favourites_count": 12425,
"statuses_count": 6778,
"created_at": "2022-07-13T07:43:56.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/1547124452596523008\/1672736091",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1572151372455313409\/qq1yH56d_normal.jpg",
"can_dm": true
},
// ...
]
}
```
###### 402
```json
{
"status": "error",
"message": "Insufficient balance"
}
```
###### 404
```json
{
"status": "error",
"message": "User not found"
}
```
###### 500
```json
{
"status": "error",
"message": "Failed to fetch data from Twitter"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **402 Payment Required** - not enough credits to perform this request
- **404 Not Found** - requested user not found
- **422 Unprocessable Content** - validation failed (e.g. one of the required parameters was not provided)
- **500 Internal Error** - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later
#### Related endpoints
- [Get user followers](https://docs.socialdata.tools/reference/get-user-followers/)
- [Get user verified followers](https://docs.socialdata.tools/reference/get-user-verified-followers/)
- [Verify user is following](https://docs.socialdata.tools/social-actions/verify-user-following/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Pricing](https://docs.socialdata.tools/getting-started/pricing/)
### Data API: Get User's Tweets and Replies - API Reference
Source: [Get User's Tweets and Replies - API Reference](https://docs.socialdata.tools/reference/get-user-tweets-replies/)
Returns an array of tweets from the user’s tweets and replies timeline. Typically Twitter returns ~20 results per page. You can request additional results by sending another request to the same endpoint using the `cursor` parameter.
The endpoint only works with profiles that are ‘public’ and will fail to retrieve tweets for profiles with a ‘protected’ privacy setting.
> **Tip**
>
> This endpoint doesn’t support any filters and we can’t adjust the number of items returned in the response. To have more flexibility, you may also use the [Search endpoint](https://docs.socialdata.tools/reference/get-search-results/) with the `from:USERNAME` query to retrieve the user’s timeline. Our advanced search endpoint supports all of [Twitter’s search operators](https://docs.socialdata.tools/resources/twitter-search-operators/).
#### Endpoint
To request only the user’s tweets timeline:
GET https://api.socialdata.tools/twitter/user/{user\_id}/tweets?cursor={cursor}
To request only the user’s replies timeline (this will also include their own tweets):
GET https://api.socialdata.tools/twitter/user/{user\_id}/tweets-and-replies?cursor={cursor}
##### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
##### Path Parameters
**user\_id** `integer` — required
The numeric ID of the desired user.
Example: 443198458
##### Query Parameters
**cursor** `string` — optional
Cursor value obtained from the next\_cursor response property. Omit this value to retrieve the first page. Always remember to urlencode the value.
Example: DAACCgACGC12FhmAJxAKAAMYLXYWGX\_Y8AgABAAAAAILAAUAAADoRW1QQzZ3QUFBZlEvZ0d...
> **Caution**
>
> When using languages where the `user_id` value exceeds the default Integer type limit (e.g., JavaScript), you should store `user_id` as a String. Use the `id_str` property returned by the API for these values
#### Code Examples
###### curl
```shellscript
curl "https://api.socialdata.tools/twitter/user/44196397/tweets" \
-H 'Authorization: Bearer API_KEY' \
-H 'Accept: application/json'
```
###### JavaScript
```js
const userId = '44196397';
const API_KEY = 'YOUR_API_KEY_HERE';
fetch(`https://api.socialdata.tools/twitter/user/${userId}/tweets`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Accept': 'application/json'
}
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
userId = '44196397'
API_KEY = 'YOUR_API_KEY_HERE'
url = f'https://api.socialdata.tools/twitter/user/{userId}/tweets'
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)
```
###### PHP
```php
$userId = '44196397';
$API_KEY = 'YOUR_API_KEY_HERE';
$url = "https://api.socialdata.tools/twitter/user/{$userId}/tweets";
$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
###### 200
```json
{
"next_cursor": "DAACCgACGC12FhmAJxAKAAMYLXYWGX_Y8AgABAAAAAILAAUAAADoRW1QQzZ3QUFBZlEvZ0dKTjB2R3AvQUFBQUJNWUxTNkQyQmFoUXhndFRReS9Ga0NOR0MwZG9yS1hzU2NZTFFwYm0xY1I0aGd0YmhZc1drQ3FHQzBjUXNSV1lSZ1lMVml5V3BxQU9CZ3RMbUhUV2tDb0dDMVFuVW1YMEFzWUxKYURhOVpob3hndFZtaklGakNNR0MxWGdlT1dZSE1ZTFRYNFNwZUEraGd0Y2h2bEYxRkxHQzFNMi83V1VGc1lMTTZwemhZQWt4Z3RWMkJKbDNGN0dDMWFGTXBYUUY4WUxUUERuRlp3UVE9PQgABgAAAAAIAAcAAAAADAAICgABGCyWg2vWYaMAAAA",
"tweets": [
{
"tweet_created_at": "2023-12-13T05:39:09.000000Z",
"id_str": "1734810168053956719",
"text": null,
"full_text": "@TeslaHype Pace of Progress",
"source": "Twitter for iPhone<\\/a>",
"truncated": false,
"in_reply_to_status_id_str": "1734777084268920960",
"in_reply_to_user_id_str": "1311506622821400581",
"in_reply_to_screen_name": "TeslaHype",
"user": {
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"location": "\\ud835\\udd4f\\u00d0",
"url": null,
"description": "",
"protected": false,
"verified": false,
"followers_count": 166213349,
"friends_count": 506,
"listed_count": 149586,
"favourites_count": 37958,
"statuses_count": 34934,
"created_at": "2009-06-02T20:12:29.000000Z",
"profile_banner_url": "https:\\/\\/pbs.twimg.com\\/profile_banners\\/44196397\\/1690621312",
"profile_image_url_https": "https:\\/\\/pbs.twimg.com\\/profile_images\\/1683325380441128960\\/yRsRRjGO_normal.jpg",
"can_dm": false
},
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 11,
"reply_count": 156,
"retweet_count": 78,
"favorite_count": 977,
"lang": "en",
"entities": {
"user_mentions": [
{
"id_str": "1311506622821400581",
"name": "Tesla Hype",
"screen_name": "TeslaHype",
"indices": [
0,
10
]
}
],
"urls": [],
"hashtags": [],
"symbols": []
},
"views_count": 32377,
"bookmark_count": 19
},
{
"tweet_created_at": "2023-12-13T05:38:26.000000Z",
"id_str": "1734809984674693446",
"text": null,
"full_text": "@anammostarac Yeah",
"source": "Twitter for iPhone<\\/a>",
"truncated": false,
"in_reply_to_status_id_str": "1734809562258276654",
"in_reply_to_user_id_str": "2852570664",
"in_reply_to_screen_name": "anammostarac",
"user": {
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"location": "\\ud835\\udd4f\\u00d0",
"url": null,
"description": "",
"protected": false,
"verified": false,
"followers_count": 166213349,
"friends_count": 506,
"listed_count": 149586,
"favourites_count": 37958,
"statuses_count": 34934,
"created_at": "2009-06-02T20:12:29.000000Z",
"profile_banner_url": "https:\\/\\/pbs.twimg.com\\/profile_banners\\/44196397\\/1690621312",
"profile_image_url_https": "https:\\/\\/pbs.twimg.com\\/profile_images\\/1683325380441128960\\/yRsRRjGO_normal.jpg",
"can_dm": false
},
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 4,
"reply_count": 64,
"retweet_count": 30,
"favorite_count": 513,
"lang": "en",
"entities": {
"user_mentions": [
{
"id_str": "2852570664",
"name": "Ana Mostarac",
"screen_name": "anammostarac",
"indices": [
0,
13
]
}
],
"urls": [],
"hashtags": [],
"symbols": []
},
"views_count": 25579,
"bookmark_count": 3
}
]
}
```
###### 402
```json
{
"status": "error",
"message": "Insufficient balance"
}
```
###### 404
```json
{
"status": "error",
"message": "Not found"
}
```
###### 500
```json
{
"status": "error",
"message": "Failed to fetch data from Twitter"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **402 Payment Required** - not enough credits to perform this request
- **404 Not Found** - requested user not found
- **422 Unprocessable Content** - validation failed (e.g. one of the required parameters was not provided)
- **500 Internal Error** - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later
#### Related endpoints
- [Get user mentions](https://docs.socialdata.tools/reference/get-user-mentions/)
- [Get user highlights](https://docs.socialdata.tools/reference/get-user-highlights/)
- [Get user likes](https://docs.socialdata.tools/reference/get-user-likes/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Pricing](https://docs.socialdata.tools/getting-started/pricing/)
### Data API: Get Twitter User Mentions - API Reference
Source: [Get Twitter User Mentions - API Reference](https://docs.socialdata.tools/reference/get-user-mentions/)
Retrieve mentions of a user by their Twitter screen name.
GET https://api.socialdata.tools/twitter/user/{username}/mentions?cursor={cursor}
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Path Parameters
**username** `string` — required
Username of the target user profile without @. Either a user\_id or username is required for this endpoint.
Example: elonmusk
#### Query Parameters
**cursor** `string` — optional
Cursor value obtained from the `next_cursor` response property. Used to retrieve additional pages for the same query.
Example: 1890084840239985036
#### Code Examples
###### curl
```shellscript
curl "https://api.socialdata.tools/twitter/user/elonmusk/mentions" \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Accept: application/json'
```
###### JavaScript
```js
const username = 'elonmusk';
const API_KEY = 'YOUR_API_KEY_HERE';
fetch(`https://api.socialdata.tools/twitter/user/${username}/mentions`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Accept': 'application/json'
}
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
username = 'elonmusk'
API_KEY = 'YOUR_API_KEY_HERE'
url = f'https://api.socialdata.tools/twitter/user/{username}/mentions'
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)
```
###### PHP
```php
$username = 'elonmusk';
$API_KEY = 'YOUR_API_KEY_HERE';
$url = "https://api.socialdata.tools/twitter/user/{$username}/mentions";
$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
###### 200
```json
{
"next_cursor": "1890084840239985036",
"tweets": [
{
"tweet_created_at": "2023-12-13T05:39:09.000000Z",
"id_str": "1734810168053956719",
"text": null,
"full_text": "@TeslaHype Pace of Progress",
"source": "Twitter for iPhone<\\/a>",
"truncated": false,
"in_reply_to_status_id_str": "1734777084268920960",
"in_reply_to_user_id_str": "1311506622821400581",
"in_reply_to_screen_name": "TeslaHype",
"user": {
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"location": "\\ud835\\udd4f\\u00d0",
"url": null,
"description": "",
"protected": false,
"verified": false,
"followers_count": 166213349,
"friends_count": 506,
"listed_count": 149586,
"favourites_count": 37958,
"statuses_count": 34934,
"created_at": "2009-06-02T20:12:29.000000Z",
"profile_banner_url": "https:\\/\\/pbs.twimg.com\\/profile_banners\\/44196397\\/1690621312",
"profile_image_url_https": "https:\\/\\/pbs.twimg.com\\/profile_images\\/1683325380441128960\\/yRsRRjGO_normal.jpg",
"can_dm": false
},
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 11,
"reply_count": 156,
"retweet_count": 78,
"favorite_count": 977,
"lang": "en",
"entities": {
"user_mentions": [
{
"id_str": "1311506622821400581",
"name": "Tesla Hype",
"screen_name": "TeslaHype",
"indices": [
0,
10
]
}
],
"urls": [],
"hashtags": [],
"symbols": []
},
"views_count": 32377,
"bookmark_count": 19
},
// ...
]
}
```
###### 402
```json
{
"status": "error",
"message": "Insufficient balance"
}
```
###### 404
```json
{
"status": "error",
"message": "User not found"
}
```
###### 500
```json
{
"status": "error",
"message": "Failed to fetch data from Twitter"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **402 Payment Required** - not enough credits to perform this request
- **404 Not Found** - requested user does not exist
- **422 Unprocessable Content** - validation failed (e.g. one of the required parameters was not provided)
- **500 Internal Error** - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later
#### Related endpoints
- [Get user tweets & replies](https://docs.socialdata.tools/reference/get-user-tweets-replies/)
- [Get user highlights](https://docs.socialdata.tools/reference/get-user-highlights/)
- [Get user likes](https://docs.socialdata.tools/reference/get-user-likes/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Pricing](https://docs.socialdata.tools/getting-started/pricing/)
### Data API: Get Twitter User Highlights - API Reference
Source: [Get Twitter User Highlights - API Reference](https://docs.socialdata.tools/reference/get-user-highlights/)
Returns an array of tweets from the user’s Highlights tab. Typically Twitter returns ~20 results per page. You can request additional results by sending another request to the same endpoint using the `cursor` parameter.
GET https://api.socialdata.tools/twitter/user/{user\_id}/highlights?cursor={cursor}
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Path Parameters
**user\_id** `integer` — required
The numeric ID of the desired user.
Example: 1729591119699124560
#### Query Parameters
**cursor** `string` — optional
Cursor value obtained from the next\_cursor response property. Omit this value to retrieve the first page. Always remember to urlencode the value.
Example: DAACCgACGC12FhmAJxAKAAMYLXYWGX\_Y8AgABAAAAAILAAUAAADoRW1QQzZ3QUFBZlEvZ0d...
> **Caution**
>
> When using languages where the `user_id` value exceeds the default Integer type limit (e.g., JavaScript), you should store `user_id` as a String. Use the `id_str` property returned by the API for these values
#### Code Examples
###### curl
```shellscript
curl "https://api.socialdata.tools/twitter/user/44196397/highlights" \
-H 'Authorization: Bearer API_KEY' \
-H 'Accept: application/json'
```
###### JavaScript
```js
const userId = '44196397';
const API_KEY = 'YOUR_API_KEY_HERE';
fetch(`https://api.socialdata.tools/twitter/user/${userId}/highlights`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Accept': 'application/json'
}
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
userId = '44196397'
API_KEY = 'YOUR_API_KEY_HERE'
url = f'https://api.socialdata.tools/twitter/user/{userId}/highlights'
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)
```
###### PHP
```php
$userId = '44196397';
$API_KEY = 'YOUR_API_KEY_HERE';
$url = "https://api.socialdata.tools/twitter/user/{$userId}/highlights";
$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
###### 200
```json
{
"next_cursor": "DAACCgACGC12FhmAJxAKAAMYLXYWGX_Y8AgABAAAAAILAAUAAADoRW1QQzZ3QUFBZlEvZ0dKTjB2R3AvQUFBQUJNWUxTNkQyQmFoUXhndFRReS9Ga0NOR0MwZG9yS1hzU2NZTFFwYm0xY1I0aGd0YmhZc1drQ3FHQzBjUXNSV1lSZ1lMVml5V3BxQU9CZ3RMbUhUV2tDb0dDMVFuVW1YMEFzWUxKYURhOVpob3hndFZtaklGakNNR0MxWGdlT1dZSE1ZTFRYNFNwZUEraGd0Y2h2bEYxRkxHQzFNMi83V1VGc1lMTTZwemhZQWt4Z3RWMkJKbDNGN0dDMWFGTXBYUUY4WUxUUERuRlp3UVE9PQgABgAAAAAIAAcAAAAADAAICgABGCyWg2vWYaMAAAA",
"tweets": [
{
"tweet_created_at": "2024-05-15T22:33:29.000000Z",
"id": 1790873164374810919,
"id_str": "1790873164374810919",
"text": null,
"full_text": "https:\/\/t.co\/mS960WQX4Y",
"source": "Twitter Web App<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 783214,
"id_str": "783214",
"name": "X",
"screen_name": "X",
"location": "everywhere",
"url": "https:\/\/about.x.com\/",
"description": "what's happening?!",
"protected": false,
"verified": true,
"followers_count": 67739714,
"friends_count": 0,
"listed_count": 88755,
"favourites_count": 5892,
"statuses_count": 15327,
"created_at": "2007-02-20T14:35:54.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/783214\/1690175171",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1683899100922511378\/5lY42eHs_normal.jpg",
"can_dm": false
}
},
// ...
]
}
```
###### 402
```json
{
"status": "error",
"message": "Insufficient balance"
}
```
###### 404
```json
{
"status": "error",
"message": "User not found"
}
```
###### 500
```json
{
"status": "error",
"message": "Failed to fetch data from Twitter"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **402 Payment Required** - not enough credits to perform this request
- **404 Not Found** - requested user not found
- **422 Unprocessable Content** - validation failed (e.g. one of the required parameters was not provided)
- **500 Internal Error** - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later
#### Related endpoints
- [Get user tweets & replies](https://docs.socialdata.tools/reference/get-user-tweets-replies/)
- [Get user mentions](https://docs.socialdata.tools/reference/get-user-mentions/)
- [Get user likes](https://docs.socialdata.tools/reference/get-user-likes/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Pricing](https://docs.socialdata.tools/getting-started/pricing/)
### Data API: Get User Affiliates - API Reference
Source: [Get User Affiliates - API Reference](https://docs.socialdata.tools/reference/get-user-affiliates/)
Verified organization profiles (i.e. users with the gold checkmark) occasionally have affiliated accounts listed under the “Affiliates” tab on their profile page. The endpoint returns an array of user profiles affiliated with this organization.
GET https://api.socialdata.tools/twitter/user/{user\_id}/affiliates?cursor={cursor}
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Path Parameters
**user\_id** `integer` — required
The numeric ID of the desired user.
Example: 1729591119699124560
#### Query Parameters
**cursor** `string` — optional
Cursor value obtained from next\_cursor response property. Omit this value to retrieve the first page. Always remember to urlencode the value
Example: DAACCgACGC12FhmAJxAKAAMYLXYWGX\_Y8AgABAAAAAILAAUAAADoRW1QQzZ3QUFBZlEvZ0d...
> **Caution**
>
> When using languages where the `user_id` value exceeds the default Integer type limit (e.g., JavaScript), you should store `user_id` as a String. Use the `id_str` property returned by the API for these values
#### Code Examples
###### curl
```shellscript
curl "https://api.socialdata.tools/twitter/user/783214/affiliates" \
-H 'Authorization: Bearer API_KEY' \
-H 'Accept: application/json'
```
###### JavaScript
```js
const userId = '783214';
const API_KEY = 'YOUR_API_KEY_HERE';
fetch(`https://api.socialdata.tools/twitter/user/${userId}/affiliates`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Accept': 'application/json'
}
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
userId = '783214'
API_KEY = 'YOUR_API_KEY_HERE'
url = f'https://api.socialdata.tools/twitter/user/{userId}/affiliates'
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)
```
###### PHP
```php
$userId = '783214';
$API_KEY = 'YOUR_API_KEY_HERE';
$url = "https://api.socialdata.tools/twitter/user/{$userId}/affiliates";
$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
###### 200
```json
{
"users": [
{
"id": 1076061,
"id_str": "1076061",
"name": "Keith Coleman 🌱😀🙌",
"screen_name": "kcoleman",
"location": "San Francisco, CA",
"url": null,
"description": "VP Product @X. Previously CEO at Yes Inc, @google 🙌",
"protected": false,
"verified": true,
"followers_count": 30521,
"friends_count": 825,
"listed_count": 334,
"favourites_count": 14063,
"statuses_count": 2734,
"created_at": "2007-03-13T08:18:45.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/1076061\/1478574872",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1093367487566012416\/9Wc1J-Pk_normal.jpg",
"can_dm": true
},
// ...
],
"next_cursor": "DAAHCgABGPytdBi__-wLAAIAAAAIMTUxMzM0ODEIAAMAAAACAAA"
}
```
###### 402
```json
{
"status": "error",
"message": "Insufficient balance"
}
```
###### 404
```json
{
"status": "error",
"message": "User not found"
}
```
###### 500
```json
{
"status": "error",
"message": "Failed to fetch data from Twitter"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **402 Payment Required** - not enough credits to perform this request
- **404 Not Found** - requested user not found
- **422 Unprocessable Content** - validation failed (e.g. one of the required parameters was not provided)
- **500 Internal Error** - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later
#### Related endpoints
- [Get user profile](https://docs.socialdata.tools/reference/get-user-profile/)
- [Get multiple user profiles by IDs](https://docs.socialdata.tools/reference/get-multiple-user-profiles/)
- [Get user extended bio](https://docs.socialdata.tools/reference/get-user-extended-bio/)
- [Get similar profiles](https://docs.socialdata.tools/reference/get-user-similar-profiles/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Pricing](https://docs.socialdata.tools/getting-started/pricing/)
### Data API: Get User's Lists - API Reference
Source: [Get User's Lists - API Reference](https://docs.socialdata.tools/reference/get-user-lists/)
Returns an array of lists a user created or is subscribed to. Typically Twitter returns up to 100 lists per page. You can request additional results by sending another request to the same endpoint using the `cursor` parameter.
GET https://api.socialdata.tools/twitter/user/{user\_id}/lists?cursor={cursor}
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Path Parameters
**user\_id** `integer` — required
The numeric ID of the desired user.
Example: 1729591119699124560
#### Query Parameters
**cursor** `string` — optional
Cursor value obtained from the next\_cursor response property. Omit this value to retrieve the first page. Always remember to urlencode the value.
Example: DAACCgACGC12FhmAJxAKAAMYLXYWGX\_Y8AgABAAAAAILAAUAAADoRW1QQzZ3QUFBZlEvZ0d...
> **Caution**
>
> When using languages where the `user_id` value exceeds the default Integer type limit (e.g., JavaScript), you should store `user_id` as a String. Use the `id_str` property returned by the API for these values
#### Code Examples
###### curl
```shellscript
curl "https://api.socialdata.tools/twitter/user/44196397/lists" \
-H 'Authorization: Bearer API_KEY' \
-H 'Accept: application/json'
```
###### JavaScript
```js
const userId = '44196397';
const API_KEY = 'YOUR_API_KEY_HERE';
fetch(`https://api.socialdata.tools/twitter/user/${userId}/lists`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Accept': 'application/json'
}
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
userId = '44196397'
API_KEY = 'YOUR_API_KEY_HERE'
url = f'https://api.socialdata.tools/twitter/user/{userId}/lists'
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)
```
###### PHP
```php
$userId = '44196397';
$API_KEY = 'YOUR_API_KEY_HERE';
$url = "https://api.socialdata.tools/twitter/user/{$userId}/lists";
$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
###### 200
```json
{
"next_cursor": "1545854927532064769|1752635769203195807",
"lists": [
{
"created_at": 1668221936000,
"default_banner_media": {
"media_info": {
"original_img_url": "https:\/\/pbs.twimg.com\/media\/EXZ2mJCUEAEbJb3.png",
"original_img_width": 1125,
"original_img_height": 375,
"salient_rect": {
"left": 562,
"top": 187,
"width": 1,
"height": 1
}
}
},
"default_banner_media_results": {
"result": {
"id": "QXBpTWVkaWE6DAABCgABEXZ2mJCUEAEKAAIQF4A+eBQgAAAA",
"media_key": "3_1258323543529361409",
"media_id": "1258323543529361409",
"media_info": {
"__typename": "ApiImage",
"original_img_height": 375,
"original_img_width": 1125,
"original_img_url": "https:\/\/pbs.twimg.com\/media\/EXZ2mJCUEAEbJb3.png",
"salient_rect": {
"height": 1,
"left": 562,
"top": 187,
"width": 1
}
},
"__typename": "ApiMedia"
}
},
"description": "",
"facepile_urls": [
"https:\/\/pbs.twimg.com\/profile_images\/1201525049766883328\/QPimCC9z_mini.jpg",
"https:\/\/pbs.twimg.com\/profile_images\/1603461568708153346\/plKcInwe_mini.jpg",
"https:\/\/pbs.twimg.com\/profile_images\/1598855439076425728\/q5FlqPZU_mini.jpg"
],
"followers_context": "16 followers including @arvidkahl",
"following": false,
"id": "TGlzdDoxNTkxMjY0MjUxMzMwNDI4OTI5",
"id_str": "1591264251330428929",
"is_member": false,
"member_count": 85,
"members_context": "85 members",
"mode": "Public",
"muting": false,
"name": "\ud83c\udf1f Creators \ud83d\udd25",
"pinning": false,
"subscriber_count": 16,
"user_results": {
"result": {
"__typename": "User",
"id": "VXNlcjoyOTA0MjE5Njcz",
"rest_id": "2904219673",
"affiliates_highlighted_label": [],
"has_graduated_access": true,
"is_blue_verified": true,
"profile_image_shape": "Circle",
"legacy": {
"can_dm": false,
"can_media_tag": true,
"created_at": "Wed Nov 19 05:35:32 +0000 2014",
"default_profile": false,
"default_profile_image": false,
"description": "Helping digital creators save 20+ hours a month. Leverage AI\/Automation for content repurposing and distribution. Saved clients over 10,000+ hours",
"entities": {
"description": {
"urls": []
},
"url": {
"urls": [
{
"display_url": "hiddenlevers.ai\/subscribe?utm_\u2026",
"expanded_url": "https:\/\/www.hiddenlevers.ai\/subscribe?utm_source=twitter&utm_medium=bio",
"url": "https:\/\/t.co\/ykaoNAJGQD",
"indices": [
0,
23
]
}
]
}
},
"fast_followers_count": 0,
"favourites_count": 46302,
"followers_count": 7948,
"friends_count": 1722,
"has_custom_timelines": true,
"is_translator": false,
"listed_count": 234,
"location": "Amplify Your Impact \ud83d\udc47\ud83c\udffc",
"media_count": 2938,
"name": "Mike Cardona | Automation Alchemist \ud83e\uddea\ud83d\udd27",
"normal_followers_count": 7948,
"pinned_tweet_ids_str": [
"1699665975136878643"
],
"possibly_sensitive": false,
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/2904219673\/1704725393",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1566400585137414145\/vkBaB3ca_normal.jpg",
"profile_interstitial_type": "",
"screen_name": "CSMikeCardona",
"statuses_count": 27559,
"translator_type": "none",
"url": "https:\/\/t.co\/ykaoNAJGQD",
"verified": false,
"want_retweets": false,
"withheld_in_countries": []
},
"professional": {
"rest_id": "1459282952534196228",
"professional_type": "Creator",
"category": []
}
}
}
},
...
]
}
```
###### 402
```json
{
"status": "error",
"message": "Insufficient balance"
}
```
###### 404
```json
{
"status": "error",
"message": "User not found"
}
```
###### 500
```json
{
"status": "error",
"message": "Failed to fetch data from Twitter"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **402 Payment Required** - not enough credits to perform this request
- **404 Not Found** - requested user not found
- **422 Unprocessable Content** - validation failed (e.g. one of the required parameters was not provided)
- **500 Internal Error** - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later
#### Related endpoints
- [Get list details](https://docs.socialdata.tools/reference/get-list-details/)
- [Get list members](https://docs.socialdata.tools/reference/get-list-members/)
- [Get list tweets](https://docs.socialdata.tools/reference/get-list-tweets/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Pricing](https://docs.socialdata.tools/getting-started/pricing/)
### Data API: Get User's Twitter Likes - API Reference
Source: [Get User's Twitter Likes - API Reference](https://docs.socialdata.tools/reference/get-user-likes/)
> **Deprecated**
>
> Due to Twitter’s decision to make likes private for all users, this endpoint is unable to provide any data.
Returns an array of tweets from the user’s likes timeline. Typically Twitter returns ~20 results per page. You can request additional results by sending another request to the same endpoint using the `cursor` parameter.
GET https://api.socialdata.tools/twitter/user/{user\_id}/likes?cursor={cursor}
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Path Parameters
**user\_id** `integer` — required
The numeric ID of the desired user.
Example: 1729591119699124560
#### Query Parameters
**cursor** `string` — optional
Cursor value obtained from the next\_cursor response property. Omit this value to retrieve the first page. Always remember to urlencode the value.
Example: DAACCgACGC12FhmAJxAKAAMYLXYWGX\_Y8AgABAAAAAILAAUAAADoRW1QQzZ3QUFBZlEvZ0d...
> **Caution**
>
> When using languages where the `user_id` value exceeds the default Integer type limit (e.g., JavaScript), you should store `user_id` as a String. Use the `id_str` property returned by the API for these values
#### Code Examples
###### curl
```shellscript
curl "https://api.socialdata.tools/twitter/user/44196397/likes" \
-H 'Authorization: Bearer API_KEY' \
-H 'Accept: application/json'
```
###### JavaScript
```js
const userId = '44196397';
const API_KEY = 'YOUR_API_KEY_HERE';
fetch(`https://api.socialdata.tools/twitter/user/${userId}/likes`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Accept': 'application/json'
}
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
userId = '44196397'
API_KEY = 'YOUR_API_KEY_HERE'
url = f'https://api.socialdata.tools/twitter/user/{userId}/likes'
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)
```
###### PHP
```php
$userId = '44196397';
$API_KEY = 'YOUR_API_KEY_HERE';
$url = "https://api.socialdata.tools/twitter/user/{$userId}/likes";
$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
###### 200
```json
{
"next_cursor": "DAACCgACGC12FhmAJxAKAAMYLXYWGX_Y8AgABAAAAAILAAUAAADoRW1QQzZ3QUFBZlEvZ0dKTjB2R3AvQUFBQUJNWUxTNkQyQmFoUXhndFRReS9Ga0NOR0MwZG9yS1hzU2NZTFFwYm0xY1I0aGd0YmhZc1drQ3FHQzBjUXNSV1lSZ1lMVml5V3BxQU9CZ3RMbUhUV2tDb0dDMVFuVW1YMEFzWUxKYURhOVpob3hndFZtaklGakNNR0MxWGdlT1dZSE1ZTFRYNFNwZUEraGd0Y2h2bEYxRkxHQzFNMi83V1VGc1lMTTZwemhZQWt4Z3RWMkJKbDNGN0dDMWFGTXBYUUY4WUxUUERuRlp3UVE9PQgABgAAAAAIAAcAAAAADAAICgABGCyWg2vWYaMAAAA",
"tweets": [
{
"tweet_created_at": "2023-12-13T05:39:09.000000Z",
"id_str": "1734810168053956719",
"text": null,
"full_text": "@TeslaHype Pace of Progress",
"source": "Twitter for iPhone<\\/a>",
"truncated": false,
"in_reply_to_status_id_str": "1734777084268920960",
"in_reply_to_user_id_str": "1311506622821400581",
"in_reply_to_screen_name": "TeslaHype",
"user": {
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"location": "\\ud835\\udd4f\\u00d0",
"url": null,
"description": "",
"protected": false,
"verified": false,
"followers_count": 166213349,
"friends_count": 506,
"listed_count": 149586,
"favourites_count": 37958,
"statuses_count": 34934,
"created_at": "2009-06-02T20:12:29.000000Z",
"profile_banner_url": "https:\\/\\/pbs.twimg.com\\/profile_banners\\/44196397\\/1690621312",
"profile_image_url_https": "https:\\/\\/pbs.twimg.com\\/profile_images\\/1683325380441128960\\/yRsRRjGO_normal.jpg",
"can_dm": false
},
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 11,
"reply_count": 156,
"retweet_count": 78,
"favorite_count": 977,
"lang": "en",
"entities": {
"user_mentions": [
{
"id_str": "1311506622821400581",
"name": "Tesla Hype",
"screen_name": "TeslaHype",
"indices": [
0,
10
]
}
],
"urls": [],
"hashtags": [],
"symbols": []
},
"views_count": 32377,
"bookmark_count": 19
},
{
"tweet_created_at": "2023-12-13T05:38:26.000000Z",
"id_str": "1734809984674693446",
"text": null,
"full_text": "@anammostarac Yeah",
"source": "Twitter for iPhone<\\/a>",
"truncated": false,
"in_reply_to_status_id_str": "1734809562258276654",
"in_reply_to_user_id_str": "2852570664",
"in_reply_to_screen_name": "anammostarac",
"user": {
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"location": "\\ud835\\udd4f\\u00d0",
"url": null,
"description": "",
"protected": false,
"verified": false,
"followers_count": 166213349,
"friends_count": 506,
"listed_count": 149586,
"favourites_count": 37958,
"statuses_count": 34934,
"created_at": "2009-06-02T20:12:29.000000Z",
"profile_banner_url": "https:\\/\\/pbs.twimg.com\\/profile_banners\\/44196397\\/1690621312",
"profile_image_url_https": "https:\\/\\/pbs.twimg.com\\/profile_images\\/1683325380441128960\\/yRsRRjGO_normal.jpg",
"can_dm": false
},
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 4,
"reply_count": 64,
"retweet_count": 30,
"favorite_count": 513,
"lang": "en",
"entities": {
"user_mentions": [
{
"id_str": "2852570664",
"name": "Ana Mostarac",
"screen_name": "anammostarac",
"indices": [
0,
13
]
}
],
"urls": [],
"hashtags": [],
"symbols": []
},
"views_count": 25579,
"bookmark_count": 3
}
]
}
```
###### 402
```json
{
"status": "error",
"message": "Insufficient balance"
}
```
###### 404
```json
{
"status": "error",
"message": "User not found"
}
```
###### 500
```json
{
"status": "error",
"message": "Failed to fetch data from Twitter"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **402 Payment Required** - not enough credits to perform this request
- **404 Not Found** - requested user not found
- **422 Unprocessable Content** - validation failed (e.g. one of the required parameters was not provided)
- **500 Internal Error** - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later
#### Related endpoints
- [Get user tweets & replies](https://docs.socialdata.tools/reference/get-user-tweets-replies/)
- [Get user mentions](https://docs.socialdata.tools/reference/get-user-mentions/)
- [Get user highlights](https://docs.socialdata.tools/reference/get-user-highlights/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Pricing](https://docs.socialdata.tools/getting-started/pricing/)
### Data API: Get User's Extended Twitter Bio - API Reference
Source: [Get User's Extended Twitter Bio - API Reference](https://docs.socialdata.tools/reference/get-user-extended-bio/)
Returns an object with the user’s extended bio containing all text and formatting details, or an empty object if the extended bio is missing.
GET https://api.socialdata.tools/twitter/user/{username}/extended-bio
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Path Parameters
**username** `string` — required
Username of the target user profile without @.
Example: elonmusk
#### Example Responses
###### 200
```json
{
"blocks": [
{
"text": "I took my 𝕏 (Twitter) account from 0 to 5.5 million impressions in less than 3 months and over 11 million impressions in 5 months using a combination of memes and satirical posts.",
"type": "unstyled",
"inlineStyleRanges": [],
"entityRanges": [],
"depth": 0,
"key": "8v159"
},
{
"text": "",
"type": "unstyled",
"inlineStyleRanges": [],
"entityRanges": [],
"depth": 0,
"key": "8mclg"
},
{
"text": "I've written LinkedIn posts that even the most die-hard LinkedIn fans allowed themselves to chuckle. ",
"type": "unstyled",
"inlineStyleRanges": [],
"entityRanges": [],
"depth": 0,
"key": "3v6g0"
},
{
"text": "",
"type": "unstyled",
"inlineStyleRanges": [],
"entityRanges": [],
"depth": 0,
"key": "don1i"
},
{
"text": "I'm not your typical \"big 4 consultant.\" ",
"type": "unstyled",
"inlineStyleRanges": [],
"entityRanges": [],
"depth": 0,
"key": "4geb7"
},
{
"text": "",
"type": "unstyled",
"inlineStyleRanges": [],
"entityRanges": [],
"depth": 0,
"key": "ffhgq"
},
{
"text": "I provide real, actionable content that resonates with tech audiences. Let's connect and make your company go viral. ",
"type": "unstyled",
"inlineStyleRanges": [],
"entityRanges": [],
"depth": 0,
"key": "4i903"
},
{
"text": "",
"type": "unstyled",
"inlineStyleRanges": [],
"entityRanges": [],
"depth": 0,
"key": "cb6ec"
},
{
"text": "To talk memes, feel free to schedule a call with me here https:\/\/tidycal.com\/heshie.",
"type": "unstyled",
"inlineStyleRanges": [],
"entityRanges": [],
"depth": 0,
"key": "376f5"
},
{
"text": "",
"type": "unstyled",
"inlineStyleRanges": [],
"entityRanges": [],
"depth": 0,
"key": "1hujo"
},
{
"text": "My day job:",
"type": "unstyled",
"inlineStyleRanges": [],
"entityRanges": [],
"depth": 0,
"key": "1mks2"
},
{
"text": "",
"type": "unstyled",
"inlineStyleRanges": [],
"entityRanges": [],
"depth": 0,
"key": "2e8vu"
},
{
"text": "I'm currently a Technical Lead at Morgan and Morgan PA (America's largest personal injury law firm), where I guide the development of client web experiences (client and web portal). I manage a team of six software developers, and my duties include hiring, managing the product roadmap, and overseeing infrastructure.",
"type": "unstyled",
"inlineStyleRanges": [],
"entityRanges": [],
"depth": 0,
"key": "fbh01"
},
{
"text": "",
"type": "unstyled",
"inlineStyleRanges": [],
"entityRanges": [],
"depth": 0,
"key": "ed52k"
},
{
"text": "A giant law firm may sound boring, but think about it this way: How do you make sense of millions of calls, documents, and terabytes of client data? It takes thousands of people to run such an operation, and there are huge opportunities for automation, optimization, and adding AI to create a great web experience for a law firm of our size. ",
"type": "unstyled",
"inlineStyleRanges": [],
"entityRanges": [],
"depth": 0,
"key": "646l1"
},
{
"text": "",
"type": "unstyled",
"inlineStyleRanges": [],
"entityRanges": [],
"depth": 0,
"key": "3cicm"
},
{
"text": "My background includes a role as a founding engineer at Capable Health, where I helped create a scalable API and infrastructure for their modern healthcare backend, including e-commerce and payment integrations. ",
"type": "unstyled",
"inlineStyleRanges": [],
"entityRanges": [],
"depth": 0,
"key": "b7vtj"
},
{
"text": "",
"type": "unstyled",
"inlineStyleRanges": [],
"entityRanges": [],
"depth": 0,
"key": "e2k4u"
},
{
"text": "Prior to that, I worked at Sitepod—a CRM and back office solution built for the construction industry—where I contributed to their inventory, job site planning, and analytics tool. ",
"type": "unstyled",
"inlineStyleRanges": [],
"entityRanges": [],
"depth": 0,
"key": "3vrge"
},
{
"text": "",
"type": "unstyled",
"inlineStyleRanges": [],
"entityRanges": [],
"depth": 0,
"key": "7ks09"
},
{
"text": "I also worked at Adar Medical Uniforms, where I developed logistics software that incorporated ERP (SAP B1) and consumer-facing tools, including a packaging robot integration that increased our warehouse employee capacity sevenfold. ",
"type": "unstyled",
"inlineStyleRanges": [],
"entityRanges": [],
"depth": 0,
"key": "6nnd4"
},
{
"text": "",
"type": "unstyled",
"inlineStyleRanges": [],
"entityRanges": [],
"depth": 0,
"key": "7g7u3"
},
{
"text": "I'm an alumnus of the Flatiron School's software engineering program. I grew up in Brooklyn, New York.",
"type": "unstyled",
"inlineStyleRanges": [],
"entityRanges": [],
"depth": 0,
"key": "4mqjm"
},
{
"text": "",
"type": "unstyled",
"inlineStyleRanges": [],
"entityRanges": [],
"depth": 0,
"key": "8916v"
},
{
"text": "I discovered my passion for technology and tinkering at the age of nine by taking apart computers. I became interested in coding at age 14 when I began exploring the developer tab in Excel. I then taught myself programming using a \"Visual Basic for Dummies\" book.",
"type": "unstyled",
"inlineStyleRanges": [],
"entityRanges": [],
"depth": 0,
"key": "6f2e3"
},
{
"text": "",
"type": "unstyled",
"inlineStyleRanges": [],
"entityRanges": [],
"depth": 0,
"key": "f7f9k"
},
{
"text": "",
"type": "unstyled",
"inlineStyleRanges": [],
"entityRanges": [],
"depth": 0,
"key": "ap1vf"
},
{
"text": "",
"type": "unstyled",
"inlineStyleRanges": [],
"entityRanges": [],
"depth": 0,
"key": "93dfb"
},
{
"text": "",
"type": "unstyled",
"inlineStyleRanges": [],
"entityRanges": [],
"depth": 0,
"key": "d8ve2"
},
{
"text": "",
"type": "unstyled",
"inlineStyleRanges": [],
"entityRanges": [],
"depth": 0,
"key": "fkups"
},
{
"text": "",
"type": "unstyled",
"inlineStyleRanges": [],
"entityRanges": [],
"depth": 0,
"key": "fjhsb"
}
],
"entityMap": []
}
```
###### 402
```json
{
"status": "error",
"message": "Insufficient balance"
}
```
###### 404
```json
{
"status": "error",
"message": "User not found"
}
```
###### 500
```json
{
"status": "error",
"message": "Failed to fetch data from Twitter"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **402 Payment Required** - not enough credits to perform this request
- **404 Not Found** - requested user not found
- **422 Unprocessable Content** - validation failed (e.g. one of the required parameters was not provided)
- **500 Internal Error** - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later
#### Related endpoints
- [Get user profile](https://docs.socialdata.tools/reference/get-user-profile/)
- [Get multiple user profiles by IDs](https://docs.socialdata.tools/reference/get-multiple-user-profiles/)
- [Get similar profiles](https://docs.socialdata.tools/reference/get-user-similar-profiles/)
- [Get user affiliates](https://docs.socialdata.tools/reference/get-user-affiliates/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Pricing](https://docs.socialdata.tools/getting-started/pricing/)
### Data API: Get User Similar Profiles - API Reference
Source: [Get User Similar Profiles - API Reference](https://docs.socialdata.tools/reference/get-user-similar-profiles/)
This endpoint returns an array of user profiles that Twitter/X considers similar to a given user.
GET https://api.socialdata.tools/twitter/user/{user\_id}/similar
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Query Parameters
**user\_id** `integer` — required
The numeric ID of the desired user.
Example: 1729591119699124560
> **Caution**
>
> When using languages where the `user_id` value exceeds the default Integer type limit (e.g., JavaScript), you should store `user_id` as a String. Use the `id_str` property returned by the API for these values
#### Code Examples
###### curl
```shellscript
curl "https://api.socialdata.tools/twitter/user/44196397/similar" \
-H 'Authorization: Bearer API_KEY' \
-H 'Accept: application/json'
```
###### JavaScript
```js
const userId = '44196397';
const API_KEY = 'YOUR_API_KEY_HERE';
fetch(`https://api.socialdata.tools/twitter/user/${userId}/similar`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Accept': 'application/json'
}
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
userId = '44196397'
API_KEY = 'YOUR_API_KEY_HERE'
url = f'https://api.socialdata.tools/twitter/user/{userId}/similar'
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)
```
###### PHP
```php
$userId = '44196397';
$API_KEY = 'YOUR_API_KEY_HERE';
$url = "https://api.socialdata.tools/twitter/user/{$userId}/similar";
$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
###### 200
```json
{
"users": [
{
"id": 1547124452596523008,
"id_str": "1547124452596523008",
"name": "Gwendal Brossard",
"screen_name": "GwendalBrossard",
"location": "Building",
"url": "https:\/\/t.co\/6o4TTYu7LQ",
"description": "I'm an indie maker building products \ud83d\udc68\u200d\ud83d\udcbb @PaletteBrain\u2506https:\/\/t.co\/BEadk6UDlz \u2728",
"protected": false,
"verified": false,
"followers_count": 3557,
"friends_count": 149,
"listed_count": 41,
"favourites_count": 12425,
"statuses_count": 6778,
"created_at": "2022-07-13T07:43:56.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/1547124452596523008\/1672736091",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1572151372455313409\/qq1yH56d_normal.jpg",
"can_dm": true
},
// ...
],
"next_cursor": null
}
```
###### 402
```json
{
"status": "error",
"message": "Insufficient balance"
}
```
###### 500
```json
{
"status": "error",
"message": "Failed to fetch data from Twitter"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **402 Payment Required** - not enough credits to perform this request
- **500 Internal Error** - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later
#### Related endpoints
- [Get user profile](https://docs.socialdata.tools/reference/get-user-profile/)
- [Get multiple user profiles by IDs](https://docs.socialdata.tools/reference/get-multiple-user-profiles/)
- [Get user extended bio](https://docs.socialdata.tools/reference/get-user-extended-bio/)
- [Get user affiliates](https://docs.socialdata.tools/reference/get-user-affiliates/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Pricing](https://docs.socialdata.tools/getting-started/pricing/)
### Data API: Get Tweet by ID (Tweet Lookup) - API Reference
Source: [Get Tweet by ID (Tweet Lookup) - API Reference](https://docs.socialdata.tools/reference/get-tweet/)
GET https://api.socialdata.tools/twitter/tweets/{id}
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Path Parameters
**id** `integer` — required
The numerical `id` of the target tweet
Example: 1729591119699124560
> **Caution**
>
> When using languages where the `id` value exceeds the default Integer type limit (e.g., JavaScript), you should store `id` as a String. Use the `id_str` property returned by the API for these values
#### Code Examples
###### curl
```shellscript
curl "https://api.socialdata.tools/twitter/tweets/1729591119699124560" \
-H "Authorization: Bearer API_KEY" \
-H "Accept: application/json"
```
###### JavaScript
```js
const tweetId = '1729591119699124560';
const API_KEY = 'YOUR_API_KEY_HERE';
fetch(`https://api.socialdata.tools/twitter/tweets/${tweetId}`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Accept': 'application/json'
}
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
tweet_id = '1729591119699124560'
API_KEY = 'YOUR_API_KEY_HERE'
url = f'https://api.socialdata.tools/twitter/tweets/{tweet_id}'
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)
```
###### PHP
```php
$tweetId = '1729591119699124560';
$API_KEY = 'YOUR_API_KEY_HERE';
$url = "https://api.socialdata.tools/twitter/tweets/{$tweetId}";
$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
###### 200
```json
{
"tweet_created_at": "2022-07-19T06:35:54+00:00",
"id": 1549281861687451648,
"id_str": "1549281861687451648",
"text": null,
"full_text": "100 tips I learned growing an iOS app to ~$5M in sales in 3 yrs, going through YC 1.5 times, and co-founding @Superwall 👇",
"source": "chirr.app<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 15118774,
"id_str": "15118774",
"name": "Jake Mor",
"screen_name": "jakemor",
"location": "New York, USA",
"url": "http:\/\/superwall.com",
"description": "CEO @Superwall — build & test paywalls without shipping updates. Past: Founder @FitnessAI_ (acquired). YC W20 & S21",
"protected": false,
"verified": true,
"followers_count": 5423,
"friends_count": 556,
"listed_count": 95,
"favourites_count": 1161,
"statuses_count": 1683,
"created_at": "2008-06-14T18:37:41+00:00",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/15118774\/1636564314",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1167559170540875777\/nRn7p8em_normal.jpg",
"can_dm": true
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 73,
"reply_count": 105,
"retweet_count": 492,
"favorite_count": 9419,
"views_count": null,
"bookmark_count": 4614,
"lang": "en",
"entities": {
"user_mentions": [
{
"id_str": "1427520876325613571",
"name": "Superwall",
"screen_name": "Superwall",
"indices": [
109,
119
]
}
],
"urls": [],
"hashtags": [],
"symbols": []
},
"is_pinned": false
}
```
###### 402
```json
{
"status": "error",
"message": "Insufficient balance"
}
```
###### 403
```json
{
"status": "error",
"message": "Tweet not available"
}
```
###### 404
```json
{
"status": "error",
"message": "Tweet not found"
}
```
###### 500
```json
{
"status": "error",
"message": "Failed to fetch data from Twitter"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **402 Payment Required** - not enough credits to perform this request
- **403 Forbidden** - tweet not available due to author's privacy settings
- **404 Not Found** - requested tweet does not exist
- **422 Unprocessable Content** - validation failed (e.g. one of the required parameters was not provided)
- **500 Internal Error** - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later
#### Related endpoints
- [Get multiple tweets by IDs](https://docs.socialdata.tools/reference/get-multiple-tweets/)
- [Get thread](https://docs.socialdata.tools/reference/get-tweet-thread/)
- [Get article](https://docs.socialdata.tools/reference/get-tweet-article/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Pricing](https://docs.socialdata.tools/getting-started/pricing/)
### Data API: Get Multiple Tweets by IDs - API Reference
Source: [Get Multiple Tweets by IDs - API Reference](https://docs.socialdata.tools/reference/get-multiple-tweets/)
POST https://api.socialdata.tools/twitter/tweets-by-ids
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Path Parameters
**ids** `array` — required
An array of Twitter tweet IDs. Up to 100 IDs per request
Example: \["1922917671227498515", "1924473372236476749", ...\]
> **Caution**
>
> When using languages where the `id` value exceeds the default Integer type limit (e.g., JavaScript), you should store `id` as a String. Use the `id_str` property returned by the API for these values
#### Code Examples
###### curl
```shellscript
curl "https://api.socialdata.tools/twitter/tweets-by-ids" \
-X POST \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"ids": [1922917671227498515, 1924473372236476749]}'
```
###### JavaScript
```js
const ids = ["1922917671227498515", "1924473372236476749"];
const API_KEY = 'YOUR_API_KEY_HERE';
fetch('https://api.socialdata.tools/twitter/tweets-by-ids', {
method: 'POST',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Content-Type': 'application/json',
'Accept': 'application/json'
},
body: JSON.stringify({ ids })
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
ids = [1922917671227498515, 1924473372236476749]
API_KEY = 'YOUR_API_KEY_HERE'
url = 'https://api.socialdata.tools/twitter/tweets-by-ids'
headers = {
'Authorization': f'Bearer {API_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
payload = {'ids': ids}
response = requests.post(url, json=payload, headers=headers)
if response.status_code == 200:
data = response.json()
print(data)
else:
print(f"Error: {response.status_code}")
print(response.text)
```
###### PHP
```php
$ids = [1922917671227498515, 1924473372236476749];
$API_KEY = 'YOUR_API_KEY_HERE';
$url = "https://api.socialdata.tools/twitter/tweets-by-ids";
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => json_encode(['ids' => $ids]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer $API_KEY",
"Content-Type: application/json",
"Accept: application/json"
]
]);
$response = curl_exec($ch);
$data = json_decode($response, true);
print_r($data);
curl_close($ch);
```
#### Example Responses
###### 200
```json
[
{
"tweet_created_at": "2022-07-19T06:35:54+00:00",
"id": 1549281861687451648,
"id_str": "1549281861687451648",
"text": null,
"full_text": "100 tips I learned growing an iOS app to ~$5M in sales in 3 yrs, going through YC 1.5 times, and co-founding @Superwall 👇",
"source": "chirr.app<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 15118774,
"id_str": "15118774",
"name": "Jake Mor",
"screen_name": "jakemor",
"location": "New York, USA",
"url": "http:\/\/superwall.com",
"description": "CEO @Superwall — build & test paywalls without shipping updates. Past: Founder @FitnessAI_ (acquired). YC W20 & S21",
"protected": false,
"verified": true,
"followers_count": 5423,
"friends_count": 556,
"listed_count": 95,
"favourites_count": 1161,
"statuses_count": 1683,
"created_at": "2008-06-14T18:37:41+00:00",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/15118774\/1636564314",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1167559170540875777\/nRn7p8em_normal.jpg",
"can_dm": true
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 73,
"reply_count": 105,
"retweet_count": 492,
"favorite_count": 9419,
"views_count": null,
"bookmark_count": 4614,
"lang": "en",
"entities": {
"user_mentions": [
{
"id_str": "1427520876325613571",
"name": "Superwall",
"screen_name": "Superwall",
"indices": [
109,
119
]
}
],
"urls": [],
"hashtags": [],
"symbols": []
},
"is_pinned": false
},
// ...
]
```
###### 402
```json
{
"status": "error",
"message": "Insufficient balance"
}
```
###### 500
```json
{
"status": "error",
"message": "Failed to fetch data from Twitter"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **402 Payment Required** - not enough credits to perform this request
- **404 Not Found** - requested tweet does not exist
- **422 Unprocessable Content** - validation failed (e.g. one of the required parameters was not provided)
- **500 Internal Error** - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later
#### Related endpoints
- [Get tweet](https://docs.socialdata.tools/reference/get-tweet/)
- [Get thread](https://docs.socialdata.tools/reference/get-tweet-thread/)
- [Get article](https://docs.socialdata.tools/reference/get-tweet-article/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Pricing](https://docs.socialdata.tools/getting-started/pricing/)
### Data API: Get Tweet Comments - API Reference
Source: [Get Tweet Comments - API Reference](https://docs.socialdata.tools/reference/get-tweet-comments/)
Returns an array of comments for a given `tweet_id`. This endpoint only works for top-level tweets (i.e. this can’t be used to retrieve comments posted in response to other comments).
GET https://api.socialdata.tools/twitter/tweets/{id}/comments?cursor={cursor}
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Path Parameters
**id** `integer` — required
The numerical `id` of the target tweet
Example: 1890269299287441612
**cursor** `string` — optional
Cursor value obtained from `next_cursor` response property. Used to retrieve additional pages for the same query
Example: 1890084840239985036
> **Caution**
>
> When using languages where the `id` value exceeds the default Integer type limit (e.g., JavaScript), you should store `id` as a String. Use the `id_str` property returned by the API for these values
#### Code Examples
###### curl
```shellscript
curl "https://api.socialdata.tools/twitter/tweets/1890269299287441612/comments" \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Accept: application/json'
```
###### JavaScript
```js
const tweetId = '1890269299287441612';
const API_KEY = 'YOUR_API_KEY_HERE';
fetch(`https://api.socialdata.tools/twitter/tweets/${tweetId}/comments`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Accept': 'application/json'
}
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
tweet_id = '1890269299287441612'
API_KEY = 'YOUR_API_KEY_HERE'
url = f'https://api.socialdata.tools/twitter/tweets/{tweet_id}/comments'
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)
```
###### PHP
```php
$tweet_id = '1890269299287441612';
$API_KEY = 'YOUR_API_KEY_HERE';
$url = "https://api.socialdata.tools/twitter/tweets/{$tweet_id}/comments";
$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
###### 200
```json
{
"tweets": [
{
"tweet_created_at": "2025-02-14T12:01:25.000000Z",
"id": 1890370761136668854,
"id_str": "1890370761136668854",
"conversation_id_str": "1890269299287441612",
"text": null,
"full_text": "@elonmusk We can’t thank you enough.",
"source": "Twitter Web App<\/a>",
"truncated": false,
"in_reply_to_status_id": 1890269299287441612,
"in_reply_to_status_id_str": "1890269299287441612",
"in_reply_to_user_id": 44196397,
"in_reply_to_user_id_str": "44196397",
"in_reply_to_screen_name": "elonmusk",
"user": {
"id": 1366385465096630276,
"id_str": "1366385465096630276",
"name": "MYPOTUSTRUMP",
"screen_name": "11Pythagorean",
"location": "",
"url": null,
"description": "Shorten the refractory period of your emotional reactions-go confidently in the direction of your dreams—live the life you’ve imagined! Catholic #IDONOTCONSENT",
"protected": false,
"verified": false,
"followers_count": 2400,
"friends_count": 1460,
"listed_count": 3,
"favourites_count": 243414,
"statuses_count": 211500,
"created_at": "2021-03-01T13:51:11.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/1366385465096630276\/1681663176",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1854480101385125894\/uYkO23Fn_normal.jpg",
"can_dm": true
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 0,
"reply_count": 0,
"retweet_count": 0,
"favorite_count": 0,
"views_count": 1,
"bookmark_count": 0,
"lang": "en",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": [
{
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"indices": [
0,
9
]
}
]
},
"is_pinned": false
},
{
"tweet_created_at": "2025-02-14T12:01:23.000000Z",
"id": 1890370752685261025,
"id_str": "1890370752685261025",
"conversation_id_str": "1890269299287441612",
"text": null,
"full_text": "@elonmusk I’m so blessed",
"source": "Twitter for iPhone<\/a>",
"truncated": false,
"in_reply_to_status_id": 1890269299287441612,
"in_reply_to_status_id_str": "1890269299287441612",
"in_reply_to_user_id": 44196397,
"in_reply_to_user_id_str": "44196397",
"in_reply_to_screen_name": "elonmusk",
"user": {
"id": 1837832148230733824,
"id_str": "1837832148230733824",
"name": "Brainey☓Genius✞✨🤍",
"screen_name": "Braineygenius1",
"location": "Now you see me",
"url": "https:\/\/t.me\/braineygeniuss",
"description": "(Daily Empowerment) The best you can see🤍GOD FIRST🤍 | Positive vibes only | Let’s have fun with #motivation $Crypto",
"protected": false,
"verified": false,
"followers_count": 2081,
"friends_count": 2836,
"listed_count": 1,
"favourites_count": 11569,
"statuses_count": 12045,
"created_at": "2024-09-22T12:32:47.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/1837832148230733824\/1735860697",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1847964293054054400\/QvCdMzEe_normal.jpg",
"can_dm": true
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 0,
"reply_count": 0,
"retweet_count": 0,
"favorite_count": 0,
"views_count": 1,
"bookmark_count": 0,
"lang": "en",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": [
{
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"indices": [
0,
9
]
}
]
},
"is_pinned": false
},
{
"tweet_created_at": "2025-02-14T12:01:08.000000Z",
"id": 1890370687853879456,
"id_str": "1890370687853879456",
"conversation_id_str": "1890269299287441612",
"text": null,
"full_text": "@elonmusk 😂👍 https:\/\/t.co\/VqqcUkYlAp",
"source": "Twitter Web App<\/a>",
"truncated": false,
"in_reply_to_status_id": 1890269299287441612,
"in_reply_to_status_id_str": "1890269299287441612",
"in_reply_to_user_id": 44196397,
"in_reply_to_user_id_str": "44196397",
"in_reply_to_screen_name": "elonmusk",
"user": {
"id": 1095165610709917696,
"id_str": "1095165610709917696",
"name": "Patricia Kenny",
"screen_name": "Patrici29112448",
"location": "",
"url": null,
"description": "Sticks and Stones,\nDrain the Swamp,\nTrump is My President\nMAGA\nNO DM's, Will Block",
"protected": false,
"verified": true,
"followers_count": 855,
"friends_count": 937,
"listed_count": 0,
"favourites_count": 31161,
"statuses_count": 12650,
"created_at": "2019-02-12T03:40:03.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/1095165610709917696\/1721095865",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1591595185636532225\/n_voRAhl_normal.jpg",
"can_dm": false
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 0,
"reply_count": 0,
"retweet_count": 0,
"favorite_count": 0,
"views_count": 1,
"bookmark_count": 0,
"lang": "qme",
"entities": {
"hashtags": [],
"media": [
{
"display_url": "pic.x.com\/VqqcUkYlAp",
"expanded_url": "https:\/\/x.com\/Patrici29112448\/status\/1890370687853879456\/photo\/1",
"ext_alt_text": "Cheer Applause GIF by Peanuts",
"id_str": "1890370681746976768",
"indices": [
13,
36
],
"media_key": "16_1890370681746976768",
"media_url_https": "https:\/\/pbs.twimg.com\/tweet_video_thumb\/GjvyHpNXcAAs3Lv.jpg",
"type": "animated_gif",
"url": "https:\/\/t.co\/VqqcUkYlAp",
"ext_media_availability": {
"status": "Available"
},
"sizes": {
"large": {
"h": 320,
"w": 480,
"resize": "fit"
},
"medium": {
"h": 320,
"w": 480,
"resize": "fit"
},
"small": {
"h": 320,
"w": 480,
"resize": "fit"
},
"thumb": {
"h": 150,
"w": 150,
"resize": "crop"
}
},
"original_info": {
"height": 320,
"width": 480,
"focus_rects": []
},
"video_info": {
"aspect_ratio": [
3,
2
],
"variants": [
{
"bitrate": 0,
"content_type": "video\/mp4",
"url": "https:\/\/video.twimg.com\/tweet_video\/GjvyHpNXcAAs3Lv.mp4"
}
]
},
"media_results": {
"result": {
"media_key": "16_1890370681746976768"
}
}
},
{
"display_url": "pic.x.com\/VqqcUkYlAp",
"expanded_url": "https:\/\/x.com\/Patrici29112448\/status\/1890370687853879456\/photo\/1",
"ext_alt_text": "Cheer Applause GIF by Peanuts",
"id_str": "1890370681746976768",
"indices": [
13,
36
],
"media_key": "16_1890370681746976768",
"media_url_https": "https:\/\/pbs.twimg.com\/tweet_video_thumb\/GjvyHpNXcAAs3Lv.jpg",
"type": "animated_gif",
"url": "https:\/\/t.co\/VqqcUkYlAp",
"ext_media_availability": {
"status": "Available"
},
"sizes": {
"large": {
"h": 320,
"w": 480,
"resize": "fit"
},
"medium": {
"h": 320,
"w": 480,
"resize": "fit"
},
"small": {
"h": 320,
"w": 480,
"resize": "fit"
},
"thumb": {
"h": 150,
"w": 150,
"resize": "crop"
}
},
"original_info": {
"height": 320,
"width": 480,
"focus_rects": []
},
"video_info": {
"aspect_ratio": [
3,
2
],
"variants": [
{
"bitrate": 0,
"content_type": "video\/mp4",
"url": "https:\/\/video.twimg.com\/tweet_video\/GjvyHpNXcAAs3Lv.mp4"
}
]
},
"media_results": {
"result": {
"media_key": "16_1890370681746976768"
}
}
}
],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": [
{
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"indices": [
0,
9
]
}
]
},
"is_pinned": false
},
{
"tweet_created_at": "2025-02-14T12:01:04.000000Z",
"id": 1890370671001157780,
"id_str": "1890370671001157780",
"conversation_id_str": "1890269299287441612",
"text": null,
"full_text": "@BridgetPhetasy @elonmusk I miss the days when politics was boring…",
"source": "Twitter for iPhone<\/a>",
"truncated": false,
"in_reply_to_status_id": 1890270147967086966,
"in_reply_to_status_id_str": "1890270147967086966",
"in_reply_to_user_id": 15567770,
"in_reply_to_user_id_str": "15567770",
"in_reply_to_screen_name": "BridgetPhetasy",
"user": {
"id": 1100406765361995776,
"id_str": "1100406765361995776",
"name": "RoccoRoc",
"screen_name": "RoccoRoc4",
"location": "Old Bridge, NJ",
"url": null,
"description": "",
"protected": false,
"verified": false,
"followers_count": 183,
"friends_count": 244,
"listed_count": 2,
"favourites_count": 21150,
"statuses_count": 3913,
"created_at": "2019-02-26T14:46:32.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/1100406765361995776\/1551199117",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1100427937575305218\/IqgM06j0_normal.jpg",
"can_dm": false
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 0,
"reply_count": 0,
"retweet_count": 0,
"favorite_count": 0,
"views_count": null,
"bookmark_count": 0,
"lang": "en",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": [
{
"id_str": "15567770",
"name": "Bridget Phetasy",
"screen_name": "BridgetPhetasy",
"indices": [
0,
15
]
},
{
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"indices": [
16,
25
]
}
]
},
"is_pinned": false
},
{
"tweet_created_at": "2025-02-14T12:00:59.000000Z",
"id": 1890370650902073538,
"id_str": "1890370650902073538",
"conversation_id_str": "1890269299287441612",
"text": null,
"full_text": "@RealDealAxelrod @elonmusk If they aren’t crooks they have nothing to fear",
"source": "Twitter Web App<\/a>",
"truncated": false,
"in_reply_to_status_id": 1890274166118707700,
"in_reply_to_status_id_str": "1890274166118707700",
"in_reply_to_user_id": 820808196956655616,
"in_reply_to_user_id_str": "820808196956655616",
"in_reply_to_screen_name": "RealDealAxelrod",
"user": {
"id": 559832799,
"id_str": "559832799",
"name": "Lisa Rand",
"screen_name": "hotontheside",
"location": "",
"url": null,
"description": "#MAGA #MAHA #Trump2024 #IChooseGreatness #BetterLuckNextHoax #TrumpNowMoreThanEver #NeverSurrender #Trump2024ToSaveAmerica",
"protected": false,
"verified": false,
"followers_count": 2485,
"friends_count": 3063,
"listed_count": 6,
"favourites_count": 185446,
"statuses_count": 127579,
"created_at": "2012-04-21T17:54:00.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/559832799\/1721492254",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1854064712440586240\/1w1lB9NQ_normal.jpg",
"can_dm": false
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 0,
"reply_count": 0,
"retweet_count": 0,
"favorite_count": 0,
"views_count": null,
"bookmark_count": 0,
"lang": "en",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": [
{
"id_str": "820808196956655616",
"name": "A🪓E",
"screen_name": "RealDealAxelrod",
"indices": [
0,
16
]
},
{
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"indices": [
17,
26
]
}
]
},
"is_pinned": false
},
{
"tweet_created_at": "2025-02-14T12:00:57.000000Z",
"id": 1890370643293589627,
"id_str": "1890370643293589627",
"conversation_id_str": "1890269299287441612",
"text": null,
"full_text": "@Sweetpea222555 @sandiechill @elonmusk No arrests though for fraud... makes you wonder why doesn't it?",
"source": "Twitter for Android<\/a>",
"truncated": false,
"in_reply_to_status_id": 1890298116588630466,
"in_reply_to_status_id_str": "1890298116588630466",
"in_reply_to_user_id": 1827028120903503872,
"in_reply_to_user_id_str": "1827028120903503872",
"in_reply_to_screen_name": "Sweetpea222555",
"user": {
"id": 1858499115241607169,
"id_str": "1858499115241607169",
"name": "Claire Willcox",
"screen_name": "ClaireWill67096",
"location": "UK",
"url": null,
"description": "Got locked out in the Big Change Over\nFormer account https:\/\/t.co\/EtGIuqf8DB \n#notabot",
"protected": false,
"verified": false,
"followers_count": 7,
"friends_count": 28,
"listed_count": 0,
"favourites_count": 290,
"statuses_count": 143,
"created_at": "2024-11-18T13:15:05.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/1858499115241607169\/1731944154",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1858585489088901120\/3wDhBGQ3_normal.jpg",
"can_dm": true
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 0,
"reply_count": 0,
"retweet_count": 0,
"favorite_count": 0,
"views_count": null,
"bookmark_count": 0,
"lang": "en",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": [
{
"id_str": "1827028120903503872",
"name": "Sweetpea",
"screen_name": "Sweetpea222555",
"indices": [
0,
15
]
},
{
"id_str": "301330029",
"name": "Sandy",
"screen_name": "sandiechill",
"indices": [
16,
28
]
},
{
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"indices": [
29,
38
]
}
]
},
"is_pinned": false
},
{
"tweet_created_at": "2025-02-14T12:00:53.000000Z",
"id": 1890370625773994283,
"id_str": "1890370625773994283",
"conversation_id_str": "1890269299287441612",
"text": null,
"full_text": "@elonmusk It’s fun to watch you having fun",
"source": "Twitter for iPhone<\/a>",
"truncated": false,
"in_reply_to_status_id": 1890269299287441612,
"in_reply_to_status_id_str": "1890269299287441612",
"in_reply_to_user_id": 44196397,
"in_reply_to_user_id_str": "44196397",
"in_reply_to_screen_name": "elonmusk",
"user": {
"id": 1519472144018812932,
"id_str": "1519472144018812932",
"name": "Sister Mary Chardonnay",
"screen_name": "cabocynde",
"location": "Potomac Falls, VA",
"url": null,
"description": "Faith Family Freedom 🦅⚓️🌎🇵🇱🇺🇸🐕🐱 #pureblood #FJB #teamelon MAGA MAHA 🚫DM 🚫Porn",
"protected": false,
"verified": true,
"followers_count": 4888,
"friends_count": 5513,
"listed_count": 1,
"favourites_count": 23901,
"statuses_count": 5376,
"created_at": "2022-04-28T00:23:02.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/1519472144018812932\/1737489370",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1862675707828027392\/Sz8Pr7pa_normal.jpg",
"can_dm": false
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 0,
"reply_count": 0,
"retweet_count": 0,
"favorite_count": 0,
"views_count": null,
"bookmark_count": 0,
"lang": "en",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": [
{
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"indices": [
0,
9
]
}
]
},
"is_pinned": false
},
{
"tweet_created_at": "2025-02-14T12:00:51.000000Z",
"id": 1890370620535284091,
"id_str": "1890370620535284091",
"conversation_id_str": "1890269299287441612",
"text": null,
"full_text": "@elonmusk https:\/\/t.co\/aXBzBuUKyz",
"source": "Twitter for iPhone<\/a>",
"truncated": false,
"in_reply_to_status_id": 1890269299287441612,
"in_reply_to_status_id_str": "1890269299287441612",
"in_reply_to_user_id": 44196397,
"in_reply_to_user_id_str": "44196397",
"in_reply_to_screen_name": "elonmusk",
"user": {
"id": 1342515867381334021,
"id_str": "1342515867381334021",
"name": "Fox",
"screen_name": "TottenhamFox",
"location": "London, England",
"url": null,
"description": "Petrolhead | F1 @McLaren | Tottenham ST holder since 1987 #WNS #COYS #UTY 🇬🇧🏴🇺🇸🇺🇦🇮🇱🇮🇳",
"protected": false,
"verified": false,
"followers_count": 724,
"friends_count": 1932,
"listed_count": 2,
"favourites_count": 65655,
"statuses_count": 20600,
"created_at": "2020-12-25T17:02:16.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/1342515867381334021\/1735086941",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1849429056984436736\/2u_ibWaV_normal.jpg",
"can_dm": true
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 0,
"reply_count": 0,
"retweet_count": 0,
"favorite_count": 0,
"views_count": null,
"bookmark_count": 0,
"lang": "qme",
"entities": {
"hashtags": [],
"media": [
{
"display_url": "pic.x.com\/aXBzBuUKyz",
"expanded_url": "https:\/\/x.com\/TottenhamFox\/status\/1890370620535284091\/photo\/1",
"ext_alt_text": "Are You Not Entertained Ange Postecoglou GIF",
"id_str": "1890370612612194304",
"indices": [
10,
33
],
"media_key": "16_1890370612612194304",
"media_url_https": "https:\/\/pbs.twimg.com\/tweet_video_thumb\/GjvyDnqWYAAZA0i.jpg",
"type": "animated_gif",
"url": "https:\/\/t.co\/aXBzBuUKyz",
"ext_media_availability": {
"status": "Available"
},
"sizes": {
"large": {
"h": 374,
"w": 498,
"resize": "fit"
},
"medium": {
"h": 374,
"w": 498,
"resize": "fit"
},
"small": {
"h": 374,
"w": 498,
"resize": "fit"
},
"thumb": {
"h": 150,
"w": 150,
"resize": "crop"
}
},
"original_info": {
"height": 374,
"width": 498,
"focus_rects": []
},
"video_info": {
"aspect_ratio": [
249,
187
],
"variants": [
{
"bitrate": 0,
"content_type": "video\/mp4",
"url": "https:\/\/video.twimg.com\/tweet_video\/GjvyDnqWYAAZA0i.mp4"
}
]
},
"media_results": {
"result": {
"media_key": "16_1890370612612194304"
}
}
},
{
"display_url": "pic.x.com\/aXBzBuUKyz",
"expanded_url": "https:\/\/x.com\/TottenhamFox\/status\/1890370620535284091\/photo\/1",
"ext_alt_text": "Are You Not Entertained Ange Postecoglou GIF",
"id_str": "1890370612612194304",
"indices": [
10,
33
],
"media_key": "16_1890370612612194304",
"media_url_https": "https:\/\/pbs.twimg.com\/tweet_video_thumb\/GjvyDnqWYAAZA0i.jpg",
"type": "animated_gif",
"url": "https:\/\/t.co\/aXBzBuUKyz",
"ext_media_availability": {
"status": "Available"
},
"sizes": {
"large": {
"h": 374,
"w": 498,
"resize": "fit"
},
"medium": {
"h": 374,
"w": 498,
"resize": "fit"
},
"small": {
"h": 374,
"w": 498,
"resize": "fit"
},
"thumb": {
"h": 150,
"w": 150,
"resize": "crop"
}
},
"original_info": {
"height": 374,
"width": 498,
"focus_rects": []
},
"video_info": {
"aspect_ratio": [
249,
187
],
"variants": [
{
"bitrate": 0,
"content_type": "video\/mp4",
"url": "https:\/\/video.twimg.com\/tweet_video\/GjvyDnqWYAAZA0i.mp4"
}
]
},
"media_results": {
"result": {
"media_key": "16_1890370612612194304"
}
}
}
],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": [
{
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"indices": [
0,
9
]
}
]
},
"is_pinned": false
},
{
"tweet_created_at": "2025-02-14T12:00:48.000000Z",
"id": 1890370604328497631,
"id_str": "1890370604328497631",
"conversation_id_str": "1890269299287441612",
"text": null,
"full_text": "@elonmusk That's good to hear",
"source": "Twitter for Android<\/a>",
"truncated": false,
"in_reply_to_status_id": 1890269299287441612,
"in_reply_to_status_id_str": "1890269299287441612",
"in_reply_to_user_id": 44196397,
"in_reply_to_user_id_str": "44196397",
"in_reply_to_screen_name": "elonmusk",
"user": {
"id": 1772164330710061056,
"id_str": "1772164330710061056",
"name": "Abdul_PayNet",
"screen_name": "AbdulPaynet",
"location": "somewhere in the Technology 🌍",
"url": null,
"description": "Forex trader💹 ||Military enthusiast🎖️||Cybersecurity expert | Technical analyst📊 | Exploring the intersection of finance, tech, and defense",
"protected": false,
"verified": false,
"followers_count": 176,
"friends_count": 426,
"listed_count": 1,
"favourites_count": 2214,
"statuses_count": 828,
"created_at": "2024-03-25T07:31:47.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/1772164330710061056\/1722704755",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1820016871753580544\/KuWhihb1_normal.jpg",
"can_dm": false
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 0,
"reply_count": 0,
"retweet_count": 0,
"favorite_count": 0,
"views_count": null,
"bookmark_count": 0,
"lang": "en",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": [
{
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"indices": [
0,
9
]
}
]
},
"is_pinned": false
},
{
"tweet_created_at": "2025-02-14T12:00:47.000000Z",
"id": 1890370602201985377,
"id_str": "1890370602201985377",
"conversation_id_str": "1890269299287441612",
"text": null,
"full_text": "@sandiechill @elonmusk You are full of your own self importance aren't you.",
"source": "Twitter for Android<\/a>",
"truncated": false,
"in_reply_to_status_id": 1890287607336026594,
"in_reply_to_status_id_str": "1890287607336026594",
"in_reply_to_user_id": 301330029,
"in_reply_to_user_id_str": "301330029",
"in_reply_to_screen_name": "sandiechill",
"user": {
"id": 2917259022,
"id_str": "2917259022",
"name": "Mark Berney",
"screen_name": "MarkB7634",
"location": "Ruse, Sydney",
"url": null,
"description": "",
"protected": false,
"verified": false,
"followers_count": 89,
"friends_count": 502,
"listed_count": 1,
"favourites_count": 1600,
"statuses_count": 3000,
"created_at": "2014-12-03T06:43:34.000000Z",
"profile_banner_url": null,
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1158344163982577665\/4vWpeGMr_normal.jpg",
"can_dm": true
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 0,
"reply_count": 0,
"retweet_count": 0,
"favorite_count": 0,
"views_count": null,
"bookmark_count": 0,
"lang": "en",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": [
{
"id_str": "301330029",
"name": "Sandy",
"screen_name": "sandiechill",
"indices": [
0,
12
]
},
{
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"indices": [
13,
22
]
}
]
},
"is_pinned": false
},
{
"tweet_created_at": "2025-02-14T12:00:41.000000Z",
"id": 1890370576335724873,
"id_str": "1890370576335724873",
"conversation_id_str": "1890269299287441612",
"text": null,
"full_text": "@elonmusk Lmfao so are we #draintheswamp",
"source": "Twitter for iPhone<\/a>",
"truncated": false,
"in_reply_to_status_id": 1890269299287441612,
"in_reply_to_status_id_str": "1890269299287441612",
"in_reply_to_user_id": 44196397,
"in_reply_to_user_id_str": "44196397",
"in_reply_to_screen_name": "elonmusk",
"user": {
"id": 1773424475674984448,
"id_str": "1773424475674984448",
"name": "Alex Thurman",
"screen_name": "crash12899",
"location": "",
"url": null,
"description": "stop the bullshit",
"protected": false,
"verified": false,
"followers_count": 2,
"friends_count": 13,
"listed_count": 0,
"favourites_count": 61,
"statuses_count": 147,
"created_at": "2024-03-28T18:58:49.000000Z",
"profile_banner_url": null,
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1800004816992608256\/ykLPpHfJ_normal.jpg",
"can_dm": false
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 0,
"reply_count": 0,
"retweet_count": 0,
"favorite_count": 0,
"views_count": null,
"bookmark_count": 0,
"lang": "en",
"entities": {
"hashtags": [
{
"indices": [
26,
40
],
"text": "draintheswamp"
}
],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": [
{
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"indices": [
0,
9
]
}
]
},
"is_pinned": false
},
{
"tweet_created_at": "2025-02-14T12:00:40.000000Z",
"id": 1890370570866290801,
"id_str": "1890370570866290801",
"conversation_id_str": "1890269299287441612",
"text": null,
"full_text": "@elonmusk Good 😊",
"source": "Twitter for iPhone<\/a>",
"truncated": false,
"in_reply_to_status_id": 1890269299287441612,
"in_reply_to_status_id_str": "1890269299287441612",
"in_reply_to_user_id": 44196397,
"in_reply_to_user_id_str": "44196397",
"in_reply_to_screen_name": "elonmusk",
"user": {
"id": 2334264904,
"id_str": "2334264904",
"name": "Malik Zain Raza",
"screen_name": "malikzain2k14",
"location": "Dubai , UAE",
"url": "https:\/\/www.instagram.com\/malikzaynraza?igsh=MW9vdzVwZ3c0dzZxYg%3D%3D&utm_source=qr",
"description": "My friends says i am a good photographer 😎",
"protected": false,
"verified": true,
"followers_count": 11157,
"friends_count": 8753,
"listed_count": 9,
"favourites_count": 98988,
"statuses_count": 80542,
"created_at": "2014-02-09T19:03:04.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/2334264904\/1500491544",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1838844726415368192\/j0XGCVUD_normal.jpg",
"can_dm": true
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 0,
"reply_count": 0,
"retweet_count": 0,
"favorite_count": 0,
"views_count": 1,
"bookmark_count": 0,
"lang": "en",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": [
{
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"indices": [
0,
9
]
}
]
},
"is_pinned": false
},
{
"tweet_created_at": "2025-02-14T12:00:36.000000Z",
"id": 1890370554508521786,
"id_str": "1890370554508521786",
"conversation_id_str": "1890269299287441612",
"text": null,
"full_text": "@elonmusk Did you propose doge like set up to @narendramodi",
"source": "Twitter Web App<\/a>",
"truncated": false,
"in_reply_to_status_id": 1890269299287441612,
"in_reply_to_status_id_str": "1890269299287441612",
"in_reply_to_user_id": 44196397,
"in_reply_to_user_id_str": "44196397",
"in_reply_to_screen_name": "elonmusk",
"user": {
"id": 108314800,
"id_str": "108314800",
"name": "The Persian Cat",
"screen_name": "lokanathtripath",
"location": "Bengaluru, India",
"url": null,
"description": "Here to waste time liking random tweets.",
"protected": false,
"verified": false,
"followers_count": 331,
"friends_count": 231,
"listed_count": 0,
"favourites_count": 25476,
"statuses_count": 1641,
"created_at": "2010-01-25T15:05:36.000000Z",
"profile_banner_url": null,
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1600404306335010816\/nvFoyuo0_normal.jpg",
"can_dm": true
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 0,
"reply_count": 0,
"retweet_count": 0,
"favorite_count": 0,
"views_count": 6,
"bookmark_count": 0,
"lang": "en",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": [
{
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"indices": [
0,
9
]
},
{
"id_str": "18839785",
"name": "Narendra Modi",
"screen_name": "narendramodi",
"indices": [
46,
59
]
}
]
},
"is_pinned": false
},
{
"tweet_created_at": "2025-02-14T12:00:23.000000Z",
"id": 1890370499957461420,
"id_str": "1890370499957461420",
"conversation_id_str": "1890269299287441612",
"text": null,
"full_text": "@elonmusk What brand of popcorn are you enjoying? 😁",
"source": "Twitter for iPhone<\/a>",
"truncated": false,
"in_reply_to_status_id": 1890269299287441612,
"in_reply_to_status_id_str": "1890269299287441612",
"in_reply_to_user_id": 44196397,
"in_reply_to_user_id_str": "44196397",
"in_reply_to_screen_name": "elonmusk",
"user": {
"id": 382347478,
"id_str": "382347478",
"name": "Mark Sampson",
"screen_name": "mindvittles",
"location": "Ontario, Canada",
"url": null,
"description": "Family man, travel enthusiast, outdoor lover, FITFO & FAFO practitioner, Martin Short is my twin.",
"protected": false,
"verified": false,
"followers_count": 68,
"friends_count": 45,
"listed_count": 3,
"favourites_count": 65,
"statuses_count": 604,
"created_at": "2011-09-29T22:31:56.000000Z",
"profile_banner_url": null,
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/726048566364520448\/XuQZEaKW_normal.jpg",
"can_dm": true
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 0,
"reply_count": 0,
"retweet_count": 0,
"favorite_count": 0,
"views_count": 1,
"bookmark_count": 0,
"lang": "en",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": [
{
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"indices": [
0,
9
]
}
]
},
"is_pinned": false
}
],
"next_cursor": "1890370499957461419"
}
```
###### 402
```json
{
"status": "error",
"message": "Insufficient balance"
}
```
###### 404
```json
{
"status": "error",
"message": "Tweet not found"
}
```
###### 500
```json
{
"status": "error",
"message": "Failed to fetch data from Twitter"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **402 Payment Required** - not enough credits to perform this request
- **404 Not Found** - requested tweet does not exist
- **422 Unprocessable Content** - validation failed (e.g. one of the required parameters was not provided)
- **500 Internal Error** - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later
#### Related endpoints
- [Get tweet quotes](https://docs.socialdata.tools/reference/get-tweet-quotes/)
- [Get tweet retweeters](https://docs.socialdata.tools/reference/get-tweet-retweeters/)
- [Verify user retweeted](https://docs.socialdata.tools/social-actions/verify-user-retweeted/)
- [Verify user commented](https://docs.socialdata.tools/social-actions/verify-user-commented/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Pricing](https://docs.socialdata.tools/getting-started/pricing/)
### Data API: Get Tweet Quotes - API Reference
Source: [Get Tweet Quotes - API Reference](https://docs.socialdata.tools/reference/get-tweet-quotes/)
Returns an array of quotes for a given `tweet_id`.
GET https://api.socialdata.tools/twitter/tweets/{id}/quotes?cursor={cursor}
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Path Parameters
**id** `integer` — required
The numerical `id` of the target tweet
Example: 1890269299287441612
#### Query Parameters
**cursor** `string` — optional
Cursor value obtained from `next_cursor` response property. Used to retrieve additional pages for the same query
Example: 1890084840239985036
> **Caution**
>
> When using languages where the `id` value exceeds the default Integer type limit (e.g., JavaScript), you should store `id` as a String. Use the `id_str` property returned by the API for these values
#### Code Examples
###### curl
```shellscript
curl "https://api.socialdata.tools/twitter/tweets/1890269299287441612/quotes" \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Accept: application/json'
```
###### JavaScript
```js
const tweetId = '1890269299287441612';
const API_KEY = 'YOUR_API_KEY_HERE';
fetch(`https://api.socialdata.tools/twitter/tweets/${tweetId}/quotes`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Accept': 'application/json'
}
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
tweet_id = '1890269299287441612'
API_KEY = 'YOUR_API_KEY_HERE'
url = f'https://api.socialdata.tools/twitter/tweets/{tweet_id}/quotes'
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)
```
###### PHP
```php
$tweet_id = '1890269299287441612';
$API_KEY = 'YOUR_API_KEY_HERE';
$url = "https://api.socialdata.tools/twitter/tweets/{$tweet_id}/quotes";
$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
###### 200
```json
{
"tweets": [
{
"tweet_created_at": "2025-02-14T12:00:53.000000Z",
"id": 1890370626847682665,
"id_str": "1890370626847682665",
"conversation_id_str": "1890370626847682665",
"text": null,
"full_text": "I was gonna ask",
"source": "Twitter for iPhone<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 1820570848983732224,
"id_str": "1820570848983732224",
"name": "who cares",
"screen_name": "MDehart28372",
"location": "",
"url": null,
"description": "No DM’s. old guy Army vet. Back after being kicked off for saying things that everyone can say now…..let’s see if it lasts.",
"protected": false,
"verified": false,
"followers_count": 562,
"friends_count": 424,
"listed_count": 0,
"favourites_count": 31106,
"statuses_count": 36117,
"created_at": "2024-08-05T21:22:07.000000Z",
"profile_banner_url": null,
"profile_image_url_https": "https:\/\/abs.twimg.com\/sticky\/default_profile_images\/default_profile_normal.png",
"can_dm": false
},
"quoted_status_id": null,
"quoted_status_id_str": "1890269299287441612",
"is_quote_status": true,
"quoted_status": {
"tweet_created_at": "2025-02-14T05:18:15.000000Z",
"id": 1890269299287441612,
"id_str": "1890269299287441612",
"conversation_id_str": "1890269299287441612",
"text": null,
"full_text": "I am so entertained",
"source": "Twitter for iPhone<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 44196397,
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"location": "",
"url": null,
"description": "Volunteer Tech Support",
"protected": false,
"verified": true,
"followers_count": 217621416,
"friends_count": 1025,
"listed_count": 160003,
"favourites_count": 123356,
"statuses_count": 70462,
"created_at": "2009-06-02T20:12:29.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/44196397\/1726163678",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1874558173962481664\/8HSTqIlD_normal.jpg",
"can_dm": false
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 930,
"reply_count": 8982,
"retweet_count": 6446,
"favorite_count": 114742,
"views_count": 18854541,
"bookmark_count": 1541,
"lang": "en",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"is_pinned": false
},
"retweeted_status": null,
"quote_count": 0,
"reply_count": 0,
"retweet_count": 0,
"favorite_count": 0,
"views_count": null,
"bookmark_count": 0,
"lang": "en",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"is_pinned": false
},
{
"tweet_created_at": "2025-02-14T11:58:37.000000Z",
"id": 1890370057970110604,
"id_str": "1890370057970110604",
"conversation_id_str": "1890370057970110604",
"text": null,
"full_text": "Are you not entertained!? https:\/\/t.co\/uFeYZNgh9s",
"source": "Twitter for iPhone<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 1858861194775351296,
"id_str": "1858861194775351296",
"name": "Clara Winslow",
"screen_name": "clara_winslow",
"location": "God's country",
"url": "https:\/\/clarawinslow.substack.com\/",
"description": "I write from the crossroads of patriotism and disillusionment, where love for America meets the stark realities of its flaws. My words are a call to awaken",
"protected": false,
"verified": true,
"followers_count": 3335,
"friends_count": 777,
"listed_count": 4,
"favourites_count": 23055,
"statuses_count": 18490,
"created_at": "2024-11-19T13:13:58.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/1858861194775351296\/1732184804",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1858867287257645056\/YVWR3P59_normal.jpg",
"can_dm": false
},
"quoted_status_id": null,
"quoted_status_id_str": "1890269299287441612",
"is_quote_status": true,
"quoted_status": {
"tweet_created_at": "2025-02-14T05:18:15.000000Z",
"id": 1890269299287441612,
"id_str": "1890269299287441612",
"conversation_id_str": "1890269299287441612",
"text": null,
"full_text": "I am so entertained",
"source": "Twitter for iPhone<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 44196397,
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"location": "",
"url": null,
"description": "Volunteer Tech Support",
"protected": false,
"verified": true,
"followers_count": 217621416,
"friends_count": 1025,
"listed_count": 160003,
"favourites_count": 123356,
"statuses_count": 70462,
"created_at": "2009-06-02T20:12:29.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/44196397\/1726163678",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1874558173962481664\/8HSTqIlD_normal.jpg",
"can_dm": false
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 930,
"reply_count": 8982,
"retweet_count": 6446,
"favorite_count": 114742,
"views_count": 18854541,
"bookmark_count": 1541,
"lang": "en",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"is_pinned": false
},
"retweeted_status": null,
"quote_count": 0,
"reply_count": 0,
"retweet_count": 0,
"favorite_count": 0,
"views_count": 2,
"bookmark_count": 0,
"lang": "en",
"entities": {
"hashtags": [],
"media": [
{
"display_url": "pic.x.com\/uFeYZNgh9s",
"expanded_url": "https:\/\/x.com\/clara_winslow\/status\/1890370057970110604\/photo\/1",
"ext_alt_text": "Are You GIF",
"id_str": "1890370052924600320",
"indices": [
26,
49
],
"media_key": "16_1890370052924600320",
"media_url_https": "https:\/\/pbs.twimg.com\/tweet_video_thumb\/GjvxjCqbcAADqpK.jpg",
"type": "animated_gif",
"url": "https:\/\/t.co\/uFeYZNgh9s",
"ext_media_availability": {
"status": "Available"
},
"sizes": {
"large": {
"h": 210,
"w": 498,
"resize": "fit"
},
"medium": {
"h": 210,
"w": 498,
"resize": "fit"
},
"small": {
"h": 210,
"w": 498,
"resize": "fit"
},
"thumb": {
"h": 150,
"w": 150,
"resize": "crop"
}
},
"original_info": {
"height": 210,
"width": 498,
"focus_rects": []
},
"video_info": {
"aspect_ratio": [
83,
35
],
"variants": [
{
"bitrate": 0,
"content_type": "video\/mp4",
"url": "https:\/\/video.twimg.com\/tweet_video\/GjvxjCqbcAADqpK.mp4"
}
]
},
"media_results": {
"result": {
"media_key": "16_1890370052924600320"
}
}
},
{
"display_url": "pic.x.com\/uFeYZNgh9s",
"expanded_url": "https:\/\/x.com\/clara_winslow\/status\/1890370057970110604\/photo\/1",
"ext_alt_text": "Are You GIF",
"id_str": "1890370052924600320",
"indices": [
26,
49
],
"media_key": "16_1890370052924600320",
"media_url_https": "https:\/\/pbs.twimg.com\/tweet_video_thumb\/GjvxjCqbcAADqpK.jpg",
"type": "animated_gif",
"url": "https:\/\/t.co\/uFeYZNgh9s",
"ext_media_availability": {
"status": "Available"
},
"sizes": {
"large": {
"h": 210,
"w": 498,
"resize": "fit"
},
"medium": {
"h": 210,
"w": 498,
"resize": "fit"
},
"small": {
"h": 210,
"w": 498,
"resize": "fit"
},
"thumb": {
"h": 150,
"w": 150,
"resize": "crop"
}
},
"original_info": {
"height": 210,
"width": 498,
"focus_rects": []
},
"video_info": {
"aspect_ratio": [
83,
35
],
"variants": [
{
"bitrate": 0,
"content_type": "video\/mp4",
"url": "https:\/\/video.twimg.com\/tweet_video\/GjvxjCqbcAADqpK.mp4"
}
]
},
"media_results": {
"result": {
"media_key": "16_1890370052924600320"
}
}
}
],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"is_pinned": false
},
{
"tweet_created_at": "2025-02-14T11:58:14.000000Z",
"id": 1890369959856930821,
"id_str": "1890369959856930821",
"conversation_id_str": "1890369959856930821",
"text": null,
"full_text": "https:\/\/t.co\/fOCoYEagXp",
"source": "Twitter Web App<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 1519226995401445379,
"id_str": "1519226995401445379",
"name": "Dryhten of the Fyrd",
"screen_name": "Sch4denFreude22",
"location": "",
"url": null,
"description": "Your fingers would remember their old strength better, if they grasped a sword hilt.",
"protected": false,
"verified": false,
"followers_count": 737,
"friends_count": 2047,
"listed_count": 5,
"favourites_count": 100478,
"statuses_count": 38965,
"created_at": "2022-04-27T08:09:23.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/1519226995401445379\/1721672095",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1870114474314637312\/wUTHgobD_normal.jpg",
"can_dm": false
},
"quoted_status_id": null,
"quoted_status_id_str": "1890269299287441612",
"is_quote_status": true,
"quoted_status": {
"tweet_created_at": "2025-02-14T05:18:15.000000Z",
"id": 1890269299287441612,
"id_str": "1890269299287441612",
"conversation_id_str": "1890269299287441612",
"text": null,
"full_text": "I am so entertained",
"source": "Twitter for iPhone<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 44196397,
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"location": "",
"url": null,
"description": "Volunteer Tech Support",
"protected": false,
"verified": true,
"followers_count": 217621416,
"friends_count": 1025,
"listed_count": 160003,
"favourites_count": 123356,
"statuses_count": 70462,
"created_at": "2009-06-02T20:12:29.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/44196397\/1726163678",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1874558173962481664\/8HSTqIlD_normal.jpg",
"can_dm": false
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 930,
"reply_count": 8982,
"retweet_count": 6446,
"favorite_count": 114742,
"views_count": 18854541,
"bookmark_count": 1541,
"lang": "en",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"is_pinned": false
},
"retweeted_status": null,
"quote_count": 0,
"reply_count": 0,
"retweet_count": 0,
"favorite_count": 1,
"views_count": 5,
"bookmark_count": 0,
"lang": "zxx",
"entities": {
"hashtags": [],
"media": [
{
"display_url": "pic.x.com\/fOCoYEagXp",
"expanded_url": "https:\/\/x.com\/Sch4denFreude22\/status\/1890369959856930821\/photo\/1",
"ext_alt_text": "Are You GIF",
"id_str": "1890369953045397504",
"indices": [
0,
23
],
"media_key": "16_1890369953045397504",
"media_url_https": "https:\/\/pbs.twimg.com\/tweet_video_thumb\/GjvxdOlXwAARGsj.jpg",
"type": "animated_gif",
"url": "https:\/\/t.co\/fOCoYEagXp",
"ext_media_availability": {
"status": "Available"
},
"sizes": {
"large": {
"h": 210,
"w": 498,
"resize": "fit"
},
"medium": {
"h": 210,
"w": 498,
"resize": "fit"
},
"small": {
"h": 210,
"w": 498,
"resize": "fit"
},
"thumb": {
"h": 150,
"w": 150,
"resize": "crop"
}
},
"original_info": {
"height": 210,
"width": 498,
"focus_rects": []
},
"video_info": {
"aspect_ratio": [
83,
35
],
"variants": [
{
"bitrate": 0,
"content_type": "video\/mp4",
"url": "https:\/\/video.twimg.com\/tweet_video\/GjvxdOlXwAARGsj.mp4"
}
]
},
"media_results": {
"result": {
"media_key": "16_1890369953045397504"
}
}
},
{
"display_url": "pic.x.com\/fOCoYEagXp",
"expanded_url": "https:\/\/x.com\/Sch4denFreude22\/status\/1890369959856930821\/photo\/1",
"ext_alt_text": "Are You GIF",
"id_str": "1890369953045397504",
"indices": [
0,
23
],
"media_key": "16_1890369953045397504",
"media_url_https": "https:\/\/pbs.twimg.com\/tweet_video_thumb\/GjvxdOlXwAARGsj.jpg",
"type": "animated_gif",
"url": "https:\/\/t.co\/fOCoYEagXp",
"ext_media_availability": {
"status": "Available"
},
"sizes": {
"large": {
"h": 210,
"w": 498,
"resize": "fit"
},
"medium": {
"h": 210,
"w": 498,
"resize": "fit"
},
"small": {
"h": 210,
"w": 498,
"resize": "fit"
},
"thumb": {
"h": 150,
"w": 150,
"resize": "crop"
}
},
"original_info": {
"height": 210,
"width": 498,
"focus_rects": []
},
"video_info": {
"aspect_ratio": [
83,
35
],
"variants": [
{
"bitrate": 0,
"content_type": "video\/mp4",
"url": "https:\/\/video.twimg.com\/tweet_video\/GjvxdOlXwAARGsj.mp4"
}
]
},
"media_results": {
"result": {
"media_key": "16_1890369953045397504"
}
}
}
],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"is_pinned": false
},
{
"tweet_created_at": "2025-02-14T11:57:03.000000Z",
"id": 1890369660643574038,
"id_str": "1890369660643574038",
"conversation_id_str": "1890369660643574038",
"text": null,
"full_text": "Yes! 🍿",
"source": "Twitter for Android<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 1518891280096534528,
"id_str": "1518891280096534528",
"name": "Christian Castellano",
"screen_name": "CCuntamed",
"location": "",
"url": null,
"description": "",
"protected": false,
"verified": true,
"followers_count": 2779,
"friends_count": 888,
"listed_count": 13,
"favourites_count": 163916,
"statuses_count": 83299,
"created_at": "2022-04-26T09:54:58.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/1518891280096534528\/1708732075",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1690131092181766144\/xCMffER3_normal.jpg",
"can_dm": true
},
"quoted_status_id": null,
"quoted_status_id_str": "1890269299287441612",
"is_quote_status": true,
"quoted_status": {
"tweet_created_at": "2025-02-14T05:18:15.000000Z",
"id": 1890269299287441612,
"id_str": "1890269299287441612",
"conversation_id_str": "1890269299287441612",
"text": null,
"full_text": "I am so entertained",
"source": "Twitter for iPhone<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 44196397,
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"location": "",
"url": null,
"description": "Volunteer Tech Support",
"protected": false,
"verified": true,
"followers_count": 217621416,
"friends_count": 1025,
"listed_count": 160003,
"favourites_count": 123356,
"statuses_count": 70462,
"created_at": "2009-06-02T20:12:29.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/44196397\/1726163678",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1874558173962481664\/8HSTqIlD_normal.jpg",
"can_dm": false
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 930,
"reply_count": 8982,
"retweet_count": 6446,
"favorite_count": 114742,
"views_count": 18854541,
"bookmark_count": 1541,
"lang": "en",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"is_pinned": false
},
"retweeted_status": null,
"quote_count": 0,
"reply_count": 0,
"retweet_count": 0,
"favorite_count": 0,
"views_count": 6,
"bookmark_count": 0,
"lang": "und",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"is_pinned": false
},
{
"tweet_created_at": "2025-02-14T11:55:27.000000Z",
"id": 1890369261626945756,
"id_str": "1890369261626945756",
"conversation_id_str": "1890369261626945756",
"text": null,
"full_text": "This is more fun than cleaning up X",
"source": "Twitter for iPhone<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 1488632938249998336,
"id_str": "1488632938249998336",
"name": "Paul Baker",
"screen_name": "PaulBaked4u2see",
"location": "",
"url": null,
"description": "First ever stroke operation that was superb I'm almost normal what ever that is LOL",
"protected": false,
"verified": false,
"followers_count": 519,
"friends_count": 284,
"listed_count": 1,
"favourites_count": 3892,
"statuses_count": 7744,
"created_at": "2022-02-01T21:59:22.000000Z",
"profile_banner_url": null,
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1488633482502971395\/Tl0Ljr30_normal.jpg",
"can_dm": true
},
"quoted_status_id": null,
"quoted_status_id_str": "1890269299287441612",
"is_quote_status": true,
"quoted_status": {
"tweet_created_at": "2025-02-14T05:18:15.000000Z",
"id": 1890269299287441612,
"id_str": "1890269299287441612",
"conversation_id_str": "1890269299287441612",
"text": null,
"full_text": "I am so entertained",
"source": "Twitter for iPhone<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 44196397,
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"location": "",
"url": null,
"description": "Volunteer Tech Support",
"protected": false,
"verified": true,
"followers_count": 217621416,
"friends_count": 1025,
"listed_count": 160003,
"favourites_count": 123356,
"statuses_count": 70462,
"created_at": "2009-06-02T20:12:29.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/44196397\/1726163678",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1874558173962481664\/8HSTqIlD_normal.jpg",
"can_dm": false
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 930,
"reply_count": 8982,
"retweet_count": 6446,
"favorite_count": 114742,
"views_count": 18854541,
"bookmark_count": 1541,
"lang": "en",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"is_pinned": false
},
"retweeted_status": null,
"quote_count": 0,
"reply_count": 0,
"retweet_count": 0,
"favorite_count": 1,
"views_count": 5,
"bookmark_count": 0,
"lang": "en",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"is_pinned": false
},
{
"tweet_created_at": "2025-02-14T11:55:02.000000Z",
"id": 1890369153044709851,
"id_str": "1890369153044709851",
"conversation_id_str": "1890369153044709851",
"text": null,
"full_text": "Nada mejor que una mente brillante evitando aburrirse",
"source": "Twitter for Android<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 145869662,
"id_str": "145869662",
"name": "Malena 🎗️ 🇮🇱 🇺🇦",
"screen_name": "malepeche",
"location": "",
"url": null,
"description": "",
"protected": false,
"verified": false,
"followers_count": 562,
"friends_count": 1583,
"listed_count": 7,
"favourites_count": 41992,
"statuses_count": 19170,
"created_at": "2010-05-20T02:29:31.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/145869662\/1705762635",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1825241627624935424\/66ox7tmO_normal.jpg",
"can_dm": true
},
"quoted_status_id": null,
"quoted_status_id_str": "1890269299287441612",
"is_quote_status": true,
"quoted_status": {
"tweet_created_at": "2025-02-14T05:18:15.000000Z",
"id": 1890269299287441612,
"id_str": "1890269299287441612",
"conversation_id_str": "1890269299287441612",
"text": null,
"full_text": "I am so entertained",
"source": "Twitter for iPhone<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 44196397,
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"location": "",
"url": null,
"description": "Volunteer Tech Support",
"protected": false,
"verified": true,
"followers_count": 217621416,
"friends_count": 1025,
"listed_count": 160003,
"favourites_count": 123356,
"statuses_count": 70462,
"created_at": "2009-06-02T20:12:29.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/44196397\/1726163678",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1874558173962481664\/8HSTqIlD_normal.jpg",
"can_dm": false
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 930,
"reply_count": 8982,
"retweet_count": 6446,
"favorite_count": 114742,
"views_count": 18854541,
"bookmark_count": 1541,
"lang": "en",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"is_pinned": false
},
"retweeted_status": null,
"quote_count": 0,
"reply_count": 0,
"retweet_count": 0,
"favorite_count": 0,
"views_count": 8,
"bookmark_count": 0,
"lang": "es",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"is_pinned": false
},
{
"tweet_created_at": "2025-02-14T11:53:56.000000Z",
"id": 1890368875935486434,
"id_str": "1890368875935486434",
"conversation_id_str": "1890368875935486434",
"text": null,
"full_text": "#MeToo",
"source": "Twitter Web App<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 1524939431634935818,
"id_str": "1524939431634935818",
"name": "Don Juan Dosan",
"screen_name": "donjuandosan",
"location": "",
"url": null,
"description": "Let’s continue looking deep into nature. Dream, learn, create, and inspire.",
"protected": false,
"verified": true,
"followers_count": 188,
"friends_count": 682,
"listed_count": 0,
"favourites_count": 7922,
"statuses_count": 2290,
"created_at": "2022-05-13T02:28:02.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/1524939431634935818\/1699116658",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1863730674030567424\/vSv00lcQ_normal.jpg",
"can_dm": true
},
"quoted_status_id": null,
"quoted_status_id_str": "1890269299287441612",
"is_quote_status": true,
"quoted_status": {
"tweet_created_at": "2025-02-14T05:18:15.000000Z",
"id": 1890269299287441612,
"id_str": "1890269299287441612",
"conversation_id_str": "1890269299287441612",
"text": null,
"full_text": "I am so entertained",
"source": "Twitter for iPhone<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 44196397,
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"location": "",
"url": null,
"description": "Volunteer Tech Support",
"protected": false,
"verified": true,
"followers_count": 217621416,
"friends_count": 1025,
"listed_count": 160003,
"favourites_count": 123356,
"statuses_count": 70462,
"created_at": "2009-06-02T20:12:29.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/44196397\/1726163678",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1874558173962481664\/8HSTqIlD_normal.jpg",
"can_dm": false
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 930,
"reply_count": 8982,
"retweet_count": 6446,
"favorite_count": 114742,
"views_count": 18854541,
"bookmark_count": 1541,
"lang": "en",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"is_pinned": false
},
"retweeted_status": null,
"quote_count": 0,
"reply_count": 0,
"retweet_count": 0,
"favorite_count": 0,
"views_count": 8,
"bookmark_count": 0,
"lang": "qht",
"entities": {
"hashtags": [
{
"indices": [
0,
6
],
"text": "MeToo"
}
],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"is_pinned": false
},
{
"tweet_created_at": "2025-02-14T11:53:35.000000Z",
"id": 1890368789247639700,
"id_str": "1890368789247639700",
"conversation_id_str": "1890368789247639700",
"text": null,
"full_text": "https:\/\/t.co\/FfzPXsccvs",
"source": "Twitter for iPhone<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 787753885,
"id_str": "787753885",
"name": "June 🙏✝️📿❤️🔥",
"screen_name": "arribas_june",
"location": "Providence, RI",
"url": null,
"description": "We are given the choice to love or hate, love goodness and hate evil, but first we have to see the difference. Better to light a candle than curse the darkness.",
"protected": false,
"verified": false,
"followers_count": 6284,
"friends_count": 6963,
"listed_count": 8,
"favourites_count": 159820,
"statuses_count": 217821,
"created_at": "2012-08-28T20:02:23.000000Z",
"profile_banner_url": null,
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1531993323824631815\/gz7FawoZ_normal.jpg",
"can_dm": false
},
"quoted_status_id": null,
"quoted_status_id_str": "1890269299287441612",
"is_quote_status": true,
"quoted_status": {
"tweet_created_at": "2025-02-14T05:18:15.000000Z",
"id": 1890269299287441612,
"id_str": "1890269299287441612",
"conversation_id_str": "1890269299287441612",
"text": null,
"full_text": "I am so entertained",
"source": "Twitter for iPhone<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 44196397,
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"location": "",
"url": null,
"description": "Volunteer Tech Support",
"protected": false,
"verified": true,
"followers_count": 217621416,
"friends_count": 1025,
"listed_count": 160003,
"favourites_count": 123356,
"statuses_count": 70462,
"created_at": "2009-06-02T20:12:29.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/44196397\/1726163678",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1874558173962481664\/8HSTqIlD_normal.jpg",
"can_dm": false
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 930,
"reply_count": 8982,
"retweet_count": 6446,
"favorite_count": 114742,
"views_count": 18854541,
"bookmark_count": 1541,
"lang": "en",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"is_pinned": false
},
"retweeted_status": null,
"quote_count": 0,
"reply_count": 0,
"retweet_count": 0,
"favorite_count": 0,
"views_count": 8,
"bookmark_count": 0,
"lang": "zxx",
"entities": {
"hashtags": [],
"media": [
{
"display_url": "pic.x.com\/FfzPXsccvs",
"expanded_url": "https:\/\/x.com\/arribas_june\/status\/1890368789247639700\/photo\/1",
"ext_alt_text": "Dead Poets Society Neil Perry GIF",
"id_str": "1890368783874682880",
"indices": [
0,
23
],
"media_key": "16_1890368783874682880",
"media_url_https": "https:\/\/pbs.twimg.com\/tweet_video_thumb\/GjvwZLFWcAAnbsq.jpg",
"type": "animated_gif",
"url": "https:\/\/t.co\/FfzPXsccvs",
"ext_media_availability": {
"status": "Available"
},
"sizes": {
"large": {
"h": 498,
"w": 498,
"resize": "fit"
},
"medium": {
"h": 498,
"w": 498,
"resize": "fit"
},
"small": {
"h": 498,
"w": 498,
"resize": "fit"
},
"thumb": {
"h": 150,
"w": 150,
"resize": "crop"
}
},
"original_info": {
"height": 498,
"width": 498,
"focus_rects": []
},
"video_info": {
"aspect_ratio": [
1,
1
],
"variants": [
{
"bitrate": 0,
"content_type": "video\/mp4",
"url": "https:\/\/video.twimg.com\/tweet_video\/GjvwZLFWcAAnbsq.mp4"
}
]
},
"media_results": {
"result": {
"media_key": "16_1890368783874682880"
}
}
},
{
"display_url": "pic.x.com\/FfzPXsccvs",
"expanded_url": "https:\/\/x.com\/arribas_june\/status\/1890368789247639700\/photo\/1",
"ext_alt_text": "Dead Poets Society Neil Perry GIF",
"id_str": "1890368783874682880",
"indices": [
0,
23
],
"media_key": "16_1890368783874682880",
"media_url_https": "https:\/\/pbs.twimg.com\/tweet_video_thumb\/GjvwZLFWcAAnbsq.jpg",
"type": "animated_gif",
"url": "https:\/\/t.co\/FfzPXsccvs",
"ext_media_availability": {
"status": "Available"
},
"sizes": {
"large": {
"h": 498,
"w": 498,
"resize": "fit"
},
"medium": {
"h": 498,
"w": 498,
"resize": "fit"
},
"small": {
"h": 498,
"w": 498,
"resize": "fit"
},
"thumb": {
"h": 150,
"w": 150,
"resize": "crop"
}
},
"original_info": {
"height": 498,
"width": 498,
"focus_rects": []
},
"video_info": {
"aspect_ratio": [
1,
1
],
"variants": [
{
"bitrate": 0,
"content_type": "video\/mp4",
"url": "https:\/\/video.twimg.com\/tweet_video\/GjvwZLFWcAAnbsq.mp4"
}
]
},
"media_results": {
"result": {
"media_key": "16_1890368783874682880"
}
}
}
],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"is_pinned": false
},
{
"tweet_created_at": "2025-02-14T11:52:33.000000Z",
"id": 1890368528194158617,
"id_str": "1890368528194158617",
"conversation_id_str": "1890368528194158617",
"text": null,
"full_text": "We need u in UK 🇬🇧 Elon xxx",
"source": "Twitter for Android<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 1193205311668211717,
"id_str": "1193205311668211717",
"name": "Helen",
"screen_name": "HelenMi84029314",
"location": "",
"url": null,
"description": "My son my life,will always stand up for what is right and fair 🇬🇧 love boxing rugby football,ballet opera if u DM me I will block u",
"protected": false,
"verified": false,
"followers_count": 12464,
"friends_count": 13564,
"listed_count": 17,
"favourites_count": 107253,
"statuses_count": 82508,
"created_at": "2019-11-09T16:35:04.000000Z",
"profile_banner_url": null,
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1683198438224064512\/GwBzZ9kc_normal.jpg",
"can_dm": false
},
"quoted_status_id": null,
"quoted_status_id_str": "1890269299287441612",
"is_quote_status": true,
"quoted_status": {
"tweet_created_at": "2025-02-14T05:18:15.000000Z",
"id": 1890269299287441612,
"id_str": "1890269299287441612",
"conversation_id_str": "1890269299287441612",
"text": null,
"full_text": "I am so entertained",
"source": "Twitter for iPhone<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 44196397,
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"location": "",
"url": null,
"description": "Volunteer Tech Support",
"protected": false,
"verified": true,
"followers_count": 217621416,
"friends_count": 1025,
"listed_count": 160003,
"favourites_count": 123356,
"statuses_count": 70462,
"created_at": "2009-06-02T20:12:29.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/44196397\/1726163678",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1874558173962481664\/8HSTqIlD_normal.jpg",
"can_dm": false
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 930,
"reply_count": 8982,
"retweet_count": 6446,
"favorite_count": 114742,
"views_count": 18854541,
"bookmark_count": 1541,
"lang": "en",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"is_pinned": false
},
"retweeted_status": null,
"quote_count": 0,
"reply_count": 0,
"retweet_count": 0,
"favorite_count": 0,
"views_count": 28,
"bookmark_count": 0,
"lang": "en",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"is_pinned": false
},
{
"tweet_created_at": "2025-02-14T11:51:50.000000Z",
"id": 1890368351106482267,
"id_str": "1890368351106482267",
"conversation_id_str": "1890368351106482267",
"text": null,
"full_text": "😂😅",
"source": "Twitter for iPhone<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 971442673310715904,
"id_str": "971442673310715904",
"name": "AJ",
"screen_name": "AJinscribe",
"location": "Bengaluru, India",
"url": null,
"description": "In search of life!! चरैवेति चरैवेति ।।२४– Views are personal बातें ज़िंदगी से जोड़कर बताता हूँ ॥",
"protected": false,
"verified": false,
"followers_count": 177,
"friends_count": 797,
"listed_count": 0,
"favourites_count": 67946,
"statuses_count": 11747,
"created_at": "2018-03-07T17:49:16.000000Z",
"profile_banner_url": null,
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1566257848740622337\/ubw35hRW_normal.jpg",
"can_dm": true
},
"quoted_status_id": null,
"quoted_status_id_str": "1890269299287441612",
"is_quote_status": true,
"quoted_status": {
"tweet_created_at": "2025-02-14T05:18:15.000000Z",
"id": 1890269299287441612,
"id_str": "1890269299287441612",
"conversation_id_str": "1890269299287441612",
"text": null,
"full_text": "I am so entertained",
"source": "Twitter for iPhone<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 44196397,
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"location": "",
"url": null,
"description": "Volunteer Tech Support",
"protected": false,
"verified": true,
"followers_count": 217621416,
"friends_count": 1025,
"listed_count": 160003,
"favourites_count": 123356,
"statuses_count": 70462,
"created_at": "2009-06-02T20:12:29.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/44196397\/1726163678",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1874558173962481664\/8HSTqIlD_normal.jpg",
"can_dm": false
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 930,
"reply_count": 8982,
"retweet_count": 6446,
"favorite_count": 114742,
"views_count": 18854541,
"bookmark_count": 1541,
"lang": "en",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"is_pinned": false
},
"retweeted_status": null,
"quote_count": 0,
"reply_count": 0,
"retweet_count": 0,
"favorite_count": 0,
"views_count": 2,
"bookmark_count": 0,
"lang": "art",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"is_pinned": false
},
{
"tweet_created_at": "2025-02-14T11:51:37.000000Z",
"id": 1890368293355077983,
"id_str": "1890368293355077983",
"conversation_id_str": "1890368293355077983",
"text": null,
"full_text": "Cuando instalas Angry birds en tu celu",
"source": "Twitter for Android<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 54119173,
"id_str": "54119173",
"name": "Ernesto Carlin",
"screen_name": "tanquedecasma",
"location": "Lima, Peru",
"url": "http:\/\/tanquedecasma.blogspot.com\/",
"description": "Periodista hincha del Sport Boys. Opiniones personales.",
"protected": false,
"verified": true,
"followers_count": 5069,
"friends_count": 3630,
"listed_count": 68,
"favourites_count": 103053,
"statuses_count": 99183,
"created_at": "2009-07-06T04:54:22.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/54119173\/1588043751",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1254971119167250433\/Exy6CmV__normal.jpg",
"can_dm": false
},
"quoted_status_id": null,
"quoted_status_id_str": "1890269299287441612",
"is_quote_status": true,
"quoted_status": {
"tweet_created_at": "2025-02-14T05:18:15.000000Z",
"id": 1890269299287441612,
"id_str": "1890269299287441612",
"conversation_id_str": "1890269299287441612",
"text": null,
"full_text": "I am so entertained",
"source": "Twitter for iPhone<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 44196397,
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"location": "",
"url": null,
"description": "Volunteer Tech Support",
"protected": false,
"verified": true,
"followers_count": 217621416,
"friends_count": 1025,
"listed_count": 160003,
"favourites_count": 123356,
"statuses_count": 70462,
"created_at": "2009-06-02T20:12:29.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/44196397\/1726163678",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1874558173962481664\/8HSTqIlD_normal.jpg",
"can_dm": false
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 930,
"reply_count": 8982,
"retweet_count": 6446,
"favorite_count": 114742,
"views_count": 18854541,
"bookmark_count": 1541,
"lang": "en",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"is_pinned": false
},
"retweeted_status": null,
"quote_count": 0,
"reply_count": 0,
"retweet_count": 0,
"favorite_count": 0,
"views_count": 7,
"bookmark_count": 0,
"lang": "es",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"is_pinned": false
},
{
"tweet_created_at": "2025-02-14T11:51:03.000000Z",
"id": 1890368150752858510,
"id_str": "1890368150752858510",
"conversation_id_str": "1890368150752858510",
"text": null,
"full_text": "🥳🫡🤠🤪😄🥳",
"source": "Twitter Web App<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 2943351271,
"id_str": "2943351271",
"name": ".♏ìçհąҽӀ.",
"screen_name": "meep_meep_speed",
"location": "Canada",
"url": null,
"description": "I stand behind what I perceive to be positive influence on mankind and leaders who put this forward to society and the world. \nCanadian Métis - Cree",
"protected": false,
"verified": true,
"followers_count": 1416,
"friends_count": 3916,
"listed_count": 2,
"favourites_count": 179337,
"statuses_count": 104813,
"created_at": "2014-12-26T00:54:12.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/2943351271\/1687790215",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1666478648872824832\/KukacJb6_normal.jpg",
"can_dm": true
},
"quoted_status_id": null,
"quoted_status_id_str": "1890269299287441612",
"is_quote_status": true,
"quoted_status": {
"tweet_created_at": "2025-02-14T05:18:15.000000Z",
"id": 1890269299287441612,
"id_str": "1890269299287441612",
"conversation_id_str": "1890269299287441612",
"text": null,
"full_text": "I am so entertained",
"source": "Twitter for iPhone<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 44196397,
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"location": "",
"url": null,
"description": "Volunteer Tech Support",
"protected": false,
"verified": true,
"followers_count": 217621416,
"friends_count": 1025,
"listed_count": 160003,
"favourites_count": 123356,
"statuses_count": 70462,
"created_at": "2009-06-02T20:12:29.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/44196397\/1726163678",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1874558173962481664\/8HSTqIlD_normal.jpg",
"can_dm": false
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 930,
"reply_count": 8982,
"retweet_count": 6446,
"favorite_count": 114742,
"views_count": 18854541,
"bookmark_count": 1541,
"lang": "en",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"is_pinned": false
},
"retweeted_status": null,
"quote_count": 0,
"reply_count": 0,
"retweet_count": 0,
"favorite_count": 0,
"views_count": 1,
"bookmark_count": 0,
"lang": "art",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"is_pinned": false
},
{
"tweet_created_at": "2025-02-14T11:50:45.000000Z",
"id": 1890368077461692633,
"id_str": "1890368077461692633",
"conversation_id_str": "1890368077461692633",
"text": null,
"full_text": "You can afford to be…don’t rub it in our faces.",
"source": "Twitter for iPhone<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 44127423,
"id_str": "44127423",
"name": "Calmnotes",
"screen_name": "Calmnotes",
"location": "USA",
"url": "http:\/\/fuckerscameaftermychildren.com",
"description": "Kiss my Everlovin' American Woman Ass - I exposed the sex, lies and corruption here on the outskirts of the Capitol DC Beltway, in my new com near Ft. Detrick",
"protected": false,
"verified": false,
"followers_count": 906,
"friends_count": 1323,
"listed_count": 1,
"favourites_count": 33164,
"statuses_count": 38751,
"created_at": "2009-06-02T14:28:11.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/44127423\/1545152371",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1130655183233527808\/jKurMet9_normal.jpg",
"can_dm": true
},
"quoted_status_id": null,
"quoted_status_id_str": "1890269299287441612",
"is_quote_status": true,
"quoted_status": {
"tweet_created_at": "2025-02-14T05:18:15.000000Z",
"id": 1890269299287441612,
"id_str": "1890269299287441612",
"conversation_id_str": "1890269299287441612",
"text": null,
"full_text": "I am so entertained",
"source": "Twitter for iPhone<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 44196397,
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"location": "",
"url": null,
"description": "Volunteer Tech Support",
"protected": false,
"verified": true,
"followers_count": 217621416,
"friends_count": 1025,
"listed_count": 160003,
"favourites_count": 123356,
"statuses_count": 70462,
"created_at": "2009-06-02T20:12:29.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/44196397\/1726163678",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1874558173962481664\/8HSTqIlD_normal.jpg",
"can_dm": false
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 930,
"reply_count": 8982,
"retweet_count": 6446,
"favorite_count": 114742,
"views_count": 18854541,
"bookmark_count": 1541,
"lang": "en",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"is_pinned": false
},
"retweeted_status": null,
"quote_count": 0,
"reply_count": 0,
"retweet_count": 0,
"favorite_count": 0,
"views_count": 2,
"bookmark_count": 0,
"lang": "en",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"is_pinned": false
},
{
"tweet_created_at": "2025-02-14T11:50:07.000000Z",
"id": 1890367915859280319,
"id_str": "1890367915859280319",
"conversation_id_str": "1890367915859280319",
"text": null,
"full_text": "Stories that have hope of ending well are the most entertaining of all. And also the most suspenseful.",
"source": "Twitter Web App<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 14757562,
"id_str": "14757562",
"name": "jeffsuever",
"screen_name": "jeffsuever",
"location": "West Palm Beach, United States",
"url": "http:\/\/www.jeffsuever.com",
"description": "",
"protected": false,
"verified": true,
"followers_count": 125,
"friends_count": 159,
"listed_count": 5,
"favourites_count": 178,
"statuses_count": 2762,
"created_at": "2008-05-13T11:42:33.000000Z",
"profile_banner_url": null,
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/281988653\/Jeff_normal.jpg",
"can_dm": true
},
"quoted_status_id": null,
"quoted_status_id_str": "1890269299287441612",
"is_quote_status": true,
"quoted_status": {
"tweet_created_at": "2025-02-14T05:18:15.000000Z",
"id": 1890269299287441612,
"id_str": "1890269299287441612",
"conversation_id_str": "1890269299287441612",
"text": null,
"full_text": "I am so entertained",
"source": "Twitter for iPhone<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 44196397,
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"location": "",
"url": null,
"description": "Volunteer Tech Support",
"protected": false,
"verified": true,
"followers_count": 217621416,
"friends_count": 1025,
"listed_count": 160003,
"favourites_count": 123356,
"statuses_count": 70462,
"created_at": "2009-06-02T20:12:29.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/44196397\/1726163678",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1874558173962481664\/8HSTqIlD_normal.jpg",
"can_dm": false
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 930,
"reply_count": 8982,
"retweet_count": 6446,
"favorite_count": 114742,
"views_count": 18854541,
"bookmark_count": 1541,
"lang": "en",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"is_pinned": false
},
"retweeted_status": null,
"quote_count": 0,
"reply_count": 0,
"retweet_count": 0,
"favorite_count": 0,
"views_count": 3,
"bookmark_count": 0,
"lang": "en",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"is_pinned": false
},
{
"tweet_created_at": "2025-02-14T11:49:44.000000Z",
"id": 1890367822812901613,
"id_str": "1890367822812901613",
"conversation_id_str": "1890367822812901613",
"text": null,
"full_text": "Multichoice was intertained as well",
"source": "Twitter for Android<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 1846264184264097792,
"id_str": "1846264184264097792",
"name": "N9N6lAN6lA N38l068",
"screen_name": "Nonhlanhla44922",
"location": "",
"url": null,
"description": "9 3th84 833886 👑👑👑 💜💜💜👑👑👑",
"protected": false,
"verified": false,
"followers_count": 89,
"friends_count": 113,
"listed_count": 1,
"favourites_count": 5449,
"statuses_count": 6889,
"created_at": "2024-10-15T18:58:24.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/1846264184264097792\/1730180283",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1851136394715930624\/WGkLJT60_normal.jpg",
"can_dm": false
},
"quoted_status_id": null,
"quoted_status_id_str": "1890269299287441612",
"is_quote_status": true,
"quoted_status": {
"tweet_created_at": "2025-02-14T05:18:15.000000Z",
"id": 1890269299287441612,
"id_str": "1890269299287441612",
"conversation_id_str": "1890269299287441612",
"text": null,
"full_text": "I am so entertained",
"source": "Twitter for iPhone<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 44196397,
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"location": "",
"url": null,
"description": "Volunteer Tech Support",
"protected": false,
"verified": true,
"followers_count": 217621416,
"friends_count": 1025,
"listed_count": 160003,
"favourites_count": 123356,
"statuses_count": 70462,
"created_at": "2009-06-02T20:12:29.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/44196397\/1726163678",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1874558173962481664\/8HSTqIlD_normal.jpg",
"can_dm": false
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 930,
"reply_count": 8982,
"retweet_count": 6446,
"favorite_count": 114742,
"views_count": 18854541,
"bookmark_count": 1541,
"lang": "en",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"is_pinned": false
},
"retweeted_status": null,
"quote_count": 0,
"reply_count": 0,
"retweet_count": 0,
"favorite_count": 0,
"views_count": 2,
"bookmark_count": 0,
"lang": "en",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"is_pinned": false
},
{
"tweet_created_at": "2025-02-14T11:48:46.000000Z",
"id": 1890367576376529081,
"id_str": "1890367576376529081",
"conversation_id_str": "1890367576376529081",
"text": null,
"full_text": "Concur: https:\/\/t.co\/Rp9BRD1cGl",
"source": "Twitter Web App<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 1651600012223160322,
"id_str": "1651600012223160322",
"name": "Redaction Jackson",
"screen_name": "RedactedJackson",
"location": "",
"url": null,
"description": "Freedom? Transparency? Accountability? F**k that sh*t. Let's redact!",
"protected": false,
"verified": true,
"followers_count": 443,
"friends_count": 787,
"listed_count": 2,
"favourites_count": 8580,
"statuses_count": 9144,
"created_at": "2023-04-27T14:51:47.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/1651600012223160322\/1682607640",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1651600502319185920\/5BqmBdC6_normal.jpg",
"can_dm": true
},
"quoted_status_id": null,
"quoted_status_id_str": "1890269299287441612",
"is_quote_status": true,
"quoted_status": {
"tweet_created_at": "2025-02-14T05:18:15.000000Z",
"id": 1890269299287441612,
"id_str": "1890269299287441612",
"conversation_id_str": "1890269299287441612",
"text": null,
"full_text": "I am so entertained",
"source": "Twitter for iPhone<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 44196397,
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"location": "",
"url": null,
"description": "Volunteer Tech Support",
"protected": false,
"verified": true,
"followers_count": 217621416,
"friends_count": 1025,
"listed_count": 160003,
"favourites_count": 123356,
"statuses_count": 70462,
"created_at": "2009-06-02T20:12:29.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/44196397\/1726163678",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1874558173962481664\/8HSTqIlD_normal.jpg",
"can_dm": false
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 930,
"reply_count": 8982,
"retweet_count": 6446,
"favorite_count": 114742,
"views_count": 18854541,
"bookmark_count": 1541,
"lang": "en",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"is_pinned": false
},
"retweeted_status": null,
"quote_count": 0,
"reply_count": 0,
"retweet_count": 0,
"favorite_count": 0,
"views_count": 9,
"bookmark_count": 0,
"lang": "es",
"entities": {
"hashtags": [],
"media": [
{
"display_url": "pic.x.com\/Rp9BRD1cGl",
"expanded_url": "https:\/\/x.com\/RedactedJackson\/status\/1890367576376529081\/photo\/1",
"ext_alt_text": "Are You Not Entertained Maximus GIF",
"id_str": "1890367571184033792",
"indices": [
8,
31
],
"media_key": "16_1890367571184033792",
"media_url_https": "https:\/\/pbs.twimg.com\/tweet_video_thumb\/GjvvSldXoAA8Q0I.jpg",
"type": "animated_gif",
"url": "https:\/\/t.co\/Rp9BRD1cGl",
"ext_media_availability": {
"status": "Available"
},
"sizes": {
"large": {
"h": 280,
"w": 498,
"resize": "fit"
},
"medium": {
"h": 280,
"w": 498,
"resize": "fit"
},
"small": {
"h": 280,
"w": 498,
"resize": "fit"
},
"thumb": {
"h": 150,
"w": 150,
"resize": "crop"
}
},
"original_info": {
"height": 280,
"width": 498,
"focus_rects": []
},
"video_info": {
"aspect_ratio": [
249,
140
],
"variants": [
{
"bitrate": 0,
"content_type": "video\/mp4",
"url": "https:\/\/video.twimg.com\/tweet_video\/GjvvSldXoAA8Q0I.mp4"
}
]
},
"media_results": {
"result": {
"media_key": "16_1890367571184033792"
}
}
},
{
"display_url": "pic.x.com\/Rp9BRD1cGl",
"expanded_url": "https:\/\/x.com\/RedactedJackson\/status\/1890367576376529081\/photo\/1",
"ext_alt_text": "Are You Not Entertained Maximus GIF",
"id_str": "1890367571184033792",
"indices": [
8,
31
],
"media_key": "16_1890367571184033792",
"media_url_https": "https:\/\/pbs.twimg.com\/tweet_video_thumb\/GjvvSldXoAA8Q0I.jpg",
"type": "animated_gif",
"url": "https:\/\/t.co\/Rp9BRD1cGl",
"ext_media_availability": {
"status": "Available"
},
"sizes": {
"large": {
"h": 280,
"w": 498,
"resize": "fit"
},
"medium": {
"h": 280,
"w": 498,
"resize": "fit"
},
"small": {
"h": 280,
"w": 498,
"resize": "fit"
},
"thumb": {
"h": 150,
"w": 150,
"resize": "crop"
}
},
"original_info": {
"height": 280,
"width": 498,
"focus_rects": []
},
"video_info": {
"aspect_ratio": [
249,
140
],
"variants": [
{
"bitrate": 0,
"content_type": "video\/mp4",
"url": "https:\/\/video.twimg.com\/tweet_video\/GjvvSldXoAA8Q0I.mp4"
}
]
},
"media_results": {
"result": {
"media_key": "16_1890367571184033792"
}
}
}
],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"is_pinned": false
},
{
"tweet_created_at": "2025-02-14T11:48:11.000000Z",
"id": 1890367429244571867,
"id_str": "1890367429244571867",
"conversation_id_str": "1890367429244571867",
"text": null,
"full_text": "😁",
"source": "Twitter for Android<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 80341066,
"id_str": "80341066",
"name": "Cristina Dobre",
"screen_name": "cristinadobre",
"location": "Romania, Bucharest",
"url": null,
"description": "Michael Jackson : \"When all life is seen as divine, everyone grows wings.”\n\nNO GROUPS! NO LISTS! NO PORN!",
"protected": false,
"verified": false,
"followers_count": 5375,
"friends_count": 2825,
"listed_count": 44,
"favourites_count": 1083956,
"statuses_count": 448298,
"created_at": "2009-10-06T16:24:38.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/80341066\/1510847619",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1358252748681203716\/RXu3dF3G_normal.jpg",
"can_dm": false
},
"quoted_status_id": null,
"quoted_status_id_str": "1890269299287441612",
"is_quote_status": true,
"quoted_status": {
"tweet_created_at": "2025-02-14T05:18:15.000000Z",
"id": 1890269299287441612,
"id_str": "1890269299287441612",
"conversation_id_str": "1890269299287441612",
"text": null,
"full_text": "I am so entertained",
"source": "Twitter for iPhone<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 44196397,
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"location": "",
"url": null,
"description": "Volunteer Tech Support",
"protected": false,
"verified": true,
"followers_count": 217621416,
"friends_count": 1025,
"listed_count": 160003,
"favourites_count": 123356,
"statuses_count": 70462,
"created_at": "2009-06-02T20:12:29.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/44196397\/1726163678",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1874558173962481664\/8HSTqIlD_normal.jpg",
"can_dm": false
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 930,
"reply_count": 8982,
"retweet_count": 6446,
"favorite_count": 114742,
"views_count": 18854541,
"bookmark_count": 1541,
"lang": "en",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"is_pinned": false
},
"retweeted_status": null,
"quote_count": 0,
"reply_count": 0,
"retweet_count": 0,
"favorite_count": 1,
"views_count": 11,
"bookmark_count": 0,
"lang": "art",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"is_pinned": false
},
{
"tweet_created_at": "2025-02-14T11:46:38.000000Z",
"id": 1890367042013778423,
"id_str": "1890367042013778423",
"conversation_id_str": "1890367042013778423",
"text": null,
"full_text": "I like it when you are so happy , can you kindly please 🙏 give me only 1 million there.",
"source": "Twitter for Android<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 270786956,
"id_str": "270786956",
"name": "Dawg Fada 🐕",
"screen_name": "Dawgzen",
"location": "portugal and vaal",
"url": null,
"description": "bio's are overrated.",
"protected": false,
"verified": false,
"followers_count": 1538,
"friends_count": 2417,
"listed_count": 4,
"favourites_count": 2001,
"statuses_count": 11297,
"created_at": "2011-03-23T07:40:53.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/270786956\/1697913442",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1681041630931943424\/-u97o-gs_normal.png",
"can_dm": false
},
"quoted_status_id": null,
"quoted_status_id_str": "1890269299287441612",
"is_quote_status": true,
"quoted_status": {
"tweet_created_at": "2025-02-14T05:18:15.000000Z",
"id": 1890269299287441612,
"id_str": "1890269299287441612",
"conversation_id_str": "1890269299287441612",
"text": null,
"full_text": "I am so entertained",
"source": "Twitter for iPhone<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 44196397,
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"location": "",
"url": null,
"description": "Volunteer Tech Support",
"protected": false,
"verified": true,
"followers_count": 217621416,
"friends_count": 1025,
"listed_count": 160003,
"favourites_count": 123356,
"statuses_count": 70462,
"created_at": "2009-06-02T20:12:29.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/44196397\/1726163678",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1874558173962481664\/8HSTqIlD_normal.jpg",
"can_dm": false
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 930,
"reply_count": 8982,
"retweet_count": 6446,
"favorite_count": 114742,
"views_count": 18854541,
"bookmark_count": 1541,
"lang": "en",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"is_pinned": false
},
"retweeted_status": null,
"quote_count": 0,
"reply_count": 1,
"retweet_count": 0,
"favorite_count": 0,
"views_count": 20,
"bookmark_count": 0,
"lang": "en",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"is_pinned": false
},
{
"tweet_created_at": "2025-02-14T11:46:35.000000Z",
"id": 1890367029405696120,
"id_str": "1890367029405696120",
"conversation_id_str": "1890367029405696120",
"text": null,
"full_text": "$$$4U got bro moving wild.",
"source": "Twitter for iPhone<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 821263609,
"id_str": "821263609",
"name": "pablito",
"screen_name": "DaSilvaJnr_",
"location": "Makkah Al Mukarrama, Kingdom of Saudi Arabia",
"url": null,
"description": "To the Most High I'm forever indebted.",
"protected": false,
"verified": false,
"followers_count": 1778,
"friends_count": 662,
"listed_count": 20,
"favourites_count": 7305,
"statuses_count": 204961,
"created_at": "2012-09-13T10:22:24.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/821263609\/1538577471",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1847772157373206528\/09ozivvn_normal.jpg",
"can_dm": true
},
"quoted_status_id": null,
"quoted_status_id_str": "1890269299287441612",
"is_quote_status": true,
"quoted_status": {
"tweet_created_at": "2025-02-14T05:18:15.000000Z",
"id": 1890269299287441612,
"id_str": "1890269299287441612",
"conversation_id_str": "1890269299287441612",
"text": null,
"full_text": "I am so entertained",
"source": "Twitter for iPhone<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 44196397,
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"location": "",
"url": null,
"description": "Volunteer Tech Support",
"protected": false,
"verified": true,
"followers_count": 217621416,
"friends_count": 1025,
"listed_count": 160003,
"favourites_count": 123356,
"statuses_count": 70462,
"created_at": "2009-06-02T20:12:29.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/44196397\/1726163678",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1874558173962481664\/8HSTqIlD_normal.jpg",
"can_dm": false
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 930,
"reply_count": 8982,
"retweet_count": 6446,
"favorite_count": 114742,
"views_count": 18854541,
"bookmark_count": 1541,
"lang": "en",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"is_pinned": false
},
"retweeted_status": null,
"quote_count": 0,
"reply_count": 0,
"retweet_count": 0,
"favorite_count": 0,
"views_count": 19,
"bookmark_count": 0,
"lang": "en",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"is_pinned": false
}
],
"next_cursor": "1890367029405696119"
}
```
###### 402
```json
{
"status": "error",
"message": "Insufficient balance"
}
```
###### 404
```json
{
"status": "error",
"message": "Tweet not found"
}
```
###### 500
```json
{
"status": "error",
"message": "Failed to fetch data from Twitter"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **402 Payment Required** - not enough credits to perform this request
- **404 Not Found** - requested tweet does not exist
- **422 Unprocessable Content** - validation failed (e.g. one of the required parameters was not provided)
- **500 Internal Error** - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later
#### Related endpoints
- [Get tweet comments](https://docs.socialdata.tools/reference/get-tweet-comments/)
- [Get tweet retweeters](https://docs.socialdata.tools/reference/get-tweet-retweeters/)
- [Verify user retweeted](https://docs.socialdata.tools/social-actions/verify-user-retweeted/)
- [Verify user commented](https://docs.socialdata.tools/social-actions/verify-user-commented/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Pricing](https://docs.socialdata.tools/getting-started/pricing/)
### Data API: Get Tweet Retweeters List - API Reference
Source: [Get Tweet Retweeters List - API Reference](https://docs.socialdata.tools/reference/get-tweet-retweeters/)
This endpoint returns an array of user profiles that retweeted the target tweet identified by `tweet_id`. The profiles are returned in reverse chronological order, with the most recent retweets appearing on the first page.
GET https://api.socialdata.tools/twitter/tweets/{tweet\_id}/retweeted\_by?cursor={cursor}
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Path Parameters
**tweet\_id** `integer` — required
The numerical ID of the desired tweet
Example: 1729591119699124560
#### Query Parameters
**cursor** `string` — optional
Cursor value obtained from next\_cursor response property. Omit this value to retrieve the first page
Example: HBbS87H7icrezjEAAA==
> **Caution**
>
> When using languages where the `tweet_id` value exceeds the default Integer type limit (e.g., JavaScript), you should store `tweet_id` as a String. Use the `id_str` property returned by the API for these values
#### Code Examples
###### curl
```shellscript
curl "https://api.socialdata.tools/twitter/tweets/1625802236571033602/retweeted_by" \
-H 'Authorization: Bearer API_KEY' \
-H 'Accept: application/json'
```
###### JavaScript
```js
const tweetId = '1625802236571033602';
const API_KEY = 'YOUR_API_KEY_HERE';
fetch(`https://api.socialdata.tools/twitter/tweets/${tweetId}/retweeted_by`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Accept': 'application/json'
}
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
tweetId = '1625802236571033602'
API_KEY = 'YOUR_API_KEY_HERE'
url = f'https://api.socialdata.tools/twitter/tweets/{tweetId}/retweeted_by'
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)
```
###### PHP
```php
$tweetId = '1625802236571033602';
$API_KEY = 'YOUR_API_KEY_HERE';
$url = "https://api.socialdata.tools/twitter/tweets/{$tweetId}/retweeted_by";
$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
###### 200
```json
{
"next_cursor": "HBbS87H7icrezjEAAA==",
"users": [
{
"id": 1547124452596523008,
"id_str": "1547124452596523008",
"name": "Gwendal Brossard",
"screen_name": "GwendalBrossard",
"location": "Building",
"url": "https:\/\/t.co\/6o4TTYu7LQ",
"description": "I'm an indie maker building products \ud83d\udc68\u200d\ud83d\udcbb @PaletteBrain\u2506https:\/\/t.co\/BEadk6UDlz \u2728",
"protected": false,
"verified": false,
"followers_count": 3557,
"friends_count": 149,
"listed_count": 41,
"favourites_count": 12425,
"statuses_count": 6778,
"created_at": "2022-07-13T07:43:56.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/1547124452596523008\/1672736091",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1572151372455313409\/qq1yH56d_normal.jpg",
"can_dm": true
},
// ...
]
}
```
###### 402
```json
{
"status": "error",
"message": "Insufficient balance"
}
```
###### 404
```json
{
"status": "error",
"message": "Tweet not found"
}
```
###### 500
```json
{
"status": "error",
"message": "Failed to fetch data from Twitter"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **402 Payment Required** - not enough credits to perform this request
- **404 Not Found** - requested tweet does not exist
- **422 Unprocessable Content** - validation failed (e.g. one of the required parameters was not provided)
- **500 Internal Error** - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later
#### Related endpoints
- [Get tweet comments](https://docs.socialdata.tools/reference/get-tweet-comments/)
- [Get tweet quotes](https://docs.socialdata.tools/reference/get-tweet-quotes/)
- [Verify user retweeted](https://docs.socialdata.tools/social-actions/verify-user-retweeted/)
- [Verify user commented](https://docs.socialdata.tools/social-actions/verify-user-commented/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Pricing](https://docs.socialdata.tools/getting-started/pricing/)
### Data API: Get Tweets in a Twitter Thread - API Reference
Source: [Get Tweets in a Twitter Thread - API Reference](https://docs.socialdata.tools/reference/get-tweet-thread/)
Returns an array of tweets associated with a thread and a `next_cursor` value used to retrieve more pages (if the thread contains more than 30 posts).
GET https://api.socialdata.tools/twitter/thread/{thread\_id}?cursor={cursor}
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Path Parameters
**thread\_id** `integer` — required
The numerical ID of the desired thread
Example: 1729591119699124560
#### Query Parameters
**cursor** `string` — optional
Cursor value obtained from next\_cursor response property
Example: PAAAAPAtPBwcFoCAsrHQ6pOAKxUC...
> **Caution**
>
> When using languages where the `id` value exceeds the default Integer type limit (e.g., JavaScript), you should store `id` as a String. Use the `id_str` property returned by the API for these values
#### Code Examples
###### curl
```shellscript
curl "https://api.socialdata.tools/twitter/thread/1549281861687451648" \
-H 'Authorization: Bearer API_KEY' \
-H 'Accept: application/json'
```
###### JavaScript
```js
const threadId = '1549281861687451648';
const API_KEY = 'YOUR_API_KEY_HERE';
fetch(`https://api.socialdata.tools/twitter/thread/${threadId}`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Accept': 'application/json'
}
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
threadId = '1549281861687451648'
API_KEY = 'YOUR_API_KEY_HERE'
url = f'https://api.socialdata.tools/twitter/thread/{threadId}'
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)
```
###### PHP
```php
$threadId = '1549281861687451648';
$API_KEY = 'YOUR_API_KEY_HERE';
$url = "https://api.socialdata.tools/twitter/thread/{$threadId}";
$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
###### 200
```json
{
"tweets": [
{
"tweet_created_at": "2022-07-19T06:35:54+00:00",
"id": 1549281861687451648,
"id_str": "1549281861687451648",
"text": null,
"full_text": "100 tips I learned growing an iOS app to ~$5M in sales in 3 yrs, going through YC 1.5 times, and co-founding @Superwall 👇",
"source": "chirr.app<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 15118774,
"id_str": "15118774",
"name": "Jake Mor",
"screen_name": "jakemor",
"location": "New York, USA",
"url": "http:\/\/superwall.com",
"description": "CEO @Superwall — build & test paywalls without shipping updates. Past: Founder @FitnessAI_ (acquired). YC W20 & S21",
"protected": false,
"verified": true,
"followers_count": 5423,
"friends_count": 556,
"listed_count": 95,
"favourites_count": 1161,
"statuses_count": 1683,
"created_at": "2008-06-14T18:37:41+00:00",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/15118774\/1636564314",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1167559170540875777\/nRn7p8em_normal.jpg",
"can_dm": true
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 73,
"reply_count": 105,
"retweet_count": 492,
"favorite_count": 9419,
"views_count": null,
"bookmark_count": 4614,
"lang": "en",
"entities": {
"user_mentions": [
{
"id_str": "1427520876325613571",
"name": "Superwall",
"screen_name": "Superwall",
"indices": [
109,
119
]
}
],
"urls": [],
"hashtags": [],
"symbols": []
},
"is_pinned": false
},
...
],
"next_cursor": "PAAAAPAtPBwcFoCAsrHQ6pOAKxUCAAAYJmNvbnZlcnNhdGlvbnRocmVhZC0xNTQ5MjgxODYyNDYzNTA0Mzg0IgAA"
}
```
###### 402
```json
{
"status": "error",
"message": "Insufficient balance"
}
```
###### 404
```json
{
"status": "error",
"message": "Tweet not found"
}
```
###### 500
```json
{
"status": "error",
"message": "Failed to fetch data from Twitter"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **402 Payment Required** - not enough credits to perform this request
- **404 Not Found** - requested tweet does not exist
- **422 Unprocessable Content** - validation failed (e.g. one of the required parameters was not provided)
- **500 Internal Error** - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later
#### Related endpoints
- [Get tweet](https://docs.socialdata.tools/reference/get-tweet/)
- [Get multiple tweets by IDs](https://docs.socialdata.tools/reference/get-multiple-tweets/)
- [Get article](https://docs.socialdata.tools/reference/get-tweet-article/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Pricing](https://docs.socialdata.tools/getting-started/pricing/)
### Data API: Get Twitter Article - API Reference
Source: [Get Twitter Article - API Reference](https://docs.socialdata.tools/reference/get-tweet-article/)
Returns a tweet with an article attached to it. Output contains the same properties as the tweet details endpoint; the article content is returned within the “article” attribute of the response.
GET https://api.socialdata.tools/twitter/article/{article\_id}
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Parameters
**article\_id** `integer` — required
The numerical ID of the desired article tweet.
Example: 1799137410284134858
> **Caution**
>
> When using languages where the `article_id` value exceeds the default Integer type limit (e.g., JavaScript), you should store `article_id` as a String. Use the `id_str` property returned by the API for these values
#### Code Examples
###### curl
```shellscript
curl "https://api.socialdata.tools/twitter/article/1799137410284134858" \
-H 'Authorization: Bearer API_KEY' \
-H 'Accept: application/json'
```
###### JavaScript
```js
const articleId = '1799137410284134858';
const API_KEY = 'YOUR_API_KEY_HERE';
fetch(`https://api.socialdata.tools/twitter/article/${articleId}`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Accept': 'application/json'
}
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
articleId = '1799137410284134858'
API_KEY = 'YOUR_API_KEY_HERE'
url = f'https://api.socialdata.tools/twitter/article/{articleId}'
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)
```
###### PHP
```php
$articleId = '1729591119699124560';
$API_KEY = 'YOUR_API_KEY_HERE';
$url = "https://api.socialdata.tools/twitter/article/{$tweetId}";
$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
###### 200
```json
{
"created_at": "2024-06-07T17:52:39+00:00",
"tweet_created_at": "2024-06-07T17:52:39+00:00",
"id": 1799137410284134858,
"id_str": "1799137410284134858",
"text": null,
"full_text": "https:\/\/t.co\/54xBGHRtwm",
"source": "Twitter Web App<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 1034554665109676033,
"id_str": "1034554665109676033",
"name": "Upland",
"screen_name": "UplandMe",
"location": "Upland Metaverse 👉",
"url": "https:\/\/www.upland.me\/",
"description": "Make history. Digitally. Build your empire... in Upland, the ultimate property trading game. Construct your empire & Elevate your digital life. 🦙",
"protected": false,
"verified": true,
"followers_count": 117215,
"friends_count": 1071,
"listed_count": 390,
"favourites_count": 14455,
"statuses_count": 10774,
"created_at": "2018-08-28T21:33:48+00:00",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/1034554665109676033\/1712265999",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1702695579157958656\/ufOqEStf_normal.jpg",
"can_dm": false
},
"user_id": 1034554665109676033,
"user_screen_name": "UplandMe",
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 2,
"reply_count": 8,
"retweet_count": 25,
"favorite_count": 77,
"views_count": 2796,
"bookmark_count": 0,
"lang": "zxx",
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [
{
"display_url": "x.com\/i\/article\/1799…",
"expanded_url": "http:\/\/x.com\/i\/article\/1799136519384711168",
"url": "https:\/\/t.co\/54xBGHRtwm",
"indices": [
0,
23
]
}
],
"user_mentions": []
},
"article": {
"published_at": "2024-06-07T17:52:39+00:00",
"id": 1799137410284134858,
"id_str": "1799137410284134858",
"title": "Introducing Upland Neighborhood Bundles",
"preview_text": "As Upland continues to grow and solidify its position as the premier web3 metaverse, we recognize the need to offer entire exclusive neighborhoods to our partners and large communities eager to join",
"cover_url": "https:\/\/pbs.twimg.com\/media\/GPfRKLpaIAAQzNL.jpg",
"content_state": {
"blocks": [
{
"key": "3url3",
"data": [],
"entityRanges": [],
"inlineStyleRanges": [
{
"length": 21,
"offset": 32,
"style": "Bold"
},
{
"length": 23,
"offset": 60,
"style": "Bold"
},
{
"length": 30,
"offset": 116,
"style": "Bold"
},
{
"length": 30,
"offset": 154,
"style": "Bold"
}
],
"text": "As Upland continues to grow and solidify its position as the premier web3 metaverse, we recognize the need to offer entire exclusive neighborhoods to our partners and large communities eager to join us.",
"type": "unstyled"
},
{
"key": "dgdrr",
"data": [],
"entityRanges": [],
"inlineStyleRanges": [
{
"length": 20,
"offset": 96,
"style": "Bold"
},
{
"length": 21,
"offset": 210,
"style": "Bold"
}
],
"text": "Unveiled moments ago at Genesis LIVE, we are thrilled to announce a groundbreaking new concept: Neighborhood Bundles. This innovation comes as a direct result of our successful Bermuda proof of concept and the collaborative efforts with Sandbox.",
"type": "unstyled"
},
{
"key": "4561q",
"data": [],
"entityRanges": [],
"inlineStyleRanges": [
{
"length": 25,
"offset": 57,
"style": "Bold"
},
{
"length": 21,
"offset": 109,
"style": "Bold"
}
],
"text": "This initiative has been crafted with an eye towards our anticipated future growth, preparing Upland for the exciting developments ahead.",
"type": "unstyled"
},
{
"key": "9b1h2",
"data": [],
"entityRanges": [],
"inlineStyleRanges": [],
"text": "What are Neighborhood Bundles?",
"type": "header-one"
},
{
"key": "4qi2h",
"data": [],
"entityRanges": [],
"inlineStyleRanges": [
{
"length": 18,
"offset": 27,
"style": "Bold"
},
{
"length": 9,
"offset": 47,
"style": "Bold"
},
{
"length": 19,
"offset": 64,
"style": "Bold"
},
{
"length": 20,
"offset": 96,
"style": "Bold"
}
],
"text": "Neighborhood Bundles allow larger communities, partners and our dedicated community to purchase entire neighborhoods within Upland.",
"type": "unstyled"
},
{
"key": "e882e",
"data": [],
"entityRanges": [],
"inlineStyleRanges": [
{
"length": 17,
"offset": 29,
"style": "Bold"
},
{
"length": 13,
"offset": 55,
"style": "Bold"
}
],
"text": "Neighborhood bundles will be extremely limited and are priced in ETH, with unique discounts applied. The prices are coupled with USD and may fluctuate accordingly. Upon purchasing a bundle, buyers will have the option to:",
"type": "unstyled"
},
{
"key": "vbm1",
"data": [],
"entityRanges": [],
"inlineStyleRanges": [
{
"length": 8,
"offset": 0,
"style": "Bold"
}
],
"text": "Mint all or some of the neighborhood properties under their name.",
"type": "unordered-list-item"
},
{
"key": "4l3e5",
"data": [],
"entityRanges": [],
"inlineStyleRanges": [
{
"length": 8,
"offset": 0,
"style": "Bold"
}
],
"text": "Open all or some of the properties for sale, with minting proceeds sent to the buyer’s account monthly.",
"type": "unordered-list-item"
},
{
"key": "5vfe8",
"data": [],
"entityRanges": [],
"inlineStyleRanges": [
{
"length": 21,
"offset": 0,
"style": "Bold"
}
],
"text": "Choose a combination of both options.",
"type": "unordered-list-item"
},
{
"key": "fajgh",
"data": [],
"entityRanges": [],
"inlineStyleRanges": [],
"text": "Available Neighborhood Bundles",
"type": "header-one"
},
{
"key": "8818q",
"data": [],
"entityRanges": [],
"inlineStyleRanges": [],
"text": "The following bundles are currently available in the Upland Web store:",
"type": "unstyled"
},
{
"key": "68am",
"data": [],
"entityRanges": [],
"inlineStyleRanges": [],
"text": "QUEENSRIDGE, Las Vegas",
"type": "header-one"
},
{
"key": "8l94s",
"data": [],
"entityRanges": [],
"inlineStyleRanges": [
{
"length": 1,
"offset": 74,
"style": "Bold"
}
],
"text": "Own the entire luxurious Queensridge neighborhood in Las Vegas, comprising 994 properties, at a 45% discount from the market price.",
"type": "unstyled"
},
{
"key": "dchfc",
"data": [],
"entityRanges": [],
"inlineStyleRanges": [
{
"length": 5,
"offset": 0,
"style": "Bold"
}
],
"text": "Price: 6.99 ETH",
"type": "unstyled"
},
{
"key": "1gnda",
"data": [],
"entityRanges": [],
"inlineStyleRanges": [],
"text": "WYNWOOD INDUSTRIAL DISTRICT, Miami",
"type": "header-one"
},
{
"key": "6lad",
"data": [],
"entityRanges": [],
"inlineStyleRanges": [],
"text": "Take ownership of the exclusive Wynwood Industrial District neighborhood in Miami, with 308 properties, at a 35% discount from the market price.",
"type": "unstyled"
},
{
"key": "cd7u",
"data": [],
"entityRanges": [],
"inlineStyleRanges": [
{
"length": 5,
"offset": 0,
"style": "Bold"
}
],
"text": "Price: 10.79 ETH",
"type": "unstyled"
},
{
"key": "3c6j5",
"data": [],
"entityRanges": [],
"inlineStyleRanges": [],
"text": "TREASURE ISLAND, San Francisco",
"type": "header-one"
},
{
"key": "9cl5s",
"data": [],
"entityRanges": [],
"inlineStyleRanges": [],
"text": "Claim the entire coveted Treasure Island in San Francisco, including 851 properties, at a 20% discount from the market price.",
"type": "unstyled"
},
{
"key": "8o5ks",
"data": [],
"entityRanges": [],
"inlineStyleRanges": [
{
"length": 5,
"offset": 0,
"style": "Bold"
}
],
"text": "Price: 19.56 ETH",
"type": "unstyled"
},
{
"key": "ckor1",
"data": [],
"entityRanges": [],
"inlineStyleRanges": [
{
"length": 61,
"offset": 0,
"style": "Bold"
},
{
"length": 61,
"offset": 0,
"style": "Italic"
}
],
"text": "Note: Prices may fluctuate based on the current price of ETH.",
"type": "unstyled"
},
{
"key": "8hi6n",
"data": [],
"entityRanges": [],
"inlineStyleRanges": [],
"text": "A Unique Opportunity",
"type": "header-one"
},
{
"key": "7g1kq",
"data": [],
"entityRanges": [],
"inlineStyleRanges": [
{
"length": 25,
"offset": 64,
"style": "Bold"
},
{
"length": 28,
"offset": 115,
"style": "Bold"
}
],
"text": "Again, this initiative has been crafted with an eye towards our anticipated future growth, preparing Upland for the exciting developments ahead.",
"type": "unstyled"
},
{
"key": "92m66",
"data": [],
"entityRanges": [],
"inlineStyleRanges": [
{
"length": 21,
"offset": 26,
"style": "Bold"
},
{
"length": 20,
"offset": 106,
"style": "Bold"
},
{
"length": 26,
"offset": 133,
"style": "Bold"
},
{
"length": 17,
"offset": 164,
"style": "Bold"
},
{
"length": 8,
"offset": 183,
"style": "Bold"
},
{
"length": 15,
"offset": 205,
"style": "Bold"
}
],
"text": "Whether you’re looking to build a community hub, or simply expand your digital real estate portfolio, our Neighborhood Bundles offer unparalleled opportunities for large communities, partners and dedicated Upland players.",
"type": "unstyled"
}
],
"entityMap": []
},
"media_entities": []
}
}
```
###### 402
```json
{
"status": "error",
"message": "Insufficient balance"
}
```
###### 404
```json
{
"status": "error",
"message": "Tweet not found"
}
```
###### 500
```json
{
"status": "error",
"message": "Failed to fetch data from Twitter"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **402 Payment Required** - not enough credits to perform this request
- **404 Not Found** - requested tweet does not exist
- **422 Unprocessable Content** - validation failed (e.g. one of the required parameters was not provided)
- **500 Internal Error** - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later
#### Related endpoints
- [Get tweet](https://docs.socialdata.tools/reference/get-tweet/)
- [Get multiple tweets by IDs](https://docs.socialdata.tools/reference/get-multiple-tweets/)
- [Get thread](https://docs.socialdata.tools/reference/get-tweet-thread/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Pricing](https://docs.socialdata.tools/getting-started/pricing/)
### Data API: Get Article (v2) - API Reference
Source: [Get Article (v2) - API Reference](https://docs.socialdata.tools/reference/get-article-v2/)
Returns a Twitter/X article rendered as **Markdown**, ready to store, index or feed to an LLM.
The [Get article](https://docs.socialdata.tools/reference/get-tweet-article/) endpoint returns the article body as `content_state`, X’s raw Draft.js document tree — a nested structure of blocks and entity ranges you have to walk yourself. This endpoint renders that tree for you and returns the result as a Markdown string in `markdown`, dropping `content_state` and `media_entities` from the response. Everything else is the same tweet object the other endpoints return.
Headings, bold and italic text, ordered and unordered lists, blockquotes, images, dividers, links, code blocks and emoji are all preserved. Embedded posts become links.
#### Not every “article” ID is an article
Long ordinary posts and articles look similar and are easy to confuse — roughly **15% of the requests we see on this endpoint are ordinary long posts**, not articles. Rather than failing those, this endpoint renders the post’s own text as Markdown and tells you which happened:
| `markdown_source` | Meaning | `article` |
| --- | --- | --- |
| `article` | The ID is a real article. `markdown` is the rendered article body. | Metadata object |
| `tweet_text` | The ID is an ordinary post. `markdown` is the post’s own text, rendered. | `null` |
Both outcomes return `200` and both are billed the same. Branch on `markdown_source` rather than assuming.
> **markdown\_source, not source**
>
> The field is **`markdown_source`**. The tweet object has its own unrelated `source` field, which holds the client the post was sent from — for example `Twitter for iPhone`. They are different fields; do not confuse them.
GET https://api.socialdata.tools/v2/twitter/article/{article\_id}
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Parameters
**article\_id** `integer` — required
The numerical ID of the post carrying the article. This is the ID of the post itself, not the ID in an x.com/i/article/... URL.
Example: 2084992645966016757
> **Caution**
>
> When using languages where the `article_id` value exceeds the default Integer type limit (e.g., JavaScript), you should store `article_id` as a String. Use the `id_str` property returned by the API for these values
#### Response Fields
In addition to the standard tweet object fields, the response contains:
| Field | Type | Description |
| --- | --- | --- |
| `markdown` | string | The article body rendered as Markdown, or the post’s own text when `markdown_source` is `tweet_text`. |
| `markdown_source` | string | Either `article` or `tweet_text`. See above. |
| `article` | object | null | Article metadata: `id`, `id_str`, `title`, `preview_text`, `cover_url`, `published_at`. `null` when `markdown_source` is `tweet_text`. |
Note that `article` here does **not** contain `content_state` or `media_entities`. Use [Get article](https://docs.socialdata.tools/reference/get-tweet-article/) if you need the raw Draft.js tree.
#### Code Examples
###### curl
```shellscript
curl "https://api.socialdata.tools/v2/twitter/article/2084992645966016757" \
-H 'Authorization: Bearer API_KEY' \
-H 'Accept: application/json'
```
###### JavaScript
```js
const articleId = '2084992645966016757';
const API_KEY = 'YOUR_API_KEY_HERE';
fetch(`https://api.socialdata.tools/v2/twitter/article/${articleId}`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Accept': 'application/json'
}
})
.then(response => response.json())
.then(response => {
if (response.markdown_source === 'article') {
console.log(response.article.title);
}
console.log(response.markdown);
})
.catch(err => console.error(err));
```
###### Python
```python
import requests
articleId = '2084992645966016757'
API_KEY = 'YOUR_API_KEY_HERE'
url = f'https://api.socialdata.tools/v2/twitter/article/{articleId}'
headers = {
'Authorization': f'Bearer {API_KEY}',
'Accept': 'application/json'
}
response = requests.get(url, headers=headers)
if response.status_code == 200:
data = response.json()
if data['markdown_source'] == 'article':
print(data['article']['title'])
print(data['markdown'])
else:
print(f"Error: {response.status_code}")
print(response.text)
```
###### PHP
```php
$articleId = '2084992645966016757';
$API_KEY = 'YOUR_API_KEY_HERE';
$url = "https://api.socialdata.tools/v2/twitter/article/{$articleId}";
$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);
if ($data['markdown_source'] === 'article') {
echo $data['article']['title'], PHP_EOL;
}
echo $data['markdown'], PHP_EOL;
curl_close($ch);
```
#### Example Responses
The `markdown` value in the `200 (article)` example below is truncated, and its `entities` object emptied, to keep the example readable — a real response carries the whole article and the full tweet object.
###### 200 (article)
```json
{
"tweet_created_at": "2026-08-05T13:19:18.000000Z",
"id": 2084992645966016757,
"id_str": "2084992645966016757",
"type": "tweet",
"conversation_id_str": "2084992645966016757",
"community_id_str": null,
"community_name": null,
"text": null,
"full_text": "https://t.co/Cavlnc29qI",
"source": "Twitter Web App",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 703601972,
"id_str": "703601972",
"name": "Akshay 🚀",
"screen_name": "akshay_pachaar",
"location": "Learn AI Engineering 👉",
"url": "http://join.dailydoseofds.com",
"description": "Simplifying LLMs, AI Agents, RAG, and Machine Learning for you! • Co-founder @dailydoseofds_• BITS Pilani • 3 Patents • ex-AI Engineer @ LightningAI",
"protected": false,
"verified": true,
"followers_count": 283837,
"friends_count": 497,
"listed_count": 3635,
"favourites_count": 22793,
"statuses_count": 21273,
"created_at": "2012-07-18T18:58:39.000000Z",
"profile_banner_url": "https://pbs.twimg.com/profile_banners/703601972/1733646485",
"profile_image_url_https": "https://pbs.twimg.com/profile_images/1578327351544360960/YFpWSWIX_normal.jpg",
"can_dm": true,
"affiliation_label": null
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 0,
"reply_count": 6,
"retweet_count": 18,
"favorite_count": 182,
"views_count": 28824,
"bookmark_count": 248,
"lang": "zxx",
"entities": {
"hashtags": [],
"symbols": [],
"urls": [],
"user_mentions": []
},
"is_pinned": false,
"article": {
"published_at": "2026-08-05T13:19:18.000000Z",
"id": 2084992645966016757,
"id_str": "2084992645966016757",
"title": "How to serve 5 models on one GPU (100% open-source)",
"preview_text": "A real AI pipeline rarely runs on a single model. This article shows how to serve an SLM, an OCR model, an NER model, a reranker, and an object detector, through a serving layer on a single GPU.",
"cover_url": "https://pbs.twimg.com/media/HO9edfxbEAAxTFy.jpg"
},
"markdown": "A real AI pipeline rarely runs on a single model. This article shows how to serve an SLM, an OCR model, an NER model, a reranker, and an object detector, through a serving layer on a single GPU.\n\n---\n\nSmall models are changing how AI systems are built.\n\nProduction AI systems are moving from a single large model doing everything to several smaller models, each doing one job.\n\nOne parses the document, the next extracts fields, a third reranks search results, a vision model reads the image, and a final model handles generation.\n\nAt the model level, this usually brings the cost down quite a bit.\n\nBut the model is only part of the inference bill. You still need GPUs to run it, memory to keep it loaded, and a serving layer to batch and schedule the requests coming through it.\n\nIf you don't want to operate that infrastructure yourself, you can push it onto a managed provider.\n\n\n\nThat works well when you want to get started quickly, but the bill grows as your cost is tied to provider usage. And you give up control over which models you can run and where your data goes.\n\nFor teams that need greater control over models, data, and infrastructure, self-hosting is the natural choice.\n\nAlthough one small model is easy enough to accommodate in self-hosting. But a real business problem rarely stops at one.\n\nSpecialized models are designed to do one narrow thing well. You need several models, each handling its own piece of the work, stitched together into one business pipeline.\n\nNow the infrastructure has to keep all of those models available and serve them.\n\nYou saved money by moving to smaller models. The way you serve them can give that saving back.\n\nToday, we understand why that is the case and what serving small models well actually takes.\n\n## How to Read This\n\nTwo halves: how GPU serving actually works, then the pipeline running end to end.\n\nWant the code? Skip to Proving It Against a Real Document. The five calls run standalone.\n\nBut the first half is the part you can reuse anywhere. Memory allocation, batching and padding waste, queue isolation, load and evict policy: these are the parameters that decide your GPU bill, whatever engine you end up running. Knowing them is the difference between picking a serving stack and inheriting one.\n\nNote that sharing a GPU does not mean five models resident at once. Models load on demand and get evicted when memory runs short.\n\nWhat's ahead:\n\n- **Serving Tools in a Multi-Model Pipeline.** What vLLM and TEI each solve, and why five stages fragment across three servers.\n- **The Problem with Standard Serving Tools.** Dedicated or shared GPUs, idle time you pay for, and the memory knobs that decide it.\n- **What a Serving Stack for Small Models Needs.** The four requirements, before naming any tool.\n\n...(this example is truncated for brevity; the real response contains the whole article)",
"markdown_source": "article"
}
```
###### 200 (tweet\_text)
```json
{
"tweet_created_at": "2026-06-22T13:01:42.000000Z",
"id": 2069043150891663371,
"id_str": "2069043150891663371",
"type": "tweet",
"conversation_id_str": "2069043150891663371",
"community_id_str": null,
"community_name": null,
"text": null,
"full_text": "Native USDC, EURC, and CCTP are coming soon to @Cronosapp.\n\nWe’re bringing the leading stablecoins, CCTP, and Circle Mint to Cronos to power prediction markets, trading, payments, treasury management, and agentic workflows.\n\nKey benefits of native @USDC and EURC:\n→ Redeem 1:1 for USD and EUR, respectively\n→ MiCA-compliant and fully reserved\n→ Integrate seamlessly with Cronos apps and DeFi protocols\n→ Unlock dollar- and euro-denominated crosschain infrastructure on Cronos\n\nCCTP enables smooth USDC crosschain transfers without third-party bridges while Circle Mint adds institutional access to fiat on/offramps, deposits, withdrawals, transfers, and API connectivity for eligible users.\n\nLearn more:\nhttps://t.co/oAx2yQBW2K",
"source": "Twitter Web App",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 2151686839,
"id_str": "2151686839",
"name": "Circle",
"screen_name": "circle",
"location": "Remote First",
"url": "http://circle.com",
"description": "The full-stack platform for the internet financial system. Making the economy open to all. Disclosure: https://t.co/7L62d1qjty",
"protected": false,
"verified": true,
"followers_count": 282350,
"friends_count": 461,
"listed_count": 2611,
"favourites_count": 4365,
"statuses_count": 7166,
"created_at": "2013-10-23T21:10:31.000000Z",
"profile_banner_url": "https://pbs.twimg.com/profile_banners/2151686839/1760733158",
"profile_image_url_https": "https://pbs.twimg.com/profile_images/1719446730091962368/Bl01sQsB_normal.png",
"can_dm": false,
"affiliation_label": null,
"verification_info": {
"type": "Business"
}
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 12,
"reply_count": 73,
"retweet_count": 133,
"favorite_count": 573,
"views_count": 39649,
"bookmark_count": 17,
"lang": "en",
"entities": {
"media": [
{
"display_url": "pic.x.com/6uMmARTRRj",
"expanded_url": "https://x.com/circle/status/2069043150891663371/photo/1",
"ext_media_availability": {
"status": "Available"
},
"features": {
"large": {
"faces": []
},
"medium": {
"faces": []
},
"orig": {
"faces": []
},
"small": {
"faces": []
}
},
"id_str": "2069043147724959744",
"indices": [
277,
300
],
"media_key": "3_2069043147724959744",
"media_results": {
"result": {
"media_key": "3_2069043147724959744"
}
},
"media_url_https": "https://pbs.twimg.com/media/HLa3x9UaMAA9Jpa.jpg",
"original_info": {
"focus_rects": [
{
"h": 630,
"w": 1125,
"x": 0,
"y": 0
},
{
"h": 630,
"w": 630,
"x": 0,
"y": 0
},
{
"h": 630,
"w": 553,
"x": 0,
"y": 0
},
{
"h": 630,
"w": 315,
"x": 53,
"y": 0
},
{
"h": 630,
"w": 1200,
"x": 0,
"y": 0
}
],
"height": 630,
"width": 1200
},
"sizes": {
"large": {
"h": 630,
"resize": "fit",
"w": 1200
},
"medium": {
"h": 630,
"resize": "fit",
"w": 1200
},
"small": {
"h": 357,
"resize": "fit",
"w": 680
},
"thumb": {
"h": 150,
"resize": "crop",
"w": 150
}
},
"type": "photo",
"url": "https://t.co/6uMmARTRRj"
}
],
"user_mentions": [
{
"id_str": "1411867326828335107",
"indices": [
47,
57
],
"name": "Cronos",
"screen_name": "Cronosapp"
},
{
"id_str": "1819490209643270144",
"indices": [
248,
253
],
"name": "USDC",
"screen_name": "USDC"
}
],
"hashtags": [],
"symbols": [],
"urls": [
{
"display_url": "circle.com/blog/usdc-eurc…",
"expanded_url": "http://www.circle.com/blog/usdc-eurc-and-cctp-are-coming-soon-to-cronos-what-you-need-to-know",
"indices": [
704,
727
],
"url": "https://t.co/oAx2yQBW2K"
}
],
"display_text_range": [
0,
276
]
},
"is_pinned": false,
"article": null,
"markdown": "Native USDC, EURC, and CCTP are coming soon to [@Cronosapp](https://x.com/Cronosapp).\n\nWe’re bringing the leading stablecoins, CCTP, and Circle Mint to Cronos to power prediction markets, trading, payments, treasury management, and agentic workflows.\n\nKey benefits of native [@USDC](https://x.com/USDC) and EURC:\n→ Redeem 1:1 for USD and EUR, respectively\n→ MiCA-compliant and fully reserved\n→ Integrate seamlessly with Cronos apps and DeFi protocols\n→ Unlock dollar- and euro-denominated crosschain infrastructure on Cronos\n\nCCTP enables smooth USDC crosschain transfers without third-party bridges while Circle Mint adds institutional access to fiat on/offramps, deposits, withdrawals, transfers, and API connectivity for eligible users.\n\nLearn more:\n[circle.com/blog/usdc-eurc…](http://www.circle.com/blog/usdc-eurc-and-cctp-are-coming-soon-to-cronos-what-you-need-to-know)",
"markdown_source": "tweet_text"
}
```
###### 402
```json
{
"status": "error",
"message": "Insufficient balance"
}
```
###### 404
```json
{
"status": "error",
"message": "Tweet not found"
}
```
###### 500
```json
{
"status": "error",
"message": "Failed to fetch data from Twitter"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **402 Payment Required** - not enough credits to perform this request
- **404 Not Found** - requested tweet does not exist
- **422 Unprocessable Content** - validation failed (e.g. one of the required parameters was not provided)
- **500 Internal Error** - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Pricing](https://docs.socialdata.tools/getting-started/pricing/)
### Data API: Get Twitter Space Details - API Reference
Source: [Get Twitter Space Details - API Reference](https://docs.socialdata.tools/reference/get-space-details/)
GET https://api.socialdata.tools/twitter/space/{space\_id}
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Path Parameters
**space\_id** `string` — required
The ID of the desired Twitter Space.
Example: 1jMJgLdenVjxL
> **Caution**
>
> When using languages where the `id` value exceeds the default Integer type limit (e.g., JavaScript), you should store `id` as a String. Use the `id_str` property returned by the API for these values
#### Code Examples
###### curl
```shellscript
curl "https://api.socialdata.tools/twitter/space/1jMJgLdenVjxL" \
-H 'Authorization: Bearer API_KEY' \
-H 'Accept: application/json'
```
###### JavaScript
```js
const id = '1jMJgLdenVjxL';
const API_KEY = 'YOUR_API_KEY_HERE';
fetch(`https://api.socialdata.tools/twitter/space/${id}`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Accept': 'application/json'
}
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
id = '1jMJgLdenVjxL'
API_KEY = 'YOUR_API_KEY_HERE'
url = f'https://api.socialdata.tools/twitter/space/{id}'
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)
```
###### PHP
```php
$id = '1jMJgLdenVjxL';
$API_KEY = 'YOUR_API_KEY_HERE';
$url = "https://api.socialdata.tools/twitter/space/{$id}";
$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
###### 200
```json
{
"state": "Ended",
"title": "The Algorithm goes open source",
"media_key": "28_1641872499875930112",
"created_at": 1680287883093,
"scheduled_start": 1680289200000,
"started_at": 1680289206898,
"ended_at": "1680293477270",
"updated_at": 1680293485413,
"disallow_join": false,
"narrow_cast_space_type": 0,
"is_employee_only": false,
"is_locked": false,
"is_space_available_for_replay": true,
"is_space_available_for_clipping": false,
"conversation_controls": 0,
"total_replay_watched": 1291373,
"total_live_listeners": 435271,
"id": "1jMJgLdenVjxL",
"creator": {
"id": "6844292",
"affiliates_highlighted_label": {
"label": {
"url": {
"url": "https:\/\/twitter.com\/X",
"urlType": "DeepLink"
},
"badge": {
"url": "https:\/\/pbs.twimg.com\/profile_images\/1683899100922511378\/5lY42eHs_bigger.jpg"
},
"description": "X",
"userLabelType": "BusinessLabel",
"userLabelDisplayType": "Badge"
}
},
"has_graduated_access": true,
"is_blue_verified": true,
"profile_image_shape": "Square",
"legacy": {
"can_dm": false,
"can_media_tag": true,
"created_at": "Sat Jun 16 00:14:36 +0000 2007",
"default_profile": false,
"default_profile_image": false,
"description": "Updates from our Product and Infrastructure teams.",
"entities": {
"description": {
"urls": []
}
},
"fast_followers_count": 0,
"favourites_count": 267,
"followers_count": 1324928,
"friends_count": 12,
"has_custom_timelines": true,
"is_translator": false,
"listed_count": 4701,
"location": "San Francisco",
"media_count": 63,
"name": "Engineering",
"normal_followers_count": 1324928,
"pinned_tweet_ids_str": [],
"possibly_sensitive": false,
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/6844292\/1690213191",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1683502255574593536\/anU7i4uA_normal.jpg",
"profile_interstitial_type": "",
"screen_name": "XEng",
"statuses_count": 905,
"translator_type": "regular",
"verified": false,
"verified_type": "Business",
"want_retweets": false,
"withheld_in_countries": []
}
}
}
```
###### 402
```json
{
"status": "error",
"message": "Insufficient balance"
}
```
###### 404
```json
{
"status": "error",
"message": "Not found"
}
```
###### 500
```json
{
"status": "error",
"message": "Failed to fetch data from Twitter"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **402 Payment Required** - not enough credits to perform this request
- **404 Not Found** - Twitter space not found
- **422 Unprocessable Content** - validation failed (e.g. one of the required parameters was not provided)
- **500 Internal Error** - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Pricing](https://docs.socialdata.tools/getting-started/pricing/)
### Data API: Get Twitter List Details - API Reference
Source: [Get Twitter List Details - API Reference](https://docs.socialdata.tools/reference/get-list-details/)
GET https://api.socialdata.tools/twitter/list/{list\_id}
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Path Parameters
**list\_id** `integer` — required
The numeric ID of the desired list.
Example: 1625802236571033602
> **Caution**
>
> When using languages where the `list_id` value exceeds the default Integer type limit (e.g., JavaScript), you should store `list_id` as a String. Use the `id_str` property returned by the API for these values
#### Code Examples
###### curl
```shellscript
curl "https://api.socialdata.tools/twitter/list/1625802236571033602" \
-H 'Authorization: Bearer API_KEY' \
-H 'Accept: application/json'
```
###### JavaScript
```js
const listId = '1625802236571033602';
const API_KEY = 'YOUR_API_KEY_HERE';
fetch(`https://api.socialdata.tools/twitter/list/${listId}`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Accept': 'application/json'
}
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
listId = '1625802236571033602'
API_KEY = 'YOUR_API_KEY_HERE'
url = f'https://api.socialdata.tools/twitter/list/{listId}'
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)
```
###### PHP
```php
$listId = '1625802236571033602';
$API_KEY = 'YOUR_API_KEY_HERE';
$url = "https://api.socialdata.tools/twitter/list/{$listId}";
$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
###### 200
```json
{
"created_at": 1676456433000,
"default_banner_media": {
"media_info": {
"original_img_url": "https:\/\/pbs.twimg.com\/media\/EXZ1_hkUYAA56JA.png",
"original_img_width": 1125,
"original_img_height": 375,
"salient_rect": {
"left": 562,
"top": 187,
"width": 1,
"height": 1
}
}
},
"default_banner_media_results": {
"result": {
"id": "QXBpTWVkaWE6DAABCgABEXZ1\/hkUYAAKAAIQF4A+eBQgAAAA",
"media_key": "3_1258322880099540992",
"media_id": "1258322880099540992",
"media_info": {
"__typename": "ApiImage",
"original_img_height": 375,
"original_img_width": 1125,
"original_img_url": "https:\/\/pbs.twimg.com\/media\/EXZ1_hkUYAA56JA.png",
"salient_rect": {
"height": 1,
"left": 562,
"top": 187,
"width": 1
}
},
"__typename": "ApiMedia"
}
},
"description": "",
"facepile_urls": [
"https:\/\/pbs.twimg.com\/profile_images\/1685346185899294720\/jYLsROeL_mini.jpg",
"https:\/\/pbs.twimg.com\/profile_images\/1706935000703315968\/r6aQH0jg_mini.jpg",
"https:\/\/pbs.twimg.com\/profile_images\/1738612007451176960\/cfTlBeMZ_mini.jpg"
],
"followers_context": "446 followers including @heyalexfriedman",
"following": false,
"id": "TGlzdDoxNjI1ODAyMjM2NTcxMDMzNjAy",
"id_str": "1625802236571033602",
"is_member": false,
"member_count": 50,
"members_context": "50 members",
"mode": "Public",
"muting": false,
"name": "Soloprenuers",
"pinning": false,
"subscriber_count": 446,
"user_results": {
"result": {
"__typename": "User",
"id": "VXNlcjoxNDY4MTkyMzY2NDU2NTQxMTg5",
"rest_id": "1468192366456541189",
"affiliates_highlighted_label": [],
"has_graduated_access": true,
"is_blue_verified": false,
"profile_image_shape": "Circle",
"legacy": {
"can_dm": true,
"can_media_tag": true,
"created_at": "Tue Dec 07 12:15:37 +0000 2021",
"default_profile": true,
"default_profile_image": false,
"description": "I help people learn JavaScript and address any doubts they may have along the way.",
"entities": {
"description": {
"urls": []
},
"url": {
"urls": [
{
"display_url": "tahajiru.com",
"expanded_url": "http:\/\/tahajiru.com",
"url": "https:\/\/t.co\/iFLD4bkkj3",
"indices": [
0,
23
]
}
]
}
},
"fast_followers_count": 0,
"favourites_count": 5935,
"followers_count": 103,
"friends_count": 378,
"has_custom_timelines": true,
"is_translator": false,
"listed_count": 1,
"location": "India",
"media_count": 103,
"name": "Taha Jiruwala",
"normal_followers_count": 103,
"pinned_tweet_ids_str": [
"1666067236715659268"
],
"possibly_sensitive": false,
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/1468192366456541189\/1692881657",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1469317962288943106\/aCRWoyOY_normal.jpg",
"profile_interstitial_type": "",
"screen_name": "tahajiru",
"statuses_count": 3264,
"translator_type": "none",
"url": "https:\/\/t.co\/iFLD4bkkj3",
"verified": false,
"want_retweets": false,
"withheld_in_countries": []
}
}
}
}
```
###### 402
```json
{
"status": "error",
"message": "Insufficient balance"
}
```
###### 404
```json
{
"status": "error",
"message": "Not found"
}
```
###### 500
```json
{
"status": "error",
"message": "Failed to fetch data from Twitter"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **402 Payment Required** - not enough credits to perform this request
- **404 Not Found** - requested list not found
- **422 Unprocessable Content** - validation failed (e.g. one of the required parameters was not provided)
- **500 Internal Error** - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later
#### Related endpoints
- [Get list members](https://docs.socialdata.tools/reference/get-list-members/)
- [Get list tweets](https://docs.socialdata.tools/reference/get-list-tweets/)
- [Get user lists](https://docs.socialdata.tools/reference/get-user-lists/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Pricing](https://docs.socialdata.tools/getting-started/pricing/)
### Data API: Get List Members - API Reference
Source: [Get List Members - API Reference](https://docs.socialdata.tools/reference/get-list-members/)
GET https://api.socialdata.tools/twitter/list/{list\_id}/members?cursor={cursor}
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Path Parameters
**list\_id** `integer` — required
The numeric ID of the desired list.
Example: 1625802236571033602
#### Query Parameters
**cursor** `string` — optional
Cursor value obtained from `next_cursor` response property
Example: 4611686018541662731|1741085517660815316
> **Caution**
>
> When using languages where the `list_id` value exceeds the default Integer type limit (e.g., JavaScript), you should store `list_id` as a String. Use the `id_str` property returned by the API for these values
#### Code Examples
###### curl
```shellscript
curl "https://api.socialdata.tools/twitter/list/1625802236571033602/members" \
-H 'Authorization: Bearer API_KEY' \
-H 'Accept: application/json'
```
###### JavaScript
```js
const listId = '1625802236571033602';
const API_KEY = 'YOUR_API_KEY_HERE';
fetch(`https://api.socialdata.tools/twitter/list/${listId}/members`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Accept': 'application/json'
}
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
listId = '1625802236571033602'
API_KEY = 'YOUR_API_KEY_HERE'
url = f'https://api.socialdata.tools/twitter/list/{listId}/members'
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)
```
###### PHP
```php
$listId = '1625802236571033602';
$API_KEY = 'YOUR_API_KEY_HERE';
$url = "https://api.socialdata.tools/twitter/list/{$listId}/members";
$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
###### 200
```json
{
"next_cursor": "4611686018541662731|1741080922217775060",
"users": [
{
"id": 1547124452596523008,
"id_str": "1547124452596523008",
"name": "Gwendal Brossard",
"screen_name": "GwendalBrossard",
"location": "Building",
"url": "https:\/\/t.co\/6o4TTYu7LQ",
"description": "I'm an indie maker building products \ud83d\udc68\u200d\ud83d\udcbb @PaletteBrain\u2506https:\/\/t.co\/BEadk6UDlz \u2728",
"protected": false,
"verified": false,
"followers_count": 3557,
"friends_count": 149,
"listed_count": 41,
"favourites_count": 12425,
"statuses_count": 6778,
"created_at": "2022-07-13T07:43:56.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/1547124452596523008\/1672736091",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1572151372455313409\/qq1yH56d_normal.jpg",
"can_dm": true
},
...
]
}
```
###### 402
```json
{
"status": "error",
"message": "Insufficient balance"
}
```
###### 404
```json
{
"status": "error",
"message": "Not found"
}
```
###### 500
```json
{
"status": "error",
"message": "Failed to fetch data from Twitter"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **402 Payment Required** - not enough credits to perform this request
- **404 Not Found** - requested list not found
- **422 Unprocessable Content** - validation failed (e.g. one of the required parameters was not provided)
- **500 Internal Error** - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later
#### Related endpoints
- [Get list details](https://docs.socialdata.tools/reference/get-list-details/)
- [Get list tweets](https://docs.socialdata.tools/reference/get-list-tweets/)
- [Get user lists](https://docs.socialdata.tools/reference/get-user-lists/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Pricing](https://docs.socialdata.tools/getting-started/pricing/)
### Data API: Get List Tweets - API Reference
Source: [Get List Tweets - API Reference](https://docs.socialdata.tools/reference/get-list-tweets/)
GET https://api.socialdata.tools/twitter/list/{list\_id}/tweets?cursor={cursor}
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Path Parameters
**list\_id** `integer` — required
The numeric ID of the desired list.
Example: 1625802236571033602
#### Query Parameters
**cursor** `string` — optional
Cursor value obtained from `next_cursor` response property. Used to retrieve additional pages for the same query
Example: 1890084840239985036
> **Caution**
>
> When using languages where the `list_id` value exceeds the default Integer type limit (e.g., JavaScript), you should store `list_id` as a String. Use the `id_str` property returned by the API for these values
#### Code Examples
###### curl
```shellscript
curl "https://api.socialdata.tools/twitter/list/1625802236571033602/tweets" \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Accept: application/json'
```
###### JavaScript
```js
const listId = '1625802236571033602';
const API_KEY = 'YOUR_API_KEY_HERE';
fetch(`https://api.socialdata.tools/twitter/list/${listId}/tweets`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Accept': 'application/json'
}
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
list_id = '1625802236571033602'
API_KEY = 'YOUR_API_KEY_HERE'
url = f'https://api.socialdata.tools/twitter/list/{list_id}/tweets'
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)
```
###### PHP
```php
$list_id = '1625802236571033602';
$API_KEY = 'YOUR_API_KEY_HERE';
$url = "https://api.socialdata.tools/twitter/list/{$list_id}/tweets";
$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
###### 200
```json
{
"next_cursor": "1890347538525409734",
"tweets": [
{
"tweet_created_at": "2023-12-13T05:39:09.000000Z",
"id_str": "1734810168053956719",
"text": null,
"full_text": "@TeslaHype Pace of Progress",
"source": "Twitter for iPhone<\\/a>",
"truncated": false,
"in_reply_to_status_id_str": "1734777084268920960",
"in_reply_to_user_id_str": "1311506622821400581",
"in_reply_to_screen_name": "TeslaHype",
"user": {
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"location": "\\ud835\\udd4f\\u00d0",
"url": null,
"description": "",
"protected": false,
"verified": false,
"followers_count": 166213349,
"friends_count": 506,
"listed_count": 149586,
"favourites_count": 37958,
"statuses_count": 34934,
"created_at": "2009-06-02T20:12:29.000000Z",
"profile_banner_url": "https:\\/\\/pbs.twimg.com\\/profile_banners\\/44196397\\/1690621312",
"profile_image_url_https": "https:\\/\\/pbs.twimg.com\\/profile_images\\/1683325380441128960\\/yRsRRjGO_normal.jpg",
"can_dm": false
},
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 11,
"reply_count": 156,
"retweet_count": 78,
"favorite_count": 977,
"lang": "en",
"entities": {
"user_mentions": [
{
"id_str": "1311506622821400581",
"name": "Tesla Hype",
"screen_name": "TeslaHype",
"indices": [
0,
10
]
}
],
"urls": [],
"hashtags": [],
"symbols": []
},
"views_count": 32377,
"bookmark_count": 19
},
{
"tweet_created_at": "2023-12-13T05:38:26.000000Z",
"id_str": "1734809984674693446",
"text": null,
"full_text": "@anammostarac Yeah",
"source": "Twitter for iPhone<\\/a>",
"truncated": false,
"in_reply_to_status_id_str": "1734809562258276654",
"in_reply_to_user_id_str": "2852570664",
"in_reply_to_screen_name": "anammostarac",
"user": {
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"location": "\\ud835\\udd4f\\u00d0",
"url": null,
"description": "",
"protected": false,
"verified": false,
"followers_count": 166213349,
"friends_count": 506,
"listed_count": 149586,
"favourites_count": 37958,
"statuses_count": 34934,
"created_at": "2009-06-02T20:12:29.000000Z",
"profile_banner_url": "https:\\/\\/pbs.twimg.com\\/profile_banners\\/44196397\\/1690621312",
"profile_image_url_https": "https:\\/\\/pbs.twimg.com\\/profile_images\\/1683325380441128960\\/yRsRRjGO_normal.jpg",
"can_dm": false
},
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 4,
"reply_count": 64,
"retweet_count": 30,
"favorite_count": 513,
"lang": "en",
"entities": {
"user_mentions": [
{
"id_str": "2852570664",
"name": "Ana Mostarac",
"screen_name": "anammostarac",
"indices": [
0,
13
]
}
],
"urls": [],
"hashtags": [],
"symbols": []
},
"views_count": 25579,
"bookmark_count": 3
}
]
}
```
###### 402
```json
{
"status": "error",
"message": "Insufficient balance"
}
```
###### 404
```json
{
"status": "error",
"message": "Not found"
}
```
###### 500
```json
{
"status": "error",
"message": "Failed to fetch data from Twitter"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **402 Payment Required** - not enough credits to perform this request
- **404 Not Found** - requested list not found
- **422 Unprocessable Content** - validation failed (e.g. one of the required parameters was not provided)
- **500 Internal Error** - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later
#### Related endpoints
- [Get list details](https://docs.socialdata.tools/reference/get-list-details/)
- [Get list members](https://docs.socialdata.tools/reference/get-list-members/)
- [Get user lists](https://docs.socialdata.tools/reference/get-user-lists/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Pricing](https://docs.socialdata.tools/getting-started/pricing/)
### Data API: Get Twitter Community Details - API Reference
Source: [Get Twitter Community Details - API Reference](https://docs.socialdata.tools/reference/get-community-details/)
Returns information about a Twitter community.
GET https://api.socialdata.tools/twitter/community/{community\_id}
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Path Parameters
**community\_id** `integer` — required
Target community ID
Example: 1493446837214187523
#### Code Examples
###### curl
```shellscript
curl "https://api.socialdata.tools/twitter/community/1493446837214187523" \
-H 'Authorization: Bearer API_KEY' \
-H 'Accept: application/json'
```
###### JavaScript
```js
const communityId = '1493446837214187523';
const API_KEY = 'YOUR_API_KEY_HERE';
fetch(`https://api.socialdata.tools/twitter/community/${communityId}`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Accept': 'application/json'
}
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
communityId = '1493446837214187523'
API_KEY = 'YOUR_API_KEY_HERE'
url = f'https://api.socialdata.tools/twitter/community/{communityId}'
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)
```
###### PHP
```php
$communityId = '1493446837214187523';
$API_KEY = 'YOUR_API_KEY_HERE';
$url = "https://api.socialdata.tools/twitter/community/{$communityId}";
$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
###### 200
```json
{
"id_str": "1493446837214187523",
"created_at": "2022-02-15T04:47:27.551000Z",
"name": "Build in Public",
"description": "Share what you're working on. Get feedback. Help each other move forward. – Sponsors: @iamfra5er @freemius @RaulOnRails @indexsy @create_xyz",
"creator_is_blue_verified": true,
"creator_screen_name": "marckohlbrugge",
"join_policy": "Open",
"rules": [
"Share what you're working on",
"Screenshots, screencasts, drafts, etc",
"No self-promotion",
"Stay on-topic",
"No engagement farming",
"Use a personal account"
],
"banner_url": "https:\/\/pbs.twimg.com\/community_banner_img\/1901004865490313216\/FVEYARpF?format=png&name=orig",
"banner_width": 1200,
"banner_height": 480,
"member_count": 111247,
"is_nsfw": false
}
```
###### 402
```json
{
"status": "error",
"message": "Insufficient balance"
}
```
###### 404
```json
{
"status": "error",
"message": "Not found"
}
```
###### 500
```json
{
"status": "error",
"message": "Failed to fetch data from Twitter"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **402 Payment Required** - not enough credits to perform this request
- **404 Not Found** - requested community does not exist
- **422 Unprocessable Content** - validation failed (e.g. one of the required parameters was not provided)
- **500 Internal Error** - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later
#### Related endpoints
- [Get community tweets](https://docs.socialdata.tools/reference/get-community-tweets/)
- [Get community members](https://docs.socialdata.tools/reference/get-community-members/)
- [Get community search results](https://docs.socialdata.tools/reference/get-community-search-results/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Pricing](https://docs.socialdata.tools/getting-started/pricing/)
### Data API: Get Community Tweets - API Reference
Source: [Get Community Tweets - API Reference](https://docs.socialdata.tools/reference/get-community-tweets/)
Returns an array of tweets from the community timeline. Typically Twitter returns ~20 results per page. You can request additional results by sending another request to the same endpoint using the `cursor` parameter. If the community has a pinned post, this post will be returned on all subsequent requests made with the cursor.
This endpoint doesn’t support any filters.
GET https://api.socialdata.tools/twitter/community/{community\_id}/tweets?cursor={cursor}
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Path Parameters
**community\_id** `integer` — required
Target community ID
Example: 1493446837214187523
#### Query Parameters
**cursor** `string` — optional
Cursor value obtained from `next_cursor` response property. Used to retrieve additional pages for the same query
Example: DAACCgACGC12FhmAJxAKAAMYLXYWGX\_Y8AgABAAAAAILAAUAAADoRW1QQzZ3QUFBZlEvZ0d...
**type** `enum` — optional
Search type (`Latest` for recent tweets or `Top` for popular tweets). Default: `Latest`
Example: Top
> **Caution**
>
> When using languages where the `community_id` value exceeds the default Integer type limit (e.g., JavaScript), you should store `community_id` as a String. Use the `id_str` property returned by the API for these values
#### Code Examples
###### curl
```shellscript
curl "https://api.socialdata.tools/twitter/community/1493446837214187523/tweets?type=Latest" \
-H 'Authorization: Bearer API_KEY' \
-H 'Accept: application/json'
```
###### JavaScript
```js
const communityId = '1493446837214187523';
const API_KEY = 'YOUR_API_KEY_HERE';
fetch(`https://api.socialdata.tools/twitter/community/${communityId}/tweets?type=Latest`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Accept': 'application/json'
}
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
communityId = '1493446837214187523'
API_KEY = 'YOUR_API_KEY_HERE'
url = f'https://api.socialdata.tools/twitter/community/{communityId}/tweets?type=Latest'
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)
```
###### PHP
```php
$communityId = '1493446837214187523';
$API_KEY = 'YOUR_API_KEY_HERE';
$url = "https://api.socialdata.tools/twitter/community/{$communityId}/tweets?type=Latest";
$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
###### 200
```json
{
"next_cursor": "DAACCgACGC12FhmAJxAKAAMYLXYWGX_Y8AgABAAAAAILAAUAAADoRW1QQzZ3QUFBZlEvZ0dKTjB2R3AvQUFBQUJNWUxTNkQyQmFoUXhndFRReS9Ga0NOR0MwZG9yS1hzU2NZTFFwYm0xY1I0aGd0YmhZc1drQ3FHQzBjUXNSV1lSZ1lMVml5V3BxQU9CZ3RMbUhUV2tDb0dDMVFuVW1YMEFzWUxKYURhOVpob3hndFZtaklGakNNR0MxWGdlT1dZSE1ZTFRYNFNwZUEraGd0Y2h2bEYxRkxHQzFNMi83V1VGc1lMTTZwemhZQWt4Z3RWMkJKbDNGN0dDMWFGTXBYUUY4WUxUUERuRlp3UVE9PQgABgAAAAAIAAcAAAAADAAICgABGCyWg2vWYaMAAAA",
"tweets": [
{
"tweet_created_at": "2023-12-13T05:39:09.000000Z",
"id_str": "1734810168053956719",
"text": null,
"full_text": "@TeslaHype Pace of Progress",
"source": "Twitter for iPhone<\\/a>",
"truncated": false,
"in_reply_to_status_id_str": "1734777084268920960",
"in_reply_to_user_id_str": "1311506622821400581",
"in_reply_to_screen_name": "TeslaHype",
"user": {
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"location": "\\ud835\\udd4f\\u00d0",
"url": null,
"description": "",
"protected": false,
"verified": false,
"followers_count": 166213349,
"friends_count": 506,
"listed_count": 149586,
"favourites_count": 37958,
"statuses_count": 34934,
"created_at": "2009-06-02T20:12:29.000000Z",
"profile_banner_url": "https:\\/\\/pbs.twimg.com\\/profile_banners\\/44196397\\/1690621312",
"profile_image_url_https": "https:\\/\\/pbs.twimg.com\\/profile_images\\/1683325380441128960\\/yRsRRjGO_normal.jpg",
"can_dm": false
},
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 11,
"reply_count": 156,
"retweet_count": 78,
"favorite_count": 977,
"lang": "en",
"entities": {
"user_mentions": [
{
"id_str": "1311506622821400581",
"name": "Tesla Hype",
"screen_name": "TeslaHype",
"indices": [
0,
10
]
}
],
"urls": [],
"hashtags": [],
"symbols": []
},
"views_count": 32377,
"bookmark_count": 19
},
{
"tweet_created_at": "2023-12-13T05:38:26.000000Z",
"id_str": "1734809984674693446",
"text": null,
"full_text": "@anammostarac Yeah",
"source": "Twitter for iPhone<\\/a>",
"truncated": false,
"in_reply_to_status_id_str": "1734809562258276654",
"in_reply_to_user_id_str": "2852570664",
"in_reply_to_screen_name": "anammostarac",
"user": {
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"location": "\\ud835\\udd4f\\u00d0",
"url": null,
"description": "",
"protected": false,
"verified": false,
"followers_count": 166213349,
"friends_count": 506,
"listed_count": 149586,
"favourites_count": 37958,
"statuses_count": 34934,
"created_at": "2009-06-02T20:12:29.000000Z",
"profile_banner_url": "https:\\/\\/pbs.twimg.com\\/profile_banners\\/44196397\\/1690621312",
"profile_image_url_https": "https:\\/\\/pbs.twimg.com\\/profile_images\\/1683325380441128960\\/yRsRRjGO_normal.jpg",
"can_dm": false
},
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 4,
"reply_count": 64,
"retweet_count": 30,
"favorite_count": 513,
"lang": "en",
"entities": {
"user_mentions": [
{
"id_str": "2852570664",
"name": "Ana Mostarac",
"screen_name": "anammostarac",
"indices": [
0,
13
]
}
],
"urls": [],
"hashtags": [],
"symbols": []
},
"views_count": 25579,
"bookmark_count": 3
}
]
}
```
###### 402
```json
{
"status": "error",
"message": "Insufficient balance"
}
```
###### 404
```json
{
"status": "error",
"message": "Not found"
}
```
###### 500
```json
{
"status": "error",
"message": "Failed to fetch data from Twitter"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **402 Payment Required** - not enough credits to perform this request
- **404 Not Found** - requested community does not exist
- **422 Unprocessable Content** - validation failed (e.g. one of the required parameters was not provided)
- **500 Internal Error** - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later
#### Related endpoints
- [Get community details](https://docs.socialdata.tools/reference/get-community-details/)
- [Get community members](https://docs.socialdata.tools/reference/get-community-members/)
- [Get community search results](https://docs.socialdata.tools/reference/get-community-search-results/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Pricing](https://docs.socialdata.tools/getting-started/pricing/)
### Data API: Get Community Members - API Reference
Source: [Get Community Members - API Reference](https://docs.socialdata.tools/reference/get-community-members/)
Returns an array of users who are admins, moderators or regular members of a community. Typically Twitter returns ~20 results per page. You can request additional results by sending another request to the same endpoint using the `cursor` parameter.
GET https://api.socialdata.tools/twitter/community/{community\_id}/members?cursor={cursor}
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Path Parameters
**community\_id** `integer` — required
Target community ID
Example: 1493446837214187523
#### Query Parameters
**cursor** `string` — optional
Cursor value obtained from `next_cursor` response property. Used to retrieve additional pages for the same query
Example: DAACCgACGC12FhmAJxAKAAMYLXYWGX\_Y8AgABAAAAAILAAUAAADoRW1QQzZ3QUFBZlEvZ0d...
> **Caution**
>
> When using languages where the `community_id` value exceeds the default Integer type limit (e.g., JavaScript), you should store `community_id` as a String. Use the `id_str` property returned by the API for these values
#### Code Examples
###### curl
```shellscript
curl "https://api.socialdata.tools/twitter/community/1493446837214187523/members" \
-H 'Authorization: Bearer API_KEY' \
-H 'Accept: application/json'
```
###### JavaScript
```js
const communityId = '1493446837214187523';
const API_KEY = 'YOUR_API_KEY_HERE';
fetch(`https://api.socialdata.tools/twitter/community/${communityId}/members`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Accept': 'application/json'
}
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
communityId = '1493446837214187523'
API_KEY = 'YOUR_API_KEY_HERE'
url = f'https://api.socialdata.tools/twitter/community/{communityId}/members'
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)
```
###### PHP
```php
$communityId = '1493446837214187523';
$API_KEY = 'YOUR_API_KEY_HERE';
$url = "https://api.socialdata.tools/twitter/community/{$communityId}/members";
$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
###### 200
```json
{
"next_cursor": "CycRAAAAAAwABAwKmwzBVQo+vQ0OGGp8lQABCm07AAABkNDNH5sADJorCj69f\/\/\/\/\/\/\/\/\/8KbTt\/\/\/\/\/\/\/\/\/\/wAIP8AAAAADAAAA",
"users": [
{
"id": 3119483308,
"id_str": "3119483308",
"screen_name": "onofregasent",
"name": "Onofre",
"protected": false,
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1726870714131640320\/Hsxgtxw9_normal.jpg",
"community_role": "Member"
},
{
"id": 338944755,
"id_str": "338944755",
"screen_name": "bohdanbasov",
"name": "Bohdan Basov",
"protected": false,
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1803862687895388160\/2h7gpQ5U_normal.jpg",
"community_role": "Moderator"
},
...
]
}
```
###### 402
```json
{
"status": "error",
"message": "Insufficient balance"
}
```
###### 404
```json
{
"status": "error",
"message": "User not found"
}
```
###### 500
```json
{
"status": "error",
"message": "Failed to fetch data from Twitter"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **402 Payment Required** - not enough credits to perform this request
- **404 Not Found** - requested community does not exist
- **422 Unprocessable Content** - validation failed (e.g. one of the required parameters was not provided)
- **500 Internal Error** - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later
#### Related endpoints
- [Get community details](https://docs.socialdata.tools/reference/get-community-details/)
- [Get community tweets](https://docs.socialdata.tools/reference/get-community-tweets/)
- [Get community search results](https://docs.socialdata.tools/reference/get-community-search-results/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Pricing](https://docs.socialdata.tools/getting-started/pricing/)
### Data API: Get Community Search Results - API Reference
Source: [Get Community Search Results - API Reference](https://docs.socialdata.tools/reference/get-community-search-results/)
Returns an array of tweets provided by the Twitter community search page. Typically Twitter returns ~20 results per page. You can request additional search results by sending another request to the same endpoint using the `cursor` parameter.
GET https://api.socialdata.tools/twitter/community/{community\_id}/search?query={query}&cursor={cursor}
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Path Parameters
**community\_id** `integer` — required
Target community ID
Example: 1493446837214187523
#### Query Parameters
**query** `string` — required
A UTF-8, URL-encoded search query, including any operators supported by the Twitter website search
Example: from:elonmusk doge
**cursor** `string` — optional
Cursor value obtained from `next_cursor` response property. Used to retrieve additional pages for the same query
Example: DAACCgACGC12FhmAJxAKAAMYLXYWGX\_Y8AgABAAAAAILAAUAAADoRW1QQzZ3QUFBZlEvZ0d...
**type** `enum` — optional
Search type (`Latest` for recent tweets or `Top` for popular tweets). Default: `Latest`
Example: Top
> **Caution**
>
> When using languages where the `community_id` value exceeds the default Integer type limit (e.g., JavaScript), you should store `community_id` as a String. Use the `id_str` property returned by the API for these values
#### Code Examples
###### curl
```shellscript
curl "https://api.socialdata.tools/twitter/community/1493446837214187523/search?query=YOUR_SEARCH_QUERY&type=Latest" \
-H 'Authorization: Bearer API_KEY' \
-H 'Accept: application/json'
```
###### JavaScript
```js
const API_KEY = 'YOUR_API_KEY_HERE';
const communityId = '1493446837214187523';
const searchQuery = 'YOUR_SEARCH_QUERY';
fetch(`https://api.socialdata.tools/twitter/community/${communityId}/search?query=${encodeURIComponent(searchQuery)}&type=Latest`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Accept': 'application/json'
}
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
API_KEY = 'YOUR_API_KEY_HERE'
communityId = '1493446837214187523'
search_query = 'YOUR_SEARCH_QUERY'
url = f'https://api.socialdata.tools/twitter/community/{communityId}/search'
params = {
'query': search_query,
'type': 'Latest'
}
headers = {
'Authorization': f'Bearer {API_KEY}',
'Accept': 'application/json'
}
response = requests.get(url, headers=headers, params=params)
if response.status_code == 200:
data = response.json()
print(data)
else:
print(f"Error: {response.status_code}")
print(response.text)
```
###### PHP
```php
$API_KEY = 'YOUR_API_KEY_HERE';
$communityId = '1493446837214187523';
$searchQuery = 'YOUR_SEARCH_QUERY';
$url = "https://api.socialdata.tools/twitter/community/{$communityId}/search?query=" . urlencode($searchQuery) . "&type=Latest";
$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
###### 200
```json
{
"next_cursor": "DAACCgACGC12FhmAJxAKAAMYLXYWGX_Y8AgABAAAAAILAAUAAADoRW1QQzZ3QUFBZlEvZ0dKTjB2R3AvQUFBQUJNWUxTNkQyQmFoUXhndFRReS9Ga0NOR0MwZG9yS1hzU2NZTFFwYm0xY1I0aGd0YmhZc1drQ3FHQzBjUXNSV1lSZ1lMVml5V3BxQU9CZ3RMbUhUV2tDb0dDMVFuVW1YMEFzWUxKYURhOVpob3hndFZtaklGakNNR0MxWGdlT1dZSE1ZTFRYNFNwZUEraGd0Y2h2bEYxRkxHQzFNMi83V1VGc1lMTTZwemhZQWt4Z3RWMkJKbDNGN0dDMWFGTXBYUUY4WUxUUERuRlp3UVE9PQgABgAAAAAIAAcAAAAADAAICgABGCyWg2vWYaMAAAA",
"tweets": [
{
"tweet_created_at": "2023-12-13T05:39:09.000000Z",
"id_str": "1734810168053956719",
"text": null,
"full_text": "@TeslaHype Pace of Progress",
"source": "Twitter for iPhone<\\/a>",
"truncated": false,
"in_reply_to_status_id_str": "1734777084268920960",
"in_reply_to_user_id_str": "1311506622821400581",
"in_reply_to_screen_name": "TeslaHype",
"user": {
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"location": "\\ud835\\udd4f\\u00d0",
"url": null,
"description": "",
"protected": false,
"verified": false,
"followers_count": 166213349,
"friends_count": 506,
"listed_count": 149586,
"favourites_count": 37958,
"statuses_count": 34934,
"created_at": "2009-06-02T20:12:29.000000Z",
"profile_banner_url": "https:\\/\\/pbs.twimg.com\\/profile_banners\\/44196397\\/1690621312",
"profile_image_url_https": "https:\\/\\/pbs.twimg.com\\/profile_images\\/1683325380441128960\\/yRsRRjGO_normal.jpg",
"can_dm": false
},
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 11,
"reply_count": 156,
"retweet_count": 78,
"favorite_count": 977,
"lang": "en",
"entities": {
"user_mentions": [
{
"id_str": "1311506622821400581",
"name": "Tesla Hype",
"screen_name": "TeslaHype",
"indices": [
0,
10
]
}
],
"urls": [],
"hashtags": [],
"symbols": []
},
"views_count": 32377,
"bookmark_count": 19
},
{
"tweet_created_at": "2023-12-13T05:38:26.000000Z",
"id_str": "1734809984674693446",
"text": null,
"full_text": "@anammostarac Yeah",
"source": "Twitter for iPhone<\\/a>",
"truncated": false,
"in_reply_to_status_id_str": "1734809562258276654",
"in_reply_to_user_id_str": "2852570664",
"in_reply_to_screen_name": "anammostarac",
"user": {
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"location": "\\ud835\\udd4f\\u00d0",
"url": null,
"description": "",
"protected": false,
"verified": false,
"followers_count": 166213349,
"friends_count": 506,
"listed_count": 149586,
"favourites_count": 37958,
"statuses_count": 34934,
"created_at": "2009-06-02T20:12:29.000000Z",
"profile_banner_url": "https:\\/\\/pbs.twimg.com\\/profile_banners\\/44196397\\/1690621312",
"profile_image_url_https": "https:\\/\\/pbs.twimg.com\\/profile_images\\/1683325380441128960\\/yRsRRjGO_normal.jpg",
"can_dm": false
},
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 4,
"reply_count": 64,
"retweet_count": 30,
"favorite_count": 513,
"lang": "en",
"entities": {
"user_mentions": [
{
"id_str": "2852570664",
"name": "Ana Mostarac",
"screen_name": "anammostarac",
"indices": [
0,
13
]
}
],
"urls": [],
"hashtags": [],
"symbols": []
},
"views_count": 25579,
"bookmark_count": 3
}
]
}
```
###### 402
```json
{
"status": "error",
"message": "Insufficient balance"
}
```
###### 404
```json
{
"status": "error",
"message": "Not found"
}
```
###### 500
```json
{
"status": "error",
"message": "Failed to fetch data from Twitter"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **402 Payment Required** - not enough credits to perform this request
- **404 Not Found** - requested community does not exist
- **422 Unprocessable Content** - validation failed (e.g. one of the required parameters was not provided)
- **500 Internal Error** - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later
#### Related endpoints
- [Get community details](https://docs.socialdata.tools/reference/get-community-details/)
- [Get community tweets](https://docs.socialdata.tools/reference/get-community-tweets/)
- [Get community members](https://docs.socialdata.tools/reference/get-community-members/)
- [Get search results](https://docs.socialdata.tools/reference/get-search-results/)
- [Twitter search operators](https://docs.socialdata.tools/resources/twitter-search-operators/)
- [Create search monitor](https://docs.socialdata.tools/monitoring/create-search-query-monitor/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Pricing](https://docs.socialdata.tools/getting-started/pricing/)
## Social Actions API
### Social Actions API: Verify User Is Following - Social Actions API
Source: [Verify User Is Following - Social Actions API](https://docs.socialdata.tools/social-actions/verify-user-following/)
This endpoint provides a convenient way to check if a user (identified by `source_user_id`) is following another user (identified by `target_user_id`). The endpoint achieves this without scraping the entire followers list, which allows us to deliver a fully accurate result with minimal latency.
GET https://api.socialdata.tools/twitter/user/{source\_user\_id}/following/{target\_user\_id}
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Path Parameters
**source\_user\_id** `integer` — required
The numeric ID of the follower user
Example: 1729591119699124560
**target\_user\_id** `integer` — required
The numeric ID of the user being followed
Example: 1729591119699124560
> **Caution**
>
> When using languages where the `user_id` value exceeds the default Integer type limit (e.g., JavaScript), you should store `user_id` as a String. Use the `id_str` property returned by the API for these values
#### Code Examples
###### curl
```shellscript
curl "https://api.socialdata.tools/twitter/user/1319287761048723458/following/44196397" \
-H 'Authorization: Bearer API_KEY' \
-H 'Accept: application/json'
```
###### JavaScript
```js
const followerId = '1319287761048723458';
const targetId = '44196397';
const API_KEY = 'YOUR_API_KEY_HERE';
fetch(`https://api.socialdata.tools/twitter/user/${followerId}/following/${targetId}`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Accept': 'application/json'
}
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
followerId = '1319287761048723458'
targetId = '44196397'
API_KEY = 'YOUR_API_KEY_HERE'
url = f'https://api.socialdata.tools/twitter/user/{followerId}/following/{targetId}'
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)
```
###### PHP
```php
$followerId = '1319287761048723458';
$targetId = '44196397';
$API_KEY = 'YOUR_API_KEY_HERE';
$url = "https://api.socialdata.tools/twitter/user/{$followerId}/following/{$targetId}";
$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
###### 200
```json
{
"status": "success",
"source_user_id": "123123123...",
"target_user_id": "456456456...",
"is_following": true,
"followers_checked_count": null // Deprecated, always null
}
```
###### 402
```json
{
"status": "error",
"message": "Insufficient balance"
}
```
###### 404
```json
{
"status": "error",
"message": "User not found"
}
```
###### 500
```json
{
"status": "error",
"message": "Failed to fetch data from Twitter"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **402 Payment Required** - not enough credits to perform this request
- **404 Not Found** - requested target user does not exist
- **422 Unprocessable Content** - validation failed (e.g. one of the required parameters was not provided)
- **500 Internal Error** - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later
#### Related endpoints
- [Get user followers](https://docs.socialdata.tools/reference/get-user-followers/)
- [Get user verified followers](https://docs.socialdata.tools/reference/get-user-verified-followers/)
- [Get user followings](https://docs.socialdata.tools/reference/get-user-followings/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Pricing](https://docs.socialdata.tools/getting-started/pricing/)
### Social Actions API: Verify User Retweeted - Social Actions API
Source: [Verify User Retweeted - Social Actions API](https://docs.socialdata.tools/social-actions/verify-user-retweeted/)
This endpoint provides a convenient way to check if a user retweeted a tweet identified by `tweet_id`. This will recursively retrieve all users who recently retweeted a tweet and check if the `user_id` is present among the retrieved users.
GET https://api.socialdata.tools/twitter/tweets/{tweet\_id}/retweeted\_by/{user\_id}
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Path Parameters
**tweet\_id** `integer` — required
The numeric ID of the target tweet
Example: 1625802236571033602
**user\_id** `integer` — required
The numeric ID of the user
Example: 1489552236571048124
> **Caution**
>
> When using languages where the `id` value exceeds the default Integer type limit (e.g., JavaScript), you should store `id` as a String. Use the `id_str` property returned by the API for these values
#### Code Examples
###### curl
```shellscript
curl "https://api.socialdata.tools/twitter/tweets/456456456/retweeted_by/123123123" \
-H 'Authorization: Bearer API_KEY' \
-H 'Accept: application/json'
```
###### JavaScript
```js
const tweetId = '456456456';
const userId = '123123123';
const API_KEY = 'YOUR_API_KEY_HERE';
fetch(`https://api.socialdata.tools/twitter/tweets/${tweetId}/retweeted_by/${userId}`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Accept': 'application/json'
}
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
tweetId = '456456456';
userId = '123123123';
API_KEY = 'YOUR_API_KEY_HERE'
url = f'https://api.socialdata.tools/twitter/tweets/{tweetId}/retweeted_by/{userId}'
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)
```
###### PHP
```php
$tweetId = '456456456';
$userId = '123123123';
$API_KEY = 'YOUR_API_KEY_HERE';
$url = "https://api.socialdata.tools/twitter/tweets/{$tweetId}/retweeted_by/{$userId}";
$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
###### 200
```json
{
"status": "success",
"source_user_id": "123123123...",
"target_tweet_id": "456456456...",
"is_retweeted": true,
"retweeters_checked_count": null // Deprecated, always null
}
```
###### 402
```json
{
"status": "error",
"message": "Insufficient balance"
}
```
###### 404
```json
{
"status": "error",
"message": "User not found"
}
```
###### 500
```json
{
"status": "error",
"message": "Failed to fetch data from Twitter"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **402 Payment Required** - not enough credits to perform this request
- **404 Not Found** - requested tweet does not exist
- **422 Unprocessable Content** - validation failed (e.g. one of the required parameters was not provided)
- **500 Internal Error** - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later
#### Related endpoints
- [Get tweet comments](https://docs.socialdata.tools/reference/get-tweet-comments/)
- [Get tweet quotes](https://docs.socialdata.tools/reference/get-tweet-quotes/)
- [Get tweet retweeters](https://docs.socialdata.tools/reference/get-tweet-retweeters/)
- [Verify user commented](https://docs.socialdata.tools/social-actions/verify-user-commented/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Pricing](https://docs.socialdata.tools/getting-started/pricing/)
### Social Actions API: Verify User Commented - Social Actions API
Source: [Verify User Commented - Social Actions API](https://docs.socialdata.tools/social-actions/verify-user-commented/)
This endpoint provides a convenient way to check if a user identified by `user_id` posted a comment in response to a tweet identified by `tweet_id`. This endpoint only detects direct replies to a target tweet, and not comments posted under other comments.
The endpoint returns an array of `comment_ids` taking into account that a single user may have posted more than one reply.
GET https://api.socialdata.tools/twitter/tweets/{tweet\_id}/commented\_by/{user\_id}
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Parameters
**tweet\_id** `integer` — required
The numeric ID of the target tweet
Example: 1625802236571033602
**user\_id** `integer` — required
The numeric ID of the user
Example: 1489552236571048124
> **Caution**
>
> When using languages where the `id` value exceeds the default Integer type limit (e.g., JavaScript), you should store `id` as a String. Use the `id_str` property returned by the API for these values
#### Approach
This endpoint performs a number of tests to detect the relevant comment with high accuracy and low latency:
1. SocialData will attempt to retrieve a user’s tweets and replies page and check if any of their recent replies were posted in response to the target `tweet_id` (i.e. where `in_reply_to_status_id == tweet_id`) — this requires that a user’s profile privacy is set to public and not “protected”
2. If the previous test fails, SocialData will also retrieve Twitter search results for the following query: `conversation_id:TWEET_ID` (i.e. any comments posted under the target tweet)
SocialData will cache all detected comments on each request and validate subsequent requests against cache to minimize the latency of this endpoint.
#### Known Limitations
While in general this endpoint provides highly accurate results, it may occasionally fail to detect any relevant comments, even if the user commented on the target tweet, in the following cases:
- A comment was posted a long time ago and it is not found in the first few pages of the user’s tweets and replies page, or in their comment search results
- A comment was posted by a shadow-banned user (i.e. marked by Twitter as spam/bot account) and their comments don’t show up in search
However, you are unlikely to experience any of these issues if the endpoint is called shortly after the user posted their comment.
Keep in mind that the endpoint will not detect any deleted comments — if a `comment_id` was detected earlier, it will be stored in cache even if the user deletes it, and will be returned in subsequent endpoint responses. If your app needs to detect if any of the relevant comments were deleted — use the [tweet details](https://docs.socialdata.tools/reference/get-tweet/) endpoint to retrieve the comment. Any deleted comments will result in error `404 Not Found`.
#### Code Examples
###### curl
```shellscript
curl "https://api.socialdata.tools/twitter/tweets/456456456/commented_by/123123123" \
-H 'Authorization: Bearer API_KEY' \
-H 'Accept: application/json'
```
###### JavaScript
```js
const tweetId = '456456456';
const userId = '123123123';
const API_KEY = 'YOUR_API_KEY_HERE';
fetch(`https://api.socialdata.tools/twitter/tweets/${tweetId}/commented_by/${userId}`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Accept': 'application/json'
}
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
tweetId = '456456456';
userId = '123123123';
API_KEY = 'YOUR_API_KEY_HERE'
url = f'https://api.socialdata.tools/twitter/tweets/{tweetId}/commented_by/{userId}'
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)
```
###### PHP
```php
$tweetId = '456456456';
$userId = '123123123';
$API_KEY = 'YOUR_API_KEY_HERE';
$url = "https://api.socialdata.tools/twitter/tweets/{$tweetId}/commented_by/{$userId}";
$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
###### 200
```json
{
"status": "success",
"is_commented": true,
"comment_ids": [
"1111111...",
"2222222...",
]
}
```
###### 402
```json
{
"status": "error",
"message": "Insufficient balance"
}
```
###### 404
```json
{
"status": "error",
"message": "User not found"
}
```
###### 500
```json
{
"status": "error",
"message": "Failed to fetch data from Twitter"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **402 Payment Required** - not enough credits to perform this request
- **404 Not Found** - requested user does not exist
- **422 Unprocessable Content** - validation failed (e.g. one of the required parameters was not provided)
- **500 Internal Error** - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later
#### Related endpoints
- [Get tweet comments](https://docs.socialdata.tools/reference/get-tweet-comments/)
- [Get tweet quotes](https://docs.socialdata.tools/reference/get-tweet-quotes/)
- [Get tweet retweeters](https://docs.socialdata.tools/reference/get-tweet-retweeters/)
- [Verify user retweeted](https://docs.socialdata.tools/social-actions/verify-user-retweeted/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Pricing](https://docs.socialdata.tools/getting-started/pricing/)
## Monitoring API
### Monitoring API: Twitter Account Monitoring API - Introduction
Source: [Twitter Account Monitoring API - Introduction](https://docs.socialdata.tools/monitoring/introduction/)
SocialData Monitoring API watches Twitter on your behalf and pushes events to your server shortly after they happen. You create a monitor, we check for updates continuously, and every new event becomes a `POST` request to your webhook URL containing complete tweet or user data.
There is nothing to poll and nothing to schedule on your side.
#### Monitor types
- [**User Tweets Monitor**](https://docs.socialdata.tools/monitoring/create-user-tweets-monitor/) - triggered when a user posts a new tweet, reply, quote or retweet
- [**User Following Monitor**](https://docs.socialdata.tools/monitoring/create-user-following-monitor/) - triggered when a user follows a new account
- [**User Profile Monitor**](https://docs.socialdata.tools/monitoring/create-user-profile-monitor/) - triggered when a user changes their Twitter profile information (e.g. name, bio, location, website or profile image)
- [**Search Query Monitor**](https://docs.socialdata.tools/monitoring/create-search-query-monitor/) - runs any custom search query at a frequency you define and delivers new matching tweets
User monitors are event-driven: we watch each account continuously and deliver every change we detect, typically within 30 seconds — see [Delivery timing](#delivery-timing). Search monitors run on the schedule you choose. The two types are billed differently — see [Pricing](https://docs.socialdata.tools/monitoring/pricing/).
#### Delivery timing
**We do not promise real-time delivery.** A user monitor delivers an event up to 30 seconds after the change happens on X, and usually well under that. We are actively working to reduce this as the feature rolls out to more users.
Treat the delay as normal rather than exceptional: handle events whenever they arrive, and don’t build a flow that assumes a webhook lands the instant someone posts. If your use case depends on sub-second reaction, the Monitoring API is not the right tool today.
Search monitors are different — their timing is governed by the `refresh_frequency` you set, plus the same delivery delay.
#### Getting Started
1. **Obtain your SocialData API key**
2. **Set up your webhook handler**
- Create a webhook endpoint on your own server to handle received webhook events
- Or expose your local development environment through a public URL using [Ngrok](https://ngrok.com) or [Cloudflare Tunnel](https://developers.cloudflare.com/pages/how-to/preview-with-cloudflare-tunnel/) - Only recommended while testing, not for production-ready applications
3. **Set the webhook URL where you will receive updates**
- Use `POST /user/webhook` [endpoint](https://docs.socialdata.tools/monitoring/set-global-webhook-url/) to set a single default webhook URL that will receive events from all current and future monitors
- Or set the `webhook_url` property when creating a new monitor to assign an individual webhook URL to each of your monitors
4. **Create your first monitor**
> **Tip**
>
> We recommend setting a [single default webhook URL](https://docs.socialdata.tools/monitoring/set-global-webhook-url/) instead of individual URLs for each monitor. Each webhook payload contains sufficient information to determine which monitor triggered the event.
#### What to expect after creating a monitor
**A monitor reports what happens next, not what already happened.** Creating a monitor establishes a baseline from the current state of the account or search query. Tweets posted before you created the monitor are not delivered, and neither are profile values that were already set. This applies to every monitor type — if you need the existing data, fetch it once from the [Data API](https://docs.socialdata.tools/reference/get-user-tweets-replies/) when you create the monitor.
**Each event is delivered on its own.** If a monitor detects five new tweets at the same time, you receive five separate webhook requests rather than one batched payload.
**Events are deduplicated.** The same tweet is never delivered twice by the same monitor, even if it keeps appearing in search results or a timeline is re-checked.
**Monitors pause when your balance runs out** and resume automatically when you top up. See [Pricing](https://docs.socialdata.tools/monitoring/pricing/#running-out-of-balance).
#### Reviewing delivered events
Every webhook we send is recorded. If your endpoint was down or you want to inspect exactly what we sent, use [Monitor event history](https://docs.socialdata.tools/monitoring/monitor-event-history/) to list a monitor’s recent events and re-read their payloads and delivery status.
#### Receiving Events in Telegram or Discord
To simplify the process of receiving notifications in your Discord channel or Telegram bot, we provide pre-built webhook handlers hosted on [Val Town](https://val.town), eliminating the need to develop your own custom application.
Simply fork one of these handlers and configure your monitor’s `webhook_url` to direct events to your Val Town application:
- [New tweet event webhook handler](https://www.val.town/v/socialdata/twitterNewTweetAlert)
- [User following event webhook handler](https://www.val.town/v/socialdata/twitterNewFollowingAlert)
- [User profile update webhook handler](https://www.val.town/v/socialdata/twitterProfileUpdatedAlert)
Val Town is a robust platform for creating, executing, and sharing lightweight JavaScript or TypeScript code snippets directly in your browser, offering a simple and efficient solution for rapid deployment without complex infrastructure.
### Monitoring API: Processing Webhooks - API Reference
Source: [Processing Webhooks - API Reference](https://docs.socialdata.tools/monitoring/processing-webhooks/)
When a monitor detects an update (e.g., a new tweet from the target user), the API makes a `POST` request to your webhook URL. Each webhook request contains a single tweet or user profile. If the API detects multiple updates simultaneously, it dispatches an individual webhook request for each event.
The API first checks for a monitor-specific `webhook_url` (set using one of our “Create monitor” endpoints). If a monitor-specific `webhook_url` is not defined, it uses your [default webhook URL](https://docs.socialdata.tools/monitoring/set-global-webhook-url/).
#### Delivery guarantees
**Failed requests are not retried.** If your endpoint is down, times out, or returns an error, that event is not delivered again. Return `HTTP status 200` as soon as you have accepted the payload, and do the processing afterwards — a slow handler is indistinguishable from a broken one.
**Every event is recorded regardless of the outcome.** Use [Monitor event history](https://docs.socialdata.tools/monitoring/monitor-event-history/) to list what a monitor sent and to re-read any payload, which is how you backfill events your endpoint missed while it was down.
**Events are deduplicated.** The same detected event is never sent twice by the same monitor.
**Ordering is not guaranteed.** Two tweets detected at the same moment may arrive in either order. If order matters to you, sort on `tweet_created_at` rather than on arrival.
**Delivery is billed at detection.** An event your endpoint rejects is still billed, because the work of detecting it already happened.
**Every request is signed.** Your webhook URL is a public endpoint that anyone can POST to. Each delivery carries `X-Timestamp`, `X-Event-Id` and `X-Signature` headers so you can confirm it came from us — see [Verifying webhooks](https://docs.socialdata.tools/monitoring/verifying-webhooks/).
#### Webhook Payload
Each request contains 3 properties:
- `event` defines the type of event that triggered a webhook and will always be one of `new_tweet`, `new_following`, `profile_update`.
- `data` contains the actual data of the event and is consistent with our [tweet details](https://docs.socialdata.tools/reference/get-tweet/) or [user details](https://docs.socialdata.tools/reference/get-user-profile/) endpoints depending on the type of monitor.
- `meta` contains details of the monitor that triggered the event. User monitors report `monitored_id_str` and `monitored_username`; search monitors report `monitored_query` instead.
```json
{
"event": "new_tweet",
"data": {
// ... Tweet details ...
},
"meta": {
"monitor_id": "01hx1r99s0nsqq1ffdhmyyqbfr",
"monitor_type": "user_tweets",
"monitored_id_str": "44196397",
"monitored_username": "elonmusk"
}
}
```
#### Event Examples
###### New Following
```json
{
"event": "new_following",
"data": {
"id": 295218901,
"id_str": "295218901",
"name": "vitalik.eth",
"screen_name": "VitalikButerin",
"location": "Earth",
"url": null,
"description": "mi pinxe lo crino tcati",
"protected": false,
"verified": true,
"followers_count": 5702740,
"friends_count": 465,
"listed_count": 37058,
"favourites_count": 8856,
"statuses_count": 20628,
"created_at": "2011-05-08T16:03:03.000000Z",
"profile_banner_url": "https://pbs.twimg.com/profile_banners/295218901/1638557376",
"profile_image_url_https": "https://pbs.twimg.com/profile_images/1880759276169224192/rXpjZO0A_normal.jpg",
"can_dm": false
},
"meta": {
"monitor_id": "01jkt060zcz108b78fke6hm1g4",
"monitor_type": "user_following",
"monitored_id_str": "44196397",
"monitored_username": "elonmusk"
}
}
```
###### New Tweet
```json
{
"event": "new_tweet",
"data": {
"tweet_created_at": "2025-02-12T02:43:10.000000Z",
"id": 1889505498761703504,
"id_str": "1889505498761703504",
"conversation_id_str": "1889505498761703504",
"text": null,
"full_text": "Assange is right!",
"source": "Twitter for iPhone<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 44196397,
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"location": "",
"url": null,
"description": "",
"protected": false,
"verified": true,
"followers_count": 217258406,
"friends_count": 1013,
"listed_count": 159662,
"favourites_count": 122139,
"statuses_count": 70054,
"created_at": "2009-06-02T20:12:29.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/44196397\/1726163678",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1874558173962481664\/8HSTqIlD_normal.jpg",
"can_dm": false
},
"quoted_status_id": null,
"quoted_status_id_str": "1889494636323885155",
"is_quote_status": true,
"quoted_status": {
"tweet_created_at": "2025-02-12T02:00:01.000000Z",
"id": 1889494636323885155,
"id_str": "1889494636323885155",
"conversation_id_str": "1889494636323885155",
"text": null,
"full_text": "\ud83d\udea8ASSANGE ON USAID: \u2018CIVIL SOCIETY IS A FABLE\u2019\n\nAssange exposed how NGOs have been co-opted into political weapons, arguing that civil society is no longer independent but a \u201cbuyer\u2019s market\u201d for influence:\n\n\u201cThe last forty years have seen a huge proliferation of think tanks and political NGOs whose purpose, beneath all the verbiage, is to execute political agendas by proxy.\u201d\n\nHe singled out USAID, Freedom House, and \u2018civil society\u2019 events as vehicles for Western political interests masquerading as grassroots activism.\n\nSource: @WikiLeaks",
"source": "Twitter Web Client<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 1319287761048723458,
"id_str": "1319287761048723458",
"name": "Mario Nawfal",
"screen_name": "MarioNawfal",
"location": "",
"url": "https:\/\/roundtable.live",
"description": "Largest Show on X | Founder @ibcgroupio",
"protected": false,
"verified": true,
"followers_count": 2030538,
"friends_count": 44251,
"listed_count": 8614,
"favourites_count": 144210,
"statuses_count": 109900,
"created_at": "2020-10-22T14:42:25.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/1319287761048723458\/1736691634",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1670905743619268609\/pYItlWat_normal.jpg",
"can_dm": true
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 16,
"reply_count": 51,
"retweet_count": 350,
"favorite_count": 871,
"views_count": 26067,
"bookmark_count": 54,
"lang": "en",
"entities": {
"user_mentions": [
{
"id_str": "16589206",
"name": "WikiLeaks",
"screen_name": "WikiLeaks",
"indices": [
532,
542
]
}
],
"urls": [],
"hashtags": [],
"symbols": []
},
"is_pinned": false
},
"retweeted_status": null,
"quote_count": 0,
"reply_count": 7,
"retweet_count": 0,
"favorite_count": 1,
"views_count": null,
"bookmark_count": 2,
"lang": "en",
"entities": {
"user_mentions": [],
"urls": [],
"hashtags": [],
"symbols": []
},
"is_pinned": false
},
"meta": {
"monitor_id": "01jkt060zcz108b78fke6hm1g4",
"monitor_type": "user_tweets",
"monitored_id_str": "44196397",
"monitored_username": "elonmusk"
}
}
```
###### Profile Update
```json
{
"event": "profile_update",
"data": {
"id": 44196397,
"id_str": "44196397",
"name": "Kekius Maximus",
"screen_name": "elonmusk",
"location": "",
"url": null,
"description": "",
"protected": false,
"verified": true,
"followers_count": 217258406,
"friends_count": 1013,
"listed_count": 159662,
"favourites_count": 122139,
"statuses_count": 70054,
"created_at": "2009-06-02T20:12:29.000000Z",
"profile_banner_url": "https://pbs.twimg.com/profile_banners/44196397/1726163678",
"profile_image_url_https": "https://pbs.twimg.com/profile_images/1874558173962481664/8HSTqIlD_normal.jpg",
"can_dm": false,
"changes": {
"name": {
"old": "Elon Musk",
"new": "Kekius Maximus"
}
},
"meta": {
"monitor_id": "01jkt060zcz108b78fke6hm1g4",
"monitor_type": "user_profile",
"monitored_id_str": "44196397",
"monitored_username": "elonmusk"
}
}
```
### Monitoring API: Verifying Webhooks - API Reference
Source: [Verifying Webhooks - API Reference](https://docs.socialdata.tools/monitoring/verifying-webhooks/)
Your webhook URL is a public endpoint. Anyone who discovers it can POST to it, and a payload that merely _looks_ like ours is trivial to construct. Every webhook we send is therefore signed, so you can confirm that a request came from us and was not modified in transit.
Verification is optional, but recommended for anything that acts on the payload — placing a trade, sending a notification, writing to a database. Verify **before** you process.
> **Set a secret first, or the signature proves nothing**
>
> Signature headers are sent on every delivery, whether or not you have configured a webhook secret. Until you [set one](https://docs.socialdata.tools/monitoring/set-webhook-secret/), the signature is computed with a fixed placeholder key — the literal string `NULL` — which anyone can reproduce, because the signing scheme on this page is public.
>
> An unverified `X-Signature` header is not evidence of anything. [Set a secret](https://docs.socialdata.tools/monitoring/set-webhook-secret/) before you rely on it.
#### How it works
Verification is based on four things:
- A **shared secret**, known only to you and SocialData
- A **timestamp**, so old requests can be rejected
- A unique **event ID** for each request
- An **HMAC-SHA256 signature** over the raw request body
The flow:
1. We build the JSON payload.
2. We compute a signature from your webhook secret, the event ID and the timestamp.
3. We send the payload with the signature in the request headers.
4. Your server recomputes the signature from the raw body it received.
5. If the two match, the request is authentic.
#### Request headers
Every webhook request carries these three headers:
| Header | Description |
| --- | --- |
| `X-Timestamp` | Unix timestamp (seconds) at which the webhook was generated |
| `X-Event-Id` | A unique UUID for this request |
| `X-Signature` | HMAC signature, prefixed with the scheme version |
Example:
```http
X-Timestamp: 1736944496
X-Event-Id: 49cd1f14-8325-4b44-9a5b-cffe7ffa82f8
X-Signature: v1=c104d8b39bbe76b201dfd7b0ef3606c57b053f38e4e678756e9da1fbbf7404f4
```
#### Signature scheme
- **Algorithm** — HMAC-SHA256
- **Key** — your webhook secret
- **Signing string** — `{X-Event-Id}.{X-Timestamp}.{raw request body}`
The digest is hex-encoded and prefixed with `v1=`. The prefix is part of the header value, not part of the digest — strip it before comparing, or include it on both sides.
> **Sign the raw bytes, never re-encoded JSON**
>
> JSON serialisation is not deterministic. Whitespace, key order and Unicode escaping all change when a payload is parsed and re-encoded, and any one of those differences produces a completely different digest.
>
> Verify against the **raw request body exactly as received**. Most frameworks parse JSON before your handler runs, so you usually have to opt out — `express.raw()` in Express, `request.get_data()` in Flask, `$request->getContent()` in Laravel.
#### Rejecting replays
A valid signature proves a request came from us. It does not prove it is _new_ — a captured request stays valid forever unless you check. Two additional steps:
- **Check the timestamp.** Reject anything outside a small tolerance of your current clock. Five minutes is a reasonable default.
- **Track event IDs.** Record `X-Event-Id` for each request you accept, and reject one you have already processed.
Tracking event IDs also gives you idempotency for free, which is worth having regardless of security.
#### Code examples
Each example returns `true` only for a request that is authentic, recent and correctly signed. All three use a constant-time comparison — `===`, `==` and `strcmp` leak timing information that can be used to recover a valid signature byte by byte.
###### JavaScript
```js
import crypto from 'crypto';
// Express: mount with express.raw({ type: 'application/json' }) so that
// req.body is a Buffer of the original bytes rather than a parsed object.
function verifyWebhook(req, secret, toleranceSec = 300) {
const timestamp = req.headers['x-timestamp'];
const eventId = req.headers['x-event-id'];
const provided = req.headers['x-signature'];
if (!timestamp || !eventId || !provided) return false;
const match = /^v1=([0-9a-f]{64})$/.exec(provided);
if (!match) return false;
// Reject stale requests before doing any crypto work
const age = Math.abs(Math.floor(Date.now() / 1000) - Number(timestamp));
if (!Number.isFinite(age) || age > toleranceSec) return false;
const rawBody = req.body.toString('utf8');
const signingString = `${eventId}.${timestamp}.${rawBody}`;
const expected = crypto
.createHmac('sha256', secret)
.update(signingString, 'utf8')
.digest('hex');
// Both are 64 hex chars by construction, so the lengths always match
return crypto.timingSafeEqual(
Buffer.from(expected, 'hex'),
Buffer.from(match[1], 'hex')
);
}
```
###### Python
```python
import hashlib
import hmac
import time
def verify_webhook(headers, raw_body: bytes, secret: str, tolerance_sec: int = 300) -> bool:
timestamp = headers.get("X-Timestamp")
event_id = headers.get("X-Event-Id")
provided = headers.get("X-Signature", "")
if not timestamp or not event_id or not provided.startswith("v1="):
return False
# Reject stale requests before doing any crypto work
try:
if abs(time.time() - int(timestamp)) > tolerance_sec:
return False
except ValueError:
return False
# raw_body stays as bytes; only the prefix is encoded
signing_string = f"{event_id}.{timestamp}.".encode("utf-8") + raw_body
expected = hmac.new(
secret.encode("utf-8"),
signing_string,
hashlib.sha256,
).hexdigest()
return hmac.compare_digest(expected, provided[3:])
```
###### PHP
```php
getContent();
// Plain PHP: $rawBody = file_get_contents('php://input');
function verifyWebhook(string $rawBody, array $headers, string $secret, int $toleranceSec = 300): bool
{
$timestamp = $headers['X-Timestamp'] ?? '';
$eventId = $headers['X-Event-Id'] ?? '';
$provided = $headers['X-Signature'] ?? '';
if ($timestamp === '' || $eventId === '' || ! str_starts_with($provided, 'v1=')) {
return false;
}
// Reject stale requests before doing any crypto work
if (abs(time() - (int) $timestamp) > $toleranceSec) {
return false;
}
$expected = 'v1=' . hash_hmac(
'sha256',
$eventId . '.' . $timestamp . '.' . $rawBody,
$secret
);
return hash_equals($expected, $provided);
}
```
#### Setting your secret
You choose your own secret and send it to us — see [Set webhook secret](https://docs.socialdata.tools/monitoring/set-webhook-secret/). Generate it with a CSPRNG rather than typing one, for example `openssl rand -hex 32`.
Deliveries are signed with the new value as soon as the change takes effect. Because the secret is used for signing rather than exchanged per request, rotating it briefly invalidates in-flight deliveries — rotate at a quiet moment, or accept both the old and new secret for a few minutes.
> **Signatures cannot be re-checked against event history**
>
> [Monitor event history](https://docs.socialdata.tools/monitoring/monitor-event-history/) stores each payload pretty-printed, and truncates very large ones. Those bytes are not the bytes we signed, so a payload replayed from history will not reproduce its original signature.
>
> This does not weaken anything — history is read from our API over your authenticated connection, so it is already trusted. Just don’t build a backfill path that expects to re-verify.
#### Related endpoints
- [Set webhook URL](https://docs.socialdata.tools/monitoring/set-global-webhook-url/)
- [Set webhook secret](https://docs.socialdata.tools/monitoring/set-webhook-secret/)
- [Monitor event history](https://docs.socialdata.tools/monitoring/monitor-event-history/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Monitoring API pricing](https://docs.socialdata.tools/monitoring/pricing/)
- [Processing webhook events](https://docs.socialdata.tools/monitoring/processing-webhooks/)
### Monitoring API: Pricing - Twitter Monitoring API
Source: [Pricing - Twitter Monitoring API](https://docs.socialdata.tools/monitoring/pricing/)
Monitors are billed from the same pay-as-you-go balance as the rest of the API. There is no subscription and no minimum commitment.
Two different billing models apply, depending on the type of monitor:
- **User monitors** are billed a flat hourly rate, regardless of how many events they deliver.
- **Search monitors** are billed per execution, based on how many tweets that execution delivered.
#### User monitors
The following prices apply to all user monitors:
- [User Tweets Monitor](https://docs.socialdata.tools/monitoring/create-user-tweets-monitor/)
- [User Following Monitor](https://docs.socialdata.tools/monitoring/create-user-following-monitor/)
- [User Profile Monitor](https://docs.socialdata.tools/monitoring/create-user-profile-monitor/)
Unlike our Data API, user monitors operate on a flat-rate, per-hour billing system. You are charged a consistent hourly rate regardless of the volume of tweets or user profiles received from the monitor. A monitor that delivers a hundred tweets in an hour costs exactly the same as one that delivers none.
The first hourly charge is deducted when the monitor is created. Subsequent charges are deducted at the beginning of every hour, for every active monitor.
Discounted rates apply automatically at the beginning of every hour based on the total number of active monitors that you have.
| Monitors count | Hourly rate per monitor | Est. monthly rate per monitor |
| --- | --- | --- |
| 1 - 10 | $0.0069 per hour | ~$4.99 per month |
| 11 - 100 | $0.0062 per hour | ~$4.49 per month |
| 101 - 300 | $0.0055 per hour | ~$3.99 per month |
| 301 - 500 | $0.0048 per hour | ~$3.49 per month |
| 501 - 1000 | $0.0042 per hour | ~$2.99 per month |
| 1000+ | $0.0035 per hour | ~$2.49 per month |
#### Search monitors
A [Search Query Monitor](https://docs.socialdata.tools/monitoring/create-search-query-monitor/) is billed per execution, at the same rate as our [Get search results](https://docs.socialdata.tools/reference/get-search-results/) endpoint:
- **$0.0002 per tweet delivered**, for every execution that finds new tweets
- **$0.0002 flat**, for every execution that delivers nothing
The flat charge exists because every execution runs a real search against Twitter whether or not it matches anything. An execution that delivers 5 tweets costs $0.0010; an execution that delivers none costs $0.0002.
There is no charge for creating a search monitor, and no hourly fee.
##### What this costs in practice
Your bill is driven by `refresh_frequency`, not by how active your query is. A monitor that never matches a single tweet still executes on schedule, and still costs money:
| refresh\_frequency | Executions per day | Min. cost per day | Min. cost per month |
| --- | --- | --- | --- |
| 30 seconds (default) | 2,880 | $0.58 | ~$17.28 |
| 60 seconds | 1,440 | $0.29 | ~$8.64 |
| 300 seconds | 288 | $0.06 | ~$1.73 |
| 3600 seconds | 24 | $0.005 | ~$0.14 |
Those are minimums, not estimates — delivered tweets are charged on top, at $0.0002 each.
> **Choosing a refresh frequency**
>
> Pick the slowest frequency your use case tolerates. A query on a rarely-tweeted topic polled every 30 seconds costs ~$17/month to mostly find nothing; the same query at 5 minutes costs ~$1.73/month and is still faster than most alerting workflows need. You can change the frequency at any time using the [Update monitor](https://docs.socialdata.tools/monitoring/edit-monitor-webhook/) endpoint.
##### When search charges appear
Charges for delivered tweets are recorded as those tweets are delivered. Charges for executions that delivered nothing are settled hourly, and once more when the monitor is deleted — so a monitor you delete mid-hour is still billed for the executions it ran before deletion.
Both kinds of charge appear in your usage history as regular tweet charges.
#### Running out of balance
Monitors are not served on an empty balance. When a charge cannot be collected, the monitor is **paused**: it stops checking for updates, stops delivering webhooks, and stops accruing charges. It is not deleted, and its configuration is preserved.
Topping up your balance resumes all paused monitors automatically.
Paused monitors keep appearing in [List active monitors](https://docs.socialdata.tools/monitoring/list-active-monitors/), so if a monitor has gone quiet without you deleting it, check your balance.
#### FAQ
**What is a monitor?**
> A monitor is a single record in the output of our [List Active Monitors](https://docs.socialdata.tools/monitoring/list-active-monitors/) endpoint. If you are monitoring tweets, following, and profile updates by the same Twitter user — this counts as 3 different monitors.
**Am I charged for duplicate webhook deliveries?**
> No. Each detected event is billed once, however many delivery attempts it takes.
**Am I charged when my webhook endpoint is down?**
> Yes. The charge is for detecting the event, which happened regardless of whether your server accepted the delivery. See [Processing webhook events](https://docs.socialdata.tools/monitoring/processing-webhooks/) for how to recover events your endpoint missed.
**Am I charged when a search monitor execution fails on our side?**
> No. Executions that fail before returning results are not billed.
### Monitoring API: Set Global Webhook URL - API Reference
Source: [Set Global Webhook URL - API Reference](https://docs.socialdata.tools/monitoring/set-global-webhook-url/)
Used to set the webhook URL that will be used for all monitors that don’t have a monitor-specific `webhook_url` set.
POST https://api.socialdata.tools/user/webhook
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Body
**url** `string` — required
New webhook URL that will be used for all monitors that don't have an individual webhook\_url set
Example: https://my-website.com/webhook
#### Code Examples
###### curl
```shellscript
curl -X POST "https://api.socialdata.tools/user/webhook" \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"url": "https://my-website.com/webhook"}'
```
###### JavaScript
```js
const API_KEY = 'YOUR_API_KEY_HERE';
const webhookUrl = 'https://my-website.com/webhook';
fetch('https://api.socialdata.tools/user/webhook', {
method: 'POST',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Content-Type': 'application/json',
'Accept': 'application/json'
},
body: JSON.stringify({ url: webhookUrl })
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
API_KEY = 'YOUR_API_KEY_HERE'
webhook_url = 'https://my-website.com/webhook'
url = 'https://api.socialdata.tools/user/webhook'
headers = {
'Authorization': f'Bearer {API_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
payload = {'url': webhook_url}
response = requests.post(url, json=payload, headers=headers)
if response.status_code == 200:
data = response.json()
print(data)
else:
print(f"Error: {response.status_code}")
print(response.text)
```
###### PHP
```php
$API_KEY = 'YOUR_API_KEY_HERE';
$webhook_url = 'https://my-website.com/webhook';
$url = "https://api.socialdata.tools/user/webhook";
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => json_encode(['url' => $webhook_url]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer $API_KEY",
"Content-Type: application/json",
"Accept: application/json"
]
]);
$response = curl_exec($ch);
$data = json_decode($response, true);
print_r($data);
curl_close($ch);
```
#### Example Responses
###### 200
```json
{
"status": "success",
"message": "Webhook URL updated"
}
```
###### 404
```json
{
"status": "error",
"message": "Not found"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **404 Not Found** - requested tweet does not exist
- **422 Unprocessable Content** - validation failed (e.g. one of the required parameters was not provided)
- **500 Internal Error** - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later
#### Related endpoints
- [Set webhook secret](https://docs.socialdata.tools/monitoring/set-webhook-secret/)
- [Verifying webhooks](https://docs.socialdata.tools/monitoring/verifying-webhooks/)
- [Monitor event history](https://docs.socialdata.tools/monitoring/monitor-event-history/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Monitoring API pricing](https://docs.socialdata.tools/monitoring/pricing/)
- [Processing webhook events](https://docs.socialdata.tools/monitoring/processing-webhooks/)
### Monitoring API: Set Webhook Secret - API Reference
Source: [Set Webhook Secret - API Reference](https://docs.socialdata.tools/monitoring/set-webhook-secret/)
Sets the shared secret used to sign every webhook we send you. Your server uses the same value to confirm a request is authentic — see [Verifying webhooks](https://docs.socialdata.tools/monitoring/verifying-webhooks/) for how.
You choose the value; there is no generate-a-secret endpoint. Use a CSPRNG rather than inventing one by hand:
```bash
openssl rand -hex 32
```
Calling this endpoint again replaces the previous secret. The account has one secret, shared by every monitor and every webhook URL.
POST https://api.socialdata.tools/user/webhook/secret
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Body
**secret** `string` — required
The shared secret used to sign webhook requests. Maximum 256 characters. Store it somewhere your webhook handler can read it, and treat it like a password
Example: 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
> **The secret cannot be read back**
>
> There is no endpoint that returns your current secret — it can only be overwritten. If you lose it, set a new one and update your handler.
#### Code Examples
###### curl
```shellscript
curl -X POST "https://api.socialdata.tools/user/webhook/secret" \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"secret": "YOUR_WEBHOOK_SECRET"}'
```
###### JavaScript
```js
const API_KEY = 'YOUR_API_KEY_HERE';
const webhookSecret = 'YOUR_WEBHOOK_SECRET';
fetch('https://api.socialdata.tools/user/webhook/secret', {
method: 'POST',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Content-Type': 'application/json',
'Accept': 'application/json'
},
body: JSON.stringify({ secret: webhookSecret })
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
API_KEY = 'YOUR_API_KEY_HERE'
webhook_secret = 'YOUR_WEBHOOK_SECRET'
url = 'https://api.socialdata.tools/user/webhook/secret'
headers = {
'Authorization': f'Bearer {API_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
payload = {'secret': webhook_secret}
response = requests.post(url, json=payload, headers=headers)
if response.status_code == 200:
data = response.json()
print(data)
else:
print(f"Error: {response.status_code}")
print(response.text)
```
###### PHP
```php
$API_KEY = 'YOUR_API_KEY_HERE';
$webhook_secret = 'YOUR_WEBHOOK_SECRET';
$url = "https://api.socialdata.tools/user/webhook/secret";
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => json_encode(['secret' => $webhook_secret]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer $API_KEY",
"Content-Type: application/json",
"Accept: application/json"
]
]);
$response = curl_exec($ch);
$data = json_decode($response, true);
print_r($data);
curl_close($ch);
```
#### Example Responses
###### 200
```json
{
"status": "success",
"message": "Webhook secret updated"
}
```
###### 422
```json
{
"message": "The secret field is required.",
"errors": {
"secret": [
"The secret field is required."
]
}
}
```
#### Response Codes
- **200 OK** - request succeeded
- **422 Unprocessable Content** - validation failed (e.g. one of the required parameters was not provided)
#### Rotating the secret
New deliveries are signed with the new value as soon as the change takes effect. Deliveries already in flight were signed with the old one, so a strict handler will reject them.
If dropped events matter, accept either secret for a few minutes:
1. Deploy a handler that treats a request as valid if it verifies against the old secret **or** the new one.
2. Call this endpoint with the new secret.
3. Once traffic has settled, remove the old secret from the handler.
#### Related endpoints
- [Set webhook URL](https://docs.socialdata.tools/monitoring/set-global-webhook-url/)
- [Verifying webhooks](https://docs.socialdata.tools/monitoring/verifying-webhooks/)
- [Monitor event history](https://docs.socialdata.tools/monitoring/monitor-event-history/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Monitoring API pricing](https://docs.socialdata.tools/monitoring/pricing/)
- [Processing webhook events](https://docs.socialdata.tools/monitoring/processing-webhooks/)
### Monitoring API: Create New User Tweets Monitor - API Reference
Source: [Create New User Tweets Monitor - API Reference](https://docs.socialdata.tools/monitoring/create-user-tweets-monitor/)
Creates a new monitor to receive alerts when the target Twitter user posts a new tweet or makes a retweet.
Delivery is not real-time — events typically arrive within 30 seconds of the change. See [Delivery timing](https://docs.socialdata.tools/monitoring/introduction/#delivery-timing).
When adding a new monitor, SocialData will attempt to fetch user details and return `HTTP Status 422` in case the user timeline is protected or the user is not found.
POST https://api.socialdata.tools/monitors/user-tweets
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Body
**user\_id** `integer` — required
User ID of the target user. Required if `user_screen_name` not provided
Example: 1493446837214187523
**user\_screen\_name** `string` — required
Username of the target user without @. Required if `user_id` not provided
Example: elonmusk
**webhook\_url** `string` — optional
Monitor-specific webhook URL that will override your [global webhook URL](https://docs.socialdata.tools/monitoring/set-global-webhook-url/). Not required.
If you want to send events to Discord or Telegram, please read the [following section](#receiving-events-in-telegram-or-discord)
Example: https://my-website.com/webhook
#### Code Examples
###### curl
```shellscript
curl -X POST "https://api.socialdata.tools/monitors/user-tweets" \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"user_id": 1493446837214187523}'
```
###### JavaScript
```js
const API_KEY = 'YOUR_API_KEY_HERE';
const userId = 1493446837214187523;
fetch('https://api.socialdata.tools/monitors/user-tweets', {
method: 'POST',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Content-Type': 'application/json',
'Accept': 'application/json'
},
body: JSON.stringify({ user_id: userId })
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
API_KEY = 'YOUR_API_KEY_HERE'
user_id = 1493446837214187523
url = 'https://api.socialdata.tools/monitors/user-tweets'
headers = {
'Authorization': f'Bearer {API_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
payload = {'user_id': user_id}
response = requests.post(url, json=payload, headers=headers)
if response.status_code == 200:
data = response.json()
print(data)
else:
print(f"Error: {response.status_code}")
print(response.text)
```
###### PHP
```php
$API_KEY = 'YOUR_API_KEY_HERE';
$user_id = 1493446837214187523;
$url = "https://api.socialdata.tools/monitors/user-tweets";
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => json_encode(['user_id' => $user_id]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer $API_KEY",
"Content-Type: application/json",
"Accept: application/json"
]
]);
$response = curl_exec($ch);
$data = json_decode($response, true);
print_r($data);
curl_close($ch);
```
#### Example Responses
###### 200
```json
{
"status": "success",
"data": {
"id": "01jm2569nf8jnn50zd8302vnpr",
"created_at": "2025-02-14T11:58:33.000000Z",
"monitor_type": "user_tweets",
"status": "active",
"webhook_url": null,
"parameters": {
"user_screen_name": "MarioNawfal",
"user_name": "Mario Nawfal",
"user_id_str": "1319287761048723458"
}
}
}
```
###### 402
```json
{
"status": "error",
"message": "Insufficient balance"
}
```
###### 404
```json
{
"status": "error",
"message": "Not found"
}
```
###### 500
```json
{
"status": "error",
"message": "Failed to fetch data from Twitter"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **402 Payment Required** - not enough credits to perform this request
- **422 Unprocessable Content** - validation failed (e.g. one of the required parameters was not provided)
- **500 Internal Error** - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later
#### Webhook Payload Example
When a monitor detects a new tweet posted by the target user, the API will make a `POST` request to your webhook URL with the following payload:
###### json
```json
{
"event": "new_tweet",
"data": {
"tweet_created_at": "2025-02-12T02:43:10.000000Z",
"id": 1889505498761703504,
"id_str": "1889505498761703504",
"conversation_id_str": "1889505498761703504",
"text": null,
"full_text": "Assange is right!",
"source": "Twitter for iPhone<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 44196397,
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"location": "",
"url": null,
"description": "",
"protected": false,
"verified": true,
"followers_count": 217258406,
"friends_count": 1013,
"listed_count": 159662,
"favourites_count": 122139,
"statuses_count": 70054,
"created_at": "2009-06-02T20:12:29.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/44196397\/1726163678",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1874558173962481664\/8HSTqIlD_normal.jpg",
"can_dm": false
},
"quoted_status_id": null,
"quoted_status_id_str": "1889494636323885155",
"is_quote_status": true,
"quoted_status": {
"tweet_created_at": "2025-02-12T02:00:01.000000Z",
"id": 1889494636323885155,
"id_str": "1889494636323885155",
"conversation_id_str": "1889494636323885155",
"text": null,
"full_text": "\ud83d\udea8ASSANGE ON USAID: \u2018CIVIL SOCIETY IS A FABLE\u2019\n\nAssange exposed how NGOs have been co-opted into political weapons, arguing that civil society is no longer independent but a \u201cbuyer\u2019s market\u201d for influence:\n\n\u201cThe last forty years have seen a huge proliferation of think tanks and political NGOs whose purpose, beneath all the verbiage, is to execute political agendas by proxy.\u201d\n\nHe singled out USAID, Freedom House, and \u2018civil society\u2019 events as vehicles for Western political interests masquerading as grassroots activism.\n\nSource: @WikiLeaks",
"source": "Twitter Web Client<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 1319287761048723458,
"id_str": "1319287761048723458",
"name": "Mario Nawfal",
"screen_name": "MarioNawfal",
"location": "",
"url": "https:\/\/roundtable.live",
"description": "Largest Show on X | Founder @ibcgroupio",
"protected": false,
"verified": true,
"followers_count": 2030538,
"friends_count": 44251,
"listed_count": 8614,
"favourites_count": 144210,
"statuses_count": 109900,
"created_at": "2020-10-22T14:42:25.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/1319287761048723458\/1736691634",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1670905743619268609\/pYItlWat_normal.jpg",
"can_dm": true
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 16,
"reply_count": 51,
"retweet_count": 350,
"favorite_count": 871,
"views_count": 26067,
"bookmark_count": 54,
"lang": "en",
"entities": {
"user_mentions": [
{
"id_str": "16589206",
"name": "WikiLeaks",
"screen_name": "WikiLeaks",
"indices": [
532,
542
]
}
],
"urls": [],
"hashtags": [],
"symbols": []
},
"is_pinned": false
},
"retweeted_status": null,
"quote_count": 0,
"reply_count": 7,
"retweet_count": 0,
"favorite_count": 1,
"views_count": null,
"bookmark_count": 2,
"lang": "en",
"entities": {
"user_mentions": [],
"urls": [],
"hashtags": [],
"symbols": []
},
"is_pinned": false
},
"meta": {
"monitor_id": "01jkt060zcz108b78fke6hm1g4",
"monitor_type": "user_tweets",
"monitored_id_str": "44196397",
"monitored_username": "elonmusk"
}
}
```
###### TypeScript
```js
interface NewTweetEvent {
event: string;
data: Tweet;
meta: {
monitor_id: string;
monitor_type: string;
monitored_id_str: string;
monitored_username: string;
};
}
interface Tweet {
tweet_created_at: string;
id: number;
id_str: string;
conversation_id_str: string | null;
text: string | null;
full_text: string;
source: string;
truncated: boolean;
in_reply_to_status_id: number | null;
in_reply_to_status_id_str: string | null;
in_reply_to_user_id: number | null;
in_reply_to_user_id_str: string | null;
in_reply_to_screen_name: string | null;
user: User;
quoted_status_id: number | null;
quoted_status_id_str: string | null;
is_quote_status: boolean;
quoted_status: Tweet | null;
retweeted_status: Tweet | null;
quote_count: number;
reply_count: number;
retweet_count: number;
favorite_count: number;
views_count: number | null;
bookmark_count: number;
lang: string;
entities: any;
is_pinned: boolean;
}
interface User {
id: number;
id_str: string;
name: string;
screen_name: string;
location: string;
url: string | null;
description: string;
protected: boolean;
verified: boolean;
followers_count: number;
friends_count: number;
listed_count: number;
favourites_count: number;
statuses_count: number;
created_at: string;
profile_banner_url: string;
profile_image_url_https: string;
can_dm: boolean;
}
```
#### Receiving Events in Telegram or Discord
The SocialData Monitor event schema differs from what Discord or Telegram expect. If you would like to receive notifications in your Discord channel or Telegram bot, we provide pre-built webhook handlers hosted on [Val Town](https://val.town), eliminating the need to develop your own custom application.
Simply copy the following webhook handler to your own Val Town account and configure your monitor’s `webhook_url` to direct events to your webhook handler: [**Tweet event webhook handler**](https://www.val.town/v/socialdata/twitterNewTweetAlert)
#### Related endpoints
- [Create user following monitor](https://docs.socialdata.tools/monitoring/create-user-following-monitor/)
- [Create user profile monitor](https://docs.socialdata.tools/monitoring/create-user-profile-monitor/)
- [Create search monitor](https://docs.socialdata.tools/monitoring/create-search-query-monitor/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Monitoring API pricing](https://docs.socialdata.tools/monitoring/pricing/)
- [Processing webhook events](https://docs.socialdata.tools/monitoring/processing-webhooks/)
### Monitoring API: Create User Following Monitor - API Reference
Source: [Create User Following Monitor - API Reference](https://docs.socialdata.tools/monitoring/create-user-following-monitor/)
Creates a new monitor to receive alerts when the target Twitter user follows someone.
Delivery is not real-time — events typically arrive within 30 seconds of the change. See [Delivery timing](https://docs.socialdata.tools/monitoring/introduction/#delivery-timing).
POST https://api.socialdata.tools/monitors/user-following
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Body
**user\_id** `integer` — required
User ID of the target user. Required if `user_screen_name` not provided
Example: 1493446837214187523
**user\_screen\_name** `string` — required
Username of the target user without @. Required if `user_id` not provided
Example: elonmusk
**webhook\_url** `string` — optional
Monitor-specific webhook URL that will override your [global webhook URL](https://docs.socialdata.tools/monitoring/set-global-webhook-url/). Not required.
If you want to send events to Discord or Telegram, please read the [following section](#receiving-events-in-telegram-or-discord)
Example: https://my-website.com/webhook
#### Code Examples
###### curl
```shellscript
curl -X POST "https://api.socialdata.tools/monitors/user-following" \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"user_id": 1493446837214187523}'
```
###### JavaScript
```js
const API_KEY = 'YOUR_API_KEY_HERE';
const userId = 1493446837214187523;
fetch('https://api.socialdata.tools/monitors/user-following', {
method: 'POST',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Content-Type': 'application/json',
'Accept': 'application/json'
},
body: JSON.stringify({ user_id: userId })
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
API_KEY = 'YOUR_API_KEY_HERE'
user_id = 1493446837214187523
url = 'https://api.socialdata.tools/monitors/user-following'
headers = {
'Authorization': f'Bearer {API_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
payload = {'user_id': user_id}
response = requests.post(url, json=payload, headers=headers)
if response.status_code == 200:
data = response.json()
print(data)
else:
print(f"Error: {response.status_code}")
print(response.text)
```
###### PHP
```php
$API_KEY = 'YOUR_API_KEY_HERE';
$user_id = 1493446837214187523;
$url = "https://api.socialdata.tools/monitors/user-following";
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => json_encode(['user_id' => $user_id]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer $API_KEY",
"Content-Type: application/json",
"Accept: application/json"
]
]);
$response = curl_exec($ch);
$data = json_decode($response, true);
print_r($data);
curl_close($ch);
```
#### Example Responses
###### 200
```json
{
"status": "success",
"data": {
"id": "01jm2569nf8jnn50zd8302vnpr",
"created_at": "2025-02-14T11:58:33.000000Z",
"monitor_type": "user_following",
"status": "active",
"webhook_url": null,
"parameters": {
"user_screen_name": "MarioNawfal",
"user_name": "Mario Nawfal",
"user_id_str": "1319287761048723458"
}
}
}
```
###### 402
```json
{
"status": "error",
"message": "Insufficient balance"
}
```
###### 500
```json
{
"status": "error",
"message": "Failed to fetch data from Twitter"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **402 Payment Required** - not enough credits to perform this request
- **422 Unprocessable Content** - validation failed (e.g. one of the required parameters was not provided)
- **500 Internal Error** - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later
#### Webhook Payload Example
When a monitor detects a new user followed by the target user, the API will make a `POST` request to your webhook URL with the following payload:
###### json
```json
{
"event": "new_following",
"data": {
"id": 295218901,
"id_str": "295218901",
"name": "vitalik.eth",
"screen_name": "VitalikButerin",
"location": "Earth",
"url": null,
"description": "mi pinxe lo crino tcati",
"protected": false,
"verified": true,
"followers_count": 5702740,
"friends_count": 465,
"listed_count": 37058,
"favourites_count": 8856,
"statuses_count": 20628,
"created_at": "2011-05-08T16:03:03.000000Z",
"profile_banner_url": "https://pbs.twimg.com/profile_banners/295218901/1638557376",
"profile_image_url_https": "https://pbs.twimg.com/profile_images/1880759276169224192/rXpjZO0A_normal.jpg",
"can_dm": false
},
"meta": {
"monitor_id": "01jkt060zcz108b78fke6hm1g4",
"monitor_type": "user_following",
"monitored_id_str": "44196397",
"monitored_username": "elonmusk"
}
}
```
###### TypeScript
```js
interface NewFollowingEvent {
event: string;
data: {
id: number;
id_str: string;
name: string;
screen_name: string;
location: string;
url: string | null;
description: string;
protected: boolean;
verified: boolean;
followers_count: number;
friends_count: number;
listed_count: number;
favourites_count: number;
statuses_count: number;
created_at: string;
profile_banner_url: string;
profile_image_url_https: string;
can_dm: boolean;
};
meta: {
monitor_id: string;
monitor_type: string;
monitored_id_str: string;
monitored_username: string;
};
}
```
#### Receiving Events in Telegram or Discord
The SocialData Monitor event schema differs from what Discord or Telegram expect. If you would like to receive notifications in your Discord channel or Telegram bot, we provide pre-built webhook handlers hosted on [Val Town](https://val.town), eliminating the need to develop your own custom application.
Simply copy the following webhook handler to your own Val Town account and configure your monitor’s `webhook_url` to direct events to your webhook handler: [**User following event webhook handler**](https://www.val.town/v/socialdata/twitterNewFollowingAlert)
#### Related endpoints
- [Create user tweets monitor](https://docs.socialdata.tools/monitoring/create-user-tweets-monitor/)
- [Create user profile monitor](https://docs.socialdata.tools/monitoring/create-user-profile-monitor/)
- [Create search monitor](https://docs.socialdata.tools/monitoring/create-search-query-monitor/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Monitoring API pricing](https://docs.socialdata.tools/monitoring/pricing/)
- [Processing webhook events](https://docs.socialdata.tools/monitoring/processing-webhooks/)
### Monitoring API: Create User Profile Monitor - API Reference
Source: [Create User Profile Monitor - API Reference](https://docs.socialdata.tools/monitoring/create-user-profile-monitor/)
Creates a new monitor to receive alerts when the target Twitter user changes their profile (e.g. updates their bio or location).
Delivery is not real-time — events typically arrive within 30 seconds of the change. See [Delivery timing](https://docs.socialdata.tools/monitoring/introduction/#delivery-timing).
Changes in any of the following user profile properties will trigger an event: `name`, `screen_name`, `location`, `url`, `description`, `profile_banner_url`, `profile_image_url_https`.
POST https://api.socialdata.tools/monitors/user-profile
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Path Parameters
**user\_id** `integer` — required
User ID of the target user. Required if `user_screen_name` not provided
Example: 1493446837214187523
**user\_screen\_name** `string` — required
Username of the target user without @. Required if `user_id` not provided
Example: elonmusk
**webhook\_url** `string` — optional
Monitor-specific webhook URL that will override your [global webhook URL](https://docs.socialdata.tools/monitoring/set-global-webhook-url/). Not required.
If you want to send events to Discord or Telegram, please read the [following section](#receiving-events-in-telegram-or-discord)
Example: https://my-website.com/webhook
#### Code Examples
###### curl
```shellscript
curl -X POST "https://api.socialdata.tools/monitors/user-profile" \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"user_id": 1493446837214187523}'
```
###### JavaScript
```js
const API_KEY = 'YOUR_API_KEY_HERE';
const userId = 1493446837214187523;
fetch('https://api.socialdata.tools/monitors/user-profile', {
method: 'POST',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Content-Type': 'application/json',
'Accept': 'application/json'
},
body: JSON.stringify({ user_id: userId })
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
API_KEY = 'YOUR_API_KEY_HERE'
user_id = 1493446837214187523
url = 'https://api.socialdata.tools/monitors/user-profile'
headers = {
'Authorization': f'Bearer {API_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
payload = {'user_id': user_id}
response = requests.post(url, json=payload, headers=headers)
if response.status_code == 200:
data = response.json()
print(data)
else:
print(f"Error: {response.status_code}")
print(response.text)
```
###### PHP
```php
$API_KEY = 'YOUR_API_KEY_HERE';
$user_id = 1493446837214187523;
$url = "https://api.socialdata.tools/monitors/user-profile";
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => json_encode(['user_id' => $user_id]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer $API_KEY",
"Content-Type: application/json",
"Accept: application/json"
]
]);
$response = curl_exec($ch);
$data = json_decode($response, true);
print_r($data);
curl_close($ch);
```
#### Example Responses
###### 200
```json
{
"status": "success",
"data": {
"id": "01jm2569nf8jnn50zd8302vnpr",
"created_at": "2025-02-14T11:58:33.000000Z",
"monitor_type": "user_profile",
"status": "active",
"webhook_url": null,
"parameters": {
"user_screen_name": "MarioNawfal",
"user_name": "Mario Nawfal",
"user_id_str": "1319287761048723458"
}
}
}
```
###### 402
```json
{
"status": "error",
"message": "Insufficient balance"
}
```
###### 404
```json
{
"status": "error",
"message": "User not found"
}
```
###### 500
```json
{
"status": "error",
"message": "Failed to fetch data from Twitter"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **402 Payment Required** - not enough credits to perform this request
- **422 Unprocessable Content** - validation failed (e.g. one of the required parameters was not provided)
- **500 Internal Error** - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later
#### Webhook Payload Example
When a monitor detects any changes in the profile of your target user, the API will make a `POST` request to your webhook URL with the following payload:
###### json
```json
{
"event": "profile_update",
"data": {
"id": 44196397,
"id_str": "44196397",
"name": "Kekius Maximus",
"screen_name": "elonmusk",
"location": "",
"url": null,
"description": "",
"protected": false,
"verified": true,
"followers_count": 217258406,
"friends_count": 1013,
"listed_count": 159662,
"favourites_count": 122139,
"statuses_count": 70054,
"created_at": "2009-06-02T20:12:29.000000Z",
"profile_banner_url": "https://pbs.twimg.com/profile_banners/44196397/1726163678",
"profile_image_url_https": "https://pbs.twimg.com/profile_images/1874558173962481664/8HSTqIlD_normal.jpg",
"can_dm": false,
"changes": {
"name": {
"old": "Elon Musk",
"new": "Kekius Maximus"
}
},
"meta": {
"monitor_id": "01jkt060zcz108b78fke6hm1g4",
"monitor_type": "user_profile",
"monitored_id_str": "44196397",
"monitored_username": "elonmusk"
}
}
```
###### TypeScript
```js
interface ProfileUpdateEvent {
event: string;
data: {
id: number;
id_str: string;
name: string;
screen_name: string;
location: string;
url: string | null;
description: string;
protected: boolean;
verified: boolean;
followers_count: number;
friends_count: number;
listed_count: number;
favourites_count: number;
statuses_count: number;
created_at: string;
profile_banner_url: string;
profile_image_url_https: string;
can_dm: boolean;
changes: {
[key: string]: {
old: string;
new: string;
};
};
};
meta: {
monitor_id: string;
monitor_type: string;
monitored_id_str: string;
monitored_username: string;
};
}
```
#### Receiving Events in Telegram or Discord
The SocialData Monitor event schema differs from what Discord or Telegram expect. If you would like to receive notifications in your Discord channel or Telegram bot, we provide pre-built webhook handlers hosted on [Val Town](https://val.town), eliminating the need to develop your own custom application.
Simply copy the following webhook handler to your own Val Town account and configure your monitor’s `webhook_url` to direct events to your webhook handler: [**User profile update webhook handler**](https://www.val.town/v/socialdata/twitterProfileUpdatedAlert)
#### Related endpoints
- [Create user tweets monitor](https://docs.socialdata.tools/monitoring/create-user-tweets-monitor/)
- [Create user following monitor](https://docs.socialdata.tools/monitoring/create-user-following-monitor/)
- [Create search monitor](https://docs.socialdata.tools/monitoring/create-search-query-monitor/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Monitoring API pricing](https://docs.socialdata.tools/monitoring/pricing/)
- [Processing webhook events](https://docs.socialdata.tools/monitoring/processing-webhooks/)
### Monitoring API: Create New Search Query Monitor - API Reference
Source: [Create New Search Query Monitor - API Reference](https://docs.socialdata.tools/monitoring/create-search-query-monitor/)
Creates a new search query monitor. SocialData will run your monitor every `refresh_frequency` seconds, retrieve recent search results for `query`, and dispatch each new matching tweet as an individual webhook event.
Each execution reads the most recent page of results and pages back only as far as it needs to reach tweets it has already seen, up to a maximum of 3 pages. A monitor that keeps up with its query normally reads a single page per execution.
#### Delivery behaviour
- **The first execution delivers nothing.** It records which tweets already match your query so that only genuinely new ones are reported afterwards. Tweets posted before you created the monitor are never delivered.
- **Each tweet is delivered once.** A tweet that keeps matching your query on later executions is not re-sent.
- **Tweets that are already old when found are skipped.** If a tweet surfaces in search long after it was posted, it is not delivered. The cutoff is twice your `refresh_frequency`, or 10 minutes, whichever is longer.
- **The monitor pauses if your balance runs out**, and resumes when you top up.
#### Cost
Search monitors are billed **$0.0002 per delivered tweet**, and **$0.0002 for each execution that delivers nothing** — every execution runs a real Twitter search whether or not it matches. Your floor cost is therefore set by `refresh_frequency`: at the default 30 seconds, a monitor executes 2,880 times a day and costs at least ~$17/month even if it never matches anything. See [Pricing](https://docs.socialdata.tools/monitoring/pricing/#search-monitors) before choosing a frequency.
POST https://api.socialdata.tools/monitors/search-query
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Body
**query** `string` — required
A UTF-8, URL-encoded search query of up to 512 characters, including any [operators supported by Twitter's website search](https://docs.socialdata.tools/resources/twitter-search-operators/)
Example: from:elonmusk doge
**refresh\_frequency** `integer` — optional
How often the monitor executes, in seconds (value between 1 and 3600). This is the main driver of what the monitor costs — see [Pricing](https://docs.socialdata.tools/monitoring/pricing/#search-monitors)
Example: 300
**webhook\_url** `string` — optional
Monitor-specific webhook URL that will override your [global webhook URL](https://docs.socialdata.tools/monitoring/set-global-webhook-url/). Not required.
If you want to send events to Discord or Telegram, please read the [following section](#receiving-events-in-telegram-or-discord)
Example: https://my-website.com/webhook
#### Code Examples
###### curl
```shellscript
curl -X POST "https://api.socialdata.tools/monitors/search-query" \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"refresh_frequency": 30, "query": "from:elonmusk"}'
```
###### JavaScript
```js
const API_KEY = 'YOUR_API_KEY_HERE';
fetch('https://api.socialdata.tools/monitors/search-query', {
method: 'POST',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Content-Type': 'application/json',
'Accept': 'application/json'
},
body: JSON.stringify({
refresh_frequency: 30,
query: "from:elonmusk"
})
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
API_KEY = 'YOUR_API_KEY_HERE'
url = 'https://api.socialdata.tools/monitors/search-query'
headers = {
'Authorization': f'Bearer {API_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
payload = {
'refresh_frequency': 30,
'query': 'from:elonmusk'
}
response = requests.post(url, headers=headers, json=payload)
if response.status_code == 200:
data = response.json()
print(data)
else:
print(f"Error: {response.status_code}")
print(response.text)
```
###### PHP
```php
$API_KEY = 'YOUR_API_KEY_HERE';
$url = "https://api.socialdata.tools/monitors/search-query";
$ch = curl_init();
$payload = json_encode([
'refresh_frequency' => 30,
'query' => 'from:elonmusk'
]);
curl_setopt_array($ch, [
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer $API_KEY",
"Content-Type: application/json",
"Accept: application/json"
],
CURLOPT_POSTFIELDS => $payload
]);
$response = curl_exec($ch);
$data = json_decode($response, true);
print_r($data);
curl_close($ch)
```
#### Example Responses
###### 200
```json
{
"status": "success",
"data": {
"id": "01jqty3m3dhg9xpsj373x12ck7",
"created_at": "2025-04-02T09:42:51.000000Z",
"monitor_type": "search_keyword",
"status": "active",
"webhook_url": "...",
"parameters": {
"query": "from:elonmusk"
},
"refresh_frequency": "30"
}
}
```
###### 402
```json
{
"status": "error",
"message": "Insufficient balance"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **402 Payment Required** - not enough credits to perform this request
- **422 Unprocessable Content** - validation failed (e.g. one of the required parameters was not provided)
#### Webhook Payload Example
When a monitor detects a new tweet that matches the target search `query`, the API will make a `POST` request to your webhook URL with the following payload:
###### json
```json
{
"event": "new_tweet",
"data": {
"tweet_created_at": "2025-02-12T02:43:10.000000Z",
"id": 1889505498761703504,
"id_str": "1889505498761703504",
"conversation_id_str": "1889505498761703504",
"text": null,
"full_text": "Assange is right!",
"source": "Twitter for iPhone<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 44196397,
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"location": "",
"url": null,
"description": "",
"protected": false,
"verified": true,
"followers_count": 217258406,
"friends_count": 1013,
"listed_count": 159662,
"favourites_count": 122139,
"statuses_count": 70054,
"created_at": "2009-06-02T20:12:29.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/44196397\/1726163678",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1874558173962481664\/8HSTqIlD_normal.jpg",
"can_dm": false
},
"quoted_status_id": null,
"quoted_status_id_str": "1889494636323885155",
"is_quote_status": true,
"quoted_status": {
"tweet_created_at": "2025-02-12T02:00:01.000000Z",
"id": 1889494636323885155,
"id_str": "1889494636323885155",
"conversation_id_str": "1889494636323885155",
"text": null,
"full_text": "\ud83d\udea8ASSANGE ON USAID: \u2018CIVIL SOCIETY IS A FABLE\u2019\n\nAssange exposed how NGOs have been co-opted into political weapons, arguing that civil society is no longer independent but a \u201cbuyer\u2019s market\u201d for influence:\n\n\u201cThe last forty years have seen a huge proliferation of think tanks and political NGOs whose purpose, beneath all the verbiage, is to execute political agendas by proxy.\u201d\n\nHe singled out USAID, Freedom House, and \u2018civil society\u2019 events as vehicles for Western political interests masquerading as grassroots activism.\n\nSource: @WikiLeaks",
"source": "Twitter Web Client<\/a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 1319287761048723458,
"id_str": "1319287761048723458",
"name": "Mario Nawfal",
"screen_name": "MarioNawfal",
"location": "",
"url": "https:\/\/roundtable.live",
"description": "Largest Show on X | Founder @ibcgroupio",
"protected": false,
"verified": true,
"followers_count": 2030538,
"friends_count": 44251,
"listed_count": 8614,
"favourites_count": 144210,
"statuses_count": 109900,
"created_at": "2020-10-22T14:42:25.000000Z",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/1319287761048723458\/1736691634",
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1670905743619268609\/pYItlWat_normal.jpg",
"can_dm": true
},
"quoted_status_id": null,
"quoted_status_id_str": null,
"is_quote_status": false,
"quoted_status": null,
"retweeted_status": null,
"quote_count": 16,
"reply_count": 51,
"retweet_count": 350,
"favorite_count": 871,
"views_count": 26067,
"bookmark_count": 54,
"lang": "en",
"entities": {
"user_mentions": [
{
"id_str": "16589206",
"name": "WikiLeaks",
"screen_name": "WikiLeaks",
"indices": [
532,
542
]
}
],
"urls": [],
"hashtags": [],
"symbols": []
},
"is_pinned": false
},
"retweeted_status": null,
"quote_count": 0,
"reply_count": 7,
"retweet_count": 0,
"favorite_count": 1,
"views_count": null,
"bookmark_count": 2,
"lang": "en",
"entities": {
"user_mentions": [],
"urls": [],
"hashtags": [],
"symbols": []
},
"is_pinned": false
},
"meta": {
"monitor_id": "01jkt060zcz108b78fke6hm1g4",
"monitor_type": "search_keyword",
"monitored_query": "from:elonmusk"
}
}
```
###### TypeScript
```js
interface NewTweetEvent {
event: string;
data: Tweet;
meta: {
monitor_id: string;
monitor_type: string;
// Search monitors report the query they matched. User monitors
// report monitored_id_str and monitored_username instead.
monitored_query: string;
};
}
interface Tweet {
tweet_created_at: string;
id: number;
id_str: string;
conversation_id_str: string | null;
text: string | null;
full_text: string;
source: string;
truncated: boolean;
in_reply_to_status_id: number | null;
in_reply_to_status_id_str: string | null;
in_reply_to_user_id: number | null;
in_reply_to_user_id_str: string | null;
in_reply_to_screen_name: string | null;
user: User;
quoted_status_id: number | null;
quoted_status_id_str: string | null;
is_quote_status: boolean;
quoted_status: Tweet | null;
retweeted_status: Tweet | null;
quote_count: number;
reply_count: number;
retweet_count: number;
favorite_count: number;
views_count: number | null;
bookmark_count: number;
lang: string;
entities: any;
is_pinned: boolean;
}
interface User {
id: number;
id_str: string;
name: string;
screen_name: string;
location: string;
url: string | null;
description: string;
protected: boolean;
verified: boolean;
followers_count: number;
friends_count: number;
listed_count: number;
favourites_count: number;
statuses_count: number;
created_at: string;
profile_banner_url: string;
profile_image_url_https: string;
can_dm: boolean;
}
```
#### Receiving Events in Telegram or Discord
The SocialData Monitor event schema differs from what Discord or Telegram expect. If you would like to receive notifications in your Discord channel or Telegram bot, we provide pre-built webhook handlers hosted on [Val Town](https://val.town), eliminating the need to develop your own custom application.
Simply copy the following webhook handler to your own Val Town account and configure your monitor’s `webhook_url` to direct events to your webhook handler: [**Tweet event webhook handler**](https://www.val.town/v/socialdata/twitterNewTweetAlert)
#### Related endpoints
- [Get search results](https://docs.socialdata.tools/reference/get-search-results/)
- [Get community search results](https://docs.socialdata.tools/reference/get-community-search-results/)
- [Twitter search operators](https://docs.socialdata.tools/resources/twitter-search-operators/)
- [Create user tweets monitor](https://docs.socialdata.tools/monitoring/create-user-tweets-monitor/)
- [Create user following monitor](https://docs.socialdata.tools/monitoring/create-user-following-monitor/)
- [Create user profile monitor](https://docs.socialdata.tools/monitoring/create-user-profile-monitor/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Monitoring API pricing](https://docs.socialdata.tools/monitoring/pricing/)
- [Processing webhook events](https://docs.socialdata.tools/monitoring/processing-webhooks/)
### Monitoring API: Get Monitor Details - API Reference
Source: [Get Monitor Details - API Reference](https://docs.socialdata.tools/monitoring/get-monitor-details/)
Returns monitor details.
The `status` field is either `active` or `paused`. A monitor is paused when a charge could not be collected from your balance — it stops checking for updates and stops delivering webhooks until you top up, at which point it resumes automatically. See [Pricing](https://docs.socialdata.tools/monitoring/pricing/#running-out-of-balance).
Deleted monitors are not returned by this endpoint and respond with `404` instead.
GET https://api.socialdata.tools/monitors/{monitor\_id}
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Path Parameters
**monitor\_id** `string` — required
Target monitor ID
Example: 01jeg76qa91b095gttamsbwa6q
#### Code Examples
###### curl
```shellscript
curl "https://api.socialdata.tools/monitors/01jeg76qa91b095gttamsbwa6q" \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Accept: application/json'
```
###### JavaScript
```js
const monitorId = '01jeg76qa91b095gttamsbwa6q';
const API_KEY = 'YOUR_API_KEY_HERE';
fetch(`https://api.socialdata.tools/monitors/${monitorId}`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Accept': 'application/json'
}
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
monitor_id = '01jeg76qa91b095gttamsbwa6q'
API_KEY = 'YOUR_API_KEY_HERE'
url = f'https://api.socialdata.tools/monitors/{monitor_id}'
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)
```
###### PHP
```php
$monitor_id = '01jeg76qa91b095gttamsbwa6q';
$API_KEY = 'YOUR_API_KEY_HERE';
$url = "https://api.socialdata.tools/monitors/{$monitor_id}";
$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
###### 200
```json
{
"status": "success",
"data": {
"id": "01jkf3zgfwt8gnpgevxf9w6h58",
"created_at": "2025-02-07T02:31:47.000000Z",
"monitor_type": "user_following",
"status": "active",
"webhook_url": null,
"parameters": {
"user_screen_name": "elonmusk",
"user_name": "Elon Musk",
"user_id_str": "44196397"
}
}
}
```
###### 404
```json
{
"status": "error",
"message": "Not found"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **404 Not Found** - requested monitor 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
#### Related endpoints
- [List active monitors](https://docs.socialdata.tools/monitoring/list-active-monitors/)
- [Monitor event history](https://docs.socialdata.tools/monitoring/monitor-event-history/)
- [Update monitor](https://docs.socialdata.tools/monitoring/edit-monitor-webhook/)
- [Delete monitor](https://docs.socialdata.tools/monitoring/delete-monitor/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Monitoring API pricing](https://docs.socialdata.tools/monitoring/pricing/)
- [Processing webhook events](https://docs.socialdata.tools/monitoring/processing-webhooks/)
### Monitoring API: List Active Monitors - API Reference
Source: [List Active Monitors - API Reference](https://docs.socialdata.tools/monitoring/list-active-monitors/)
Returns a list of monitors owned by the user, newest first.
Both active and paused monitors are returned — check each monitor’s `status` field to tell them apart. A monitor is paused when a charge could not be collected from your balance; it stops checking for updates until you top up, then resumes automatically. See [Pricing](https://docs.socialdata.tools/monitoring/pricing/#running-out-of-balance).
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
Example: 2
**per\_page** `integer` — optional
Monitors returned per page. Values above 50 are capped at 50
Example: 50
#### Code Examples
###### curl
```shellscript
curl "https://api.socialdata.tools/monitors" \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Accept: application/json'
```
###### JavaScript
```js
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));
```
###### Python
```python
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)
```
###### PHP
```php
$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
###### 200
```json
{
"data": [
{
"id": "01jhfkd7xsvy6afdmwycs1qn61",
"created_at": "2025-01-13T15:30:02.000000Z",
"monitor_type": "user_following",
"status": "active",
"webhook_url": null,
"parameters": {
"user_screen_name": "elonmusk",
"user_name": "Elon Musk",
"user_id_str": "44196397"
}
},
{
"id": "01jhfkdcmt0d8fjbbxqrtqbmck",
"created_at": "2025-01-13T15:30:07.000000Z",
"monitor_type": "user_tweets",
"status": "paused",
"webhook_url": null,
"parameters": {
"user_screen_name": "elonmusk",
"user_name": "Elon Musk",
"user_id_str": "44196397"
}
},
{
"id": "01jqty3m3dhg9xpsj373x12ck7",
"created_at": "2025-01-13T15:31:22.000000Z",
"monitor_type": "search_keyword",
"status": "active",
"webhook_url": "https://my-website.com/webhook",
"parameters": {
"query": "from:elonmusk doge"
},
"refresh_frequency": 300
},
// ...
],
"meta": {
"page": 1,
"last_page": 2,
"items_count": 100
}
}
```
###### 402
```json
{
"status": "error",
"message": "Insufficient balance"
}
```
###### 404
```json
{
"status": "error",
"message": "Not found"
}
```
###### 500
```json
{
"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
#### Related endpoints
- [Get monitor details](https://docs.socialdata.tools/monitoring/get-monitor-details/)
- [Monitor event history](https://docs.socialdata.tools/monitoring/monitor-event-history/)
- [Update monitor](https://docs.socialdata.tools/monitoring/edit-monitor-webhook/)
- [Delete monitor](https://docs.socialdata.tools/monitoring/delete-monitor/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Monitoring API pricing](https://docs.socialdata.tools/monitoring/pricing/)
- [Processing webhook events](https://docs.socialdata.tools/monitoring/processing-webhooks/)
### Monitoring API: Monitor Event History - API Reference
Source: [Monitor Event History - API Reference](https://docs.socialdata.tools/monitoring/monitor-event-history/)
Every webhook request a monitor sends is recorded, together with the exact payload we posted and the response your server returned. These two endpoints let you read that history.
This is how you recover events that were lost because your endpoint was down, misconfigured, or deployed mid-delivery — [failed webhooks are never retried](https://docs.socialdata.tools/monitoring/processing-webhooks/#delivery-guarantees), so replaying from this history is the supported way to backfill.
#### List monitor events
Returns the 100 most recent webhook events for a single monitor, newest first.
GET https://api.socialdata.tools/monitors/{monitor\_id}/events
##### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
##### Path Parameters
**monitor\_id** `string` — required
Target monitor ID
Example: 01jeg76qa91b095gttamsbwa6q
##### Example Response
```json
{
"data": [
{
"id": "MTAwMDAwMDk4NzY1NDMyMQ==",
"created_at": "2026-08-01T14:22:31.000000Z",
"url": "https://my-website.com/webhook",
"response_code": 200
},
{
"id": "MTAwMDAwMDk4NzY1NDMyMA==",
"created_at": "2026-08-01T14:19:02.000000Z",
"url": "https://my-website.com/webhook",
"response_code": 502
}
]
}
```
`response_code` is the HTTP status your server returned. A `null` value means the request never completed — a timeout, a DNS failure, or a connection that was refused.
#### Get event details
Returns a single event, including the full webhook payload we sent and the body your server responded with.
GET https://api.socialdata.tools/monitors/{monitor\_id}/events/{event\_id}
##### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
##### Path Parameters
**monitor\_id** `string` — required
Target monitor ID
Example: 01jeg76qa91b095gttamsbwa6q
**event\_id** `string` — required
Event ID, as returned in the `id` field by the list endpoint above
Example: MTAwMDAwMDk4NzY1NDMyMQ==
##### Example Response
```json
{
"data": {
"id": "MTAwMDAwMDk4NzY1NDMyMQ==",
"created_at": "2026-08-01T14:22:31.000000Z",
"url": "https://my-website.com/webhook",
"response_code": 502,
"request_body": "{\"event\":\"new_tweet\",\"data\":{ /* ... full tweet ... */ },\"meta\":{ /* ... */ }}",
"response_body": "502 Bad Gateway"
}
}
```
`request_body` contains the exact JSON we posted to your webhook URL — the same payload documented in [Processing webhook events](https://docs.socialdata.tools/monitoring/processing-webhooks/). Parse it to replay the event as if it had been delivered normally.
> **Backfilling missed events**
>
> If your endpoint was down for a period, list the monitor’s events, select the ones whose `response_code` is not `2xx`, then fetch each one and feed its `request_body` through the same handler your webhook endpoint uses. Reading history costs nothing — these events were already billed when they were detected.
#### Response Codes
- **200 OK** - request succeeded
- **404 Not Found** - requested monitor or event does not exist
#### Related endpoints
- [Get monitor details](https://docs.socialdata.tools/monitoring/get-monitor-details/)
- [List active monitors](https://docs.socialdata.tools/monitoring/list-active-monitors/)
- [Update monitor](https://docs.socialdata.tools/monitoring/edit-monitor-webhook/)
- [Delete monitor](https://docs.socialdata.tools/monitoring/delete-monitor/)
- [Set webhook URL](https://docs.socialdata.tools/monitoring/set-global-webhook-url/)
- [Set webhook secret](https://docs.socialdata.tools/monitoring/set-webhook-secret/)
- [Verifying webhooks](https://docs.socialdata.tools/monitoring/verifying-webhooks/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Monitoring API pricing](https://docs.socialdata.tools/monitoring/pricing/)
- [Processing webhook events](https://docs.socialdata.tools/monitoring/processing-webhooks/)
### Monitoring API: Edit Monitor Webhook URL - API Reference
Source: [Edit Monitor Webhook URL - API Reference](https://docs.socialdata.tools/monitoring/edit-monitor-webhook/)
Updates a single monitor’s settings. You can change its `webhook_url`, and — for [search monitors](https://docs.socialdata.tools/monitoring/create-search-query-monitor/) — its `refresh_frequency`.
Updating `webhook_url` only affects this one monitor and does not change your global webhook URL. When a monitor-specific webhook is not set, its webhook requests are routed to your [global webhook URL](https://docs.socialdata.tools/monitoring/set-global-webhook-url/).
PATCH https://api.socialdata.tools/monitors/{monitor\_id}
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Path Parameters
**monitor\_id** `string` — required
Target monitor ID
Example: 01jeg76qa91b095gttamsbwa6q
#### Body
**webhook\_url** `string` — optional
Webhook URL for this monitor only. Pass an empty value to remove the monitor-specific webhook and fall back to your global webhook URL
Example: https://my-website.com/webhook or NULL
**refresh\_frequency** `integer` — optional
**Search monitors only.** How often the monitor executes, in seconds (value between 1 and 3600). Sending this for any other monitor type returns a validation error. Changing it changes what the monitor costs — see [Pricing](https://docs.socialdata.tools/monitoring/pricing/#search-monitors)
Example: 300
The new frequency takes effect from the monitor’s next execution.
#### Code Examples
###### curl
```shellscript
curl -X PATCH "https://api.socialdata.tools/monitors/01jeg76qa91b095gttamsbwa6q" \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"webhook_url": "https://my-website.com/webhook"}'
```
###### JavaScript
```js
const monitorId = '01jeg76qa91b095gttamsbwa6q';
const API_KEY = 'YOUR_API_KEY_HERE';
const webhookUrl = 'https://my-website.com/webhook';
fetch(`https://api.socialdata.tools/monitors/${monitorId}`, {
method: 'PATCH',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Content-Type': 'application/json',
'Accept': 'application/json'
},
body: JSON.stringify({ webhook_url: webhookUrl })
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
monitor_id = '01jeg76qa91b095gttamsbwa6q'
API_KEY = 'YOUR_API_KEY_HERE'
webhook_url = 'https://my-website.com/webhook'
url = f'https://api.socialdata.tools/monitors/{monitor_id}'
headers = {
'Authorization': f'Bearer {API_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
payload = {'webhook_url': webhook_url}
response = requests.patch(url, json=payload, headers=headers)
if response.status_code == 200:
data = response.json()
print(data)
else:
print(f"Error: {response.status_code}")
print(response.text)
```
###### PHP
```php
$monitor_id = '01jeg76qa91b095gttamsbwa6q';
$API_KEY = 'YOUR_API_KEY_HERE';
$webhook_url = 'https://my-website.com/webhook';
$url = "https://api.socialdata.tools/monitors/{$monitor_id}";
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'PATCH',
CURLOPT_POSTFIELDS => json_encode(['webhook_url' => $webhook_url]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer $API_KEY",
"Content-Type: application/json",
"Accept: application/json"
]
]);
$response = curl_exec($ch);
$data = json_decode($response, true);
print_r($data);
curl_close($ch);
```
#### Example Responses
###### 200
```json
{
"status": "success",
"data": {
"id": "01jksy1wv06r3jgk8d0bzahhwg",
"created_at": "2025-02-11T07:19:53.000000Z",
"monitor_type": "user_profile",
"webhook_url": "https://my-website.com/webhook", // contains new webhook_url or null
"parameters": {
"user_screen_name": "MarioNawfal",
"user_name": "Mario Nawfal",
"user_id_str": "1319287761048723458"
}
}
}
```
###### 404
```json
{
"status": "error",
"message": "Not found"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **404 Not Found** - requested monitor does not exist
#### Related endpoints
- [Get monitor details](https://docs.socialdata.tools/monitoring/get-monitor-details/)
- [List active monitors](https://docs.socialdata.tools/monitoring/list-active-monitors/)
- [Monitor event history](https://docs.socialdata.tools/monitoring/monitor-event-history/)
- [Delete monitor](https://docs.socialdata.tools/monitoring/delete-monitor/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Monitoring API pricing](https://docs.socialdata.tools/monitoring/pricing/)
- [Processing webhook events](https://docs.socialdata.tools/monitoring/processing-webhooks/)
### Monitoring API: Delete Monitor - API Reference
Source: [Delete Monitor - API Reference](https://docs.socialdata.tools/monitoring/delete-monitor/)
Deletes a monitor. This stops the API from checking for new events and halts all future charges for this monitor.
Deletion is immediate and permanent — a deleted monitor cannot be restored, and it no longer appears in [List active monitors](https://docs.socialdata.tools/monitoring/list-active-monitors/). To stop a monitor temporarily, remove its webhook URL or let it pause rather than deleting it.
Any charges already incurred are settled at the moment of deletion. For a [search monitor](https://docs.socialdata.tools/monitoring/create-search-query-monitor/) this includes executions it ran since the last hourly settlement, so a final charge may appear on your account just after you delete it.
DELETE https://api.socialdata.tools/monitors/{monitor\_id}
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Path Parameters
**monitor\_id** `string` — required
Target monitor ID
Example: 01jeg76qa91b095gttamsbwa6q
#### Code Examples
###### curl
```shellscript
curl -X DELETE "https://api.socialdata.tools/monitors/01jeg76qa91b095gttamsbwa6q" \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Accept: application/json'
```
###### JavaScript
```js
const monitorId = '01jeg76qa91b095gttamsbwa6q';
const API_KEY = 'YOUR_API_KEY_HERE';
fetch(`https://api.socialdata.tools/monitors/${monitorId}`, {
method: 'DELETE',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Accept': 'application/json'
}
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
monitor_id = '01jeg76qa91b095gttamsbwa6q'
API_KEY = 'YOUR_API_KEY_HERE'
url = f'https://api.socialdata.tools/monitors/{monitor_id}'
headers = {
'Authorization': f'Bearer {API_KEY}',
'Accept': 'application/json'
}
response = requests.delete(url, headers=headers)
if response.status_code == 200:
data = response.json()
print(data)
else:
print(f"Error: {response.status_code}")
print(response.text)
```
###### PHP
```php
$monitor_id = '01jeg76qa91b095gttamsbwa6q';
$API_KEY = 'YOUR_API_KEY_HERE';
$url = "https://api.socialdata.tools/monitors/{$monitor_id}";
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "DELETE",
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
###### 200
```json
{
"status": "success"
}
```
###### 404
```json
{
"status": "error",
"message": "Not found"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **404 Not Found** - requested monitor does not exist
#### Related endpoints
- [Get monitor details](https://docs.socialdata.tools/monitoring/get-monitor-details/)
- [List active monitors](https://docs.socialdata.tools/monitoring/list-active-monitors/)
- [Monitor event history](https://docs.socialdata.tools/monitoring/monitor-event-history/)
- [Update monitor](https://docs.socialdata.tools/monitoring/edit-monitor-webhook/)
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Monitoring API pricing](https://docs.socialdata.tools/monitoring/pricing/)
- [Processing webhook events](https://docs.socialdata.tools/monitoring/processing-webhooks/)
## MCP Server
### MCP Server: MCP Server - Introduction
Source: [MCP Server - Introduction](https://docs.socialdata.tools/mcp/introduction/)
The SocialData MCP server lets you connect an AI assistant directly to Twitter/X data. Instead of writing code against the REST API, you ask a question in plain English and the assistant fetches the data itself.
MCP (Model Context Protocol) is an open standard for connecting AI assistants to external tools and data. Any client that supports it — Claude Code, Claude Desktop, Cursor, Windsurf — can talk to our server.
#### What this looks like in practice
Once connected, you can ask your assistant things like:
- _“What has @elonmusk posted in the last day?”_
- _“Find tweets from the past week mentioning our product with more than 100 likes”_
- _“Does @user\_a follow @user\_b?”_
- _“Summarise the replies to this tweet”_
The assistant picks the right tool, calls SocialData, and answers using real data.
#### Endpoint and authentication
```plaintext
https://api.socialdata.tools/mcp
```
The server uses **the same API key as the REST API**, sent as a bearer token:
```plaintext
Authorization: Bearer YOUR_API_KEY
```
You do not need a separate key, a separate account, or a separate subscription. See [Authentication](https://docs.socialdata.tools/getting-started/authentication/) for where to find your key, and [Connecting your client](https://docs.socialdata.tools/mcp/connecting/) for per-client setup.
#### Pricing
**Every tool call is billed exactly like the equivalent REST API call.** The MCP server is a different way to reach the same endpoints — it is not a separate product with separate pricing.
That means:
- The same per-result pricing applies. See [Pricing](https://docs.socialdata.tools/getting-started/pricing/).
- Your rate limit applies unchanged. See [Rate Limits](https://docs.socialdata.tools/getting-started/rate-limits/).
- Requests that return no results are not charged, exactly as with REST.
Connecting an assistant to the server costs nothing on its own. You are charged only when the assistant actually calls a tool.
> **Watch your spending with AI assistants**
>
> An AI assistant works through a task until it decides it is done, and it does not know what your data is worth to you. Ask it to “get all followers of @big\_account” and it will keep requesting pages — each one billed — until it runs out of pages or you stop it.
>
> Each tool returns **one page per call** and never pages automatically, and the tools are described to the assistant in a way that discourages open-ended paging. Even so, be specific about how much data you want — say how many results you need rather than asking for “all” of something — and keep an eye on your balance while an assistant is working.
#### What the server can and cannot do
The MCP server is **read-only**. It exposes **14 tools** covering user lookup, timelines, search, followers and following, and tweet threads and replies. See [Available tools](https://docs.socialdata.tools/mcp/tools/) for the full list.
It cannot post, follow, delete, or change anything on Twitter/X, and it cannot create or manage monitors — use the REST API for those.
Results are returned in a compact form rather than the full REST payload, so that a page of results does not overwhelm the assistant’s context window. [Available tools](https://docs.socialdata.tools/mcp/tools/) documents exactly which fields you get.
> **Web-based assistants are not supported yet**
>
> The claude.ai and ChatGPT connector interfaces cannot connect to this server. They require OAuth, and our server authenticates with your API key. Use a client that supports custom headers — Claude Code, Claude Desktop, Cursor or Windsurf.
#### Next steps
- [Connecting your client](https://docs.socialdata.tools/mcp/connecting/) — setup for Claude Code, Claude Desktop, Cursor and Windsurf
- [Available tools](https://docs.socialdata.tools/mcp/tools/) — all 14 tools, their parameters, and what they return
### MCP Server: Connect Your Client to the MCP Server
Source: [Connect Your Client to the MCP Server](https://docs.socialdata.tools/mcp/connecting/)
> **Summary**
>
> Point your client at `https://api.socialdata.tools/mcp` over HTTP transport, with the header `Authorization: Bearer YOUR_API_KEY`
Every configuration below uses the same three things: the endpoint, HTTP (streamable) transport, and your API key as a bearer token. Replace `YOUR_API_KEY` with the key from your [dashboard](https://socialdata.tools/dashboard?utm_source=docs).
> **Your API key is a credential**
>
> These configuration files sit on your machine in plain text. Treat them as you would any file containing a password — do not commit them to a repository, and do not paste them into a shared channel or a screenshot.
#### Claude Code
Run this in your terminal:
```bash
claude mcp add --transport http socialdata https://api.socialdata.tools/mcp \
--header "Authorization: Bearer YOUR_API_KEY"
```
Verify it connected:
```bash
claude mcp list
```
#### Claude Desktop
Open **Settings → Developer → Edit Config**, which opens `claude_desktop_config.json`. Add the `socialdata` entry:
```json
{
"mcpServers": {
"socialdata": {
"type": "http",
"url": "https://api.socialdata.tools/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
```
Restart Claude Desktop. The SocialData tools appear in the tools menu in the chat input.
#### Cursor
Create or edit `.cursor/mcp.json` in your project (or `~/.cursor/mcp.json` to make it available everywhere):
```json
{
"mcpServers": {
"socialdata": {
"url": "https://api.socialdata.tools/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
```
Then open **Settings → MCP** and confirm `socialdata` shows as connected.
#### Windsurf
Edit `~/.codeium/windsurf/mcp_config.json`:
```json
{
"mcpServers": {
"socialdata": {
"serverUrl": "https://api.socialdata.tools/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
```
Reload the MCP servers from the Cascade panel.
#### Verifying it works
Ask your assistant something that requires a real lookup:
> Using SocialData, what is @elonmusk’s follower count?
A working setup produces an answer with a real number, and your client shows that a tool such as `get_user_by_username` was called. That call is billed like the equivalent REST request — see [Pricing](https://docs.socialdata.tools/getting-started/pricing/).
If the assistant answers from memory instead of calling a tool, say “use the SocialData tools” explicitly.
#### Troubleshooting
**The client reports 401 Unauthorized.** The key is missing, mistyped, or the header is malformed. It must read `Bearer YOUR_API_KEY` — the word `Bearer`, one space, then the key. Confirm the key works against the REST API:
```bash
curl -X GET "https://api.socialdata.tools/twitter/user/elonmusk" \
-H "Authorization: Bearer YOUR_API_KEY"
```
**The client reports 402 or a balance error.** Your account is out of credit. Top up in the dashboard; no tool will succeed until you do.
**The client reports 429.** You are making requests faster than your rate limit allows. Slow down — see [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/).
**The server connects but no tools appear.** Confirm the transport is HTTP (not stdio) and the URL has no trailing slash.
**Nothing works from claude.ai or ChatGPT.** These are not supported — see below.
> **Web connectors are not supported**
>
> The connector interfaces in claude.ai and ChatGPT cannot use this server. They require OAuth 2.1 with dynamic client registration; our server authenticates with your API key. Use one of the desktop or CLI clients above.
#### Next steps
- [Available tools](https://docs.socialdata.tools/mcp/tools/) — all 14 tools, their parameters, and what they return
### MCP Server: Available MCP tools
Source: [Available MCP tools](https://docs.socialdata.tools/mcp/tools/)
The server exposes 14 read-only tools. You do not call these yourself — you ask your assistant a question and it picks the tool. This page is here so you know what it can reach, and what each call costs you.
#### All tools
| Tool | Purpose | Paginated |
| --- | --- | --- |
| **Users** | | |
| `get_user_by_username` | Look up a profile by handle | – |
| `get_user_by_id` | Look up a profile by numeric ID | – |
| `search_users` | Find profiles by name or handle | – |
| **Tweets** | | |
| `get_tweet` | Fetch a single post | – |
| `get_tweet_thread` | Fetch a thread from any post in it | yes |
| `get_tweet_comments` | Fetch replies to a post | yes |
| **Timelines** | | |
| `get_user_tweets` | A user’s own posts | yes |
| `get_user_tweets_and_replies` | A user’s posts including replies | yes |
| `get_user_mentions` | Posts mentioning a user | yes |
| `get_list_tweets` | Posts from a list | yes |
| **Social graph** | | |
| `get_user_followers` | Who follows a user | yes |
| `get_user_following` | Who a user follows | yes |
| `check_is_following` | Whether one user follows another | – |
| **Search** | | |
| `search_tweets` | Search posts | yes |
> **How pagination and billing relate**
>
> A paginated tool returns one page and a `next_cursor`. **One call is one page and one charge.** No tool pages automatically — to get the next page, the assistant makes another billed call with the cursor.
> **Two tools are much more expensive than the rest**
>
> `get_user_followers` and `get_user_following` bill for a **full page of user records** on every call — far more than a single lookup. Fetching the followers of a large account means many such calls.
>
> When the question is only whether one specific account follows another, `check_is_following` answers it for a fraction of the cost.
#### A note on IDs
Twitter/X IDs are passed as **strings, not numbers** — they are large enough to lose precision when handled as floating-point numbers, which silently corrupts them. Your assistant handles this; it matters if you are reading the output yourself.
Four tools need a **numeric user ID** rather than a handle: `get_user_tweets`, `get_user_tweets_and_replies`, `get_user_followers` and `get_user_following`. If you give your assistant a handle, it will typically call `get_user_by_username` first to resolve it, which is an additional billed call.
#### Users
##### `get_user_by_username`
Look up a profile by handle.
| Parameter | Required | Notes |
| --- | --- | --- |
| `username` | yes | Handle with or without a leading `@`. 1–15 characters, letters, digits and underscores. |
Returns a single [user object](#user-fields).
##### `get_user_by_id`
Look up a profile by numeric user ID.
| Parameter | Required | Notes |
| --- | --- | --- |
| `user_id` | yes | Numeric ID as a string. |
Returns a single [user object](#user-fields).
##### `search_users`
Find profiles by name or handle — useful when you know roughly who someone is but not their exact handle.
| Parameter | Required | Notes |
| --- | --- | --- |
| `query` | yes | Max 100 characters. |
Returns a list of [user objects](#user-fields). Not paginated.
#### Tweets
##### `get_tweet`
Fetch a single post, including engagement counts.
| Parameter | Required | Notes |
| --- | --- | --- |
| `tweet_id` | yes | Numeric ID as a string. |
Returns a single [tweet object](#tweet-fields).
##### `get_tweet_thread`
Fetch a thread given the ID of any post in it. Returns posts in order.
| Parameter | Required | Notes |
| --- | --- | --- |
| `tweet_id` | yes | Numeric ID as a string. |
| `cursor` | no | From a previous call’s `next_cursor`. Omit for the first page. |
Returns `tweets` and `next_cursor`.
##### `get_tweet_comments`
Fetch replies to a post — up to 20 per page.
| Parameter | Required | Notes |
| --- | --- | --- |
| `tweet_id` | yes | Numeric ID as a string. |
| `cursor` | no | From a previous call’s `next_cursor`. |
Returns `tweets` and `next_cursor`.
#### Timelines
##### `get_user_tweets`
A user’s own posts, newest first, excluding replies. Up to 20 per page.
| Parameter | Required | Notes |
| --- | --- | --- |
| `user_id` | yes | Numeric ID as a string — not a handle. |
| `cursor` | no | From a previous call’s `next_cursor`. |
Returns `tweets` and `next_cursor`.
##### `get_user_tweets_and_replies`
The same, but including the user’s replies.
| Parameter | Required | Notes |
| --- | --- | --- |
| `user_id` | yes | Numeric ID as a string — not a handle. |
| `cursor` | no | From a previous call’s `next_cursor`. |
Returns `tweets` and `next_cursor`.
##### `get_user_mentions`
Posts mentioning a given user, newest first.
| Parameter | Required | Notes |
| --- | --- | --- |
| `username` | yes | Handle with or without a leading `@`. |
| `cursor` | no | From a previous call’s `next_cursor`. |
Returns `tweets` and `next_cursor`.
##### `get_list_tweets`
Posts from a Twitter/X list, newest first.
| Parameter | Required | Notes |
| --- | --- | --- |
| `list_id` | yes | Numeric list ID as a string. |
| `cursor` | no | From a previous call’s `next_cursor`. |
Returns `tweets` and `next_cursor`.
#### Social graph
##### `get_user_followers`
One page of a user’s followers. **Expensive** — see the warning above.
| Parameter | Required | Notes |
| --- | --- | --- |
| `user_id` | yes | Numeric ID as a string — not a handle. |
| `cursor` | no | From a previous call’s `next_cursor`. |
Returns `users` and `next_cursor`.
##### `get_user_following`
One page of the accounts a user follows. **Expensive** — see the warning above.
| Parameter | Required | Notes |
| --- | --- | --- |
| `user_id` | yes | Numeric ID as a string — not a handle. |
| `cursor` | no | From a previous call’s `next_cursor`. |
Returns `users` and `next_cursor`.
##### `check_is_following`
Whether one user follows another. The cheap way to answer a question about a specific pair of accounts.
| Parameter | Required | Notes |
| --- | --- | --- |
| `source_user_id` | yes | Numeric ID of the account that might be following. |
| `target_user_id` | yes | Numeric ID of the account that might be followed. |
Returns `source_user_id`, `target_user_id` and `is_following`.
#### Search
##### `search_tweets`
Search posts. This is the most capable tool on the server.
| Parameter | Required | Notes |
| --- | --- | --- |
| `query` | yes | Max 512 characters. Supports advanced search operators. |
| `type` | no | `Latest` (default) or `Top`. |
| `cursor` | no | From a previous call’s `next_cursor`. |
Returns `tweets` and `next_cursor`.
The query supports the full range of [Twitter search operators](https://docs.socialdata.tools/resources/twitter-search-operators/) — `from:`, `to:`, `since:`, `until:`, `min_faves:`, `min_retweets:`, `filter:links`, `-filter:replies`, exact phrases, and combinations:
```plaintext
from:elonmusk min_faves:1000 since:2026-01-01
```
Using operators is usually much cheaper than a broad keyword search, because it takes one well-targeted call instead of several vague ones. Telling your assistant the operators you want is worth doing.
#### What the tools return
Results are **trimmed** compared with the REST API. Each object carries the fields below and nothing else — the raw payloads include large amounts of data that would fill an assistant’s context window without helping it answer.
If you need full fidelity, use the [REST API](https://docs.socialdata.tools/reference/get-user-profile/) directly.
Fields that are empty upstream are omitted rather than returned as `null`.
##### Tweet fields
`id`, `text`, `created_at`, `author`, `reply_count`, `retweet_count`, `like_count`, `quote_count`, `view_count`, `bookmark_count`, `is_retweet`, `quoted_tweet_id`, `in_reply_to_tweet_id`, `conversation_id`, `lang`, `urls`, `media`
`author` is a reduced user object — `id`, `username`, `name`, `verified`, `followers_count` — rather than a full profile, because the full profile repeated on every post in a page is the single largest source of wasted space.
Quoted and retweeted posts appear as IDs (`quoted_tweet_id`) rather than nested objects. Your assistant can fetch them with `get_tweet` if it needs them.
##### User fields
`id`, `username`, `name`, `description`, `location`, `url`, `created_at`, `followers_count`, `following_count`, `tweet_count`, `listed_count`, `verified`, `protected`, `profile_image_url`
#### Errors
Tool errors come back as readable messages rather than status codes, and tell the assistant whether retrying is worthwhile.
| Situation | What happens |
| --- | --- |
| User or post not found | The assistant is told it does not exist. This is an answer, not a failure. |
| Out of credit | The assistant is told to stop and that you need to top up. It will not retry. |
| Rate limit reached | The assistant is told to stop and let you know to slow down. |
| Upstream error | The assistant is told the request failed **and was not billed**. |
See [Errors](https://docs.socialdata.tools/getting-started/errors/) for the equivalent REST behaviour.
## Resources
### Resources: Twitter Advanced Search Operators
Source: [Twitter Advanced Search Operators](https://docs.socialdata.tools/resources/twitter-search-operators/)
#### Search Operators
##### Users
- `from:user` — Sent by a particular `@username` e.g. `"dogs from:NASA"`
- `to:user` — Replying to a particular `@username`
- `@user` — Mentioning a particular `@username`. Combine with `-from:username` to get only mentions
- `list:715919216927322112` or `list:esa/astronauts` — Tweets from members of this public list. Use the list ID from the API or with urls like `twitter.com/i/lists/715919216927322112`. List slug is for old list urls like `twitter.com/esa/lists/astronauts`. Cannot be negated, so you can’t search for “not on list”.
- `filter:blue_verified` — From “verified” users that paid $8 for Twitter Blue
##### Tweet Type
- `filter:nativeretweets` — Only retweets created using the retweet button. Works well combined with `from:` to show only retweets. Only works within the last 7-10 days or so.
- `include:nativeretweets` — Native retweets are excluded by default. This shows them. In contrast to `filter:`, which shows only retweets, this includes retweets in addition to other tweets. Only works within the last 7-10 days or so.
- `filter:retweets` — Old style retweets (“RT”) + quoted tweets.
- `filter:replies` — Tweet is a reply to another Tweet. Good for finding conversations, or threads if you add or remove `to:user`
- `filter:self_threads` — Only self-replies. Tweets that are part of a thread, not replies in other conversations.
- `conversation_id:tweet_id` — Tweets that are part of a thread (direct replies and other replies)
- `filter:quote` — Contain Quote Tweets
- `quoted_tweet_id:tweet_id` — Search for quotes of a specific tweet
- `quoted_user_id:user_id` — Search for all quotes of a specific user, by numeric User ID
##### Date & Time
- `until:2021-12-31` — Before (NOT inclusive) a specified date. Combine with a “since” operator for dates between.
- `since:2021-12-31_23:59:59_UTC` — On or after (inclusive) a specified date and time in the specified timezone. 4-digit year, 2-digit month, 2-digit day separated by `-` dashes, an `_` underscore separating the 24-hour clock format hours:minutes:seconds and timezone abbreviation.
- `until:2021-12-31_23:59:59_UTC` — Before (NOT inclusive) a specified date and time in the specified timezone. Combine with a “since” operator for dates between.
- `since_time:1142974200` — On or after a specified Unix timestamp in seconds. Combine with the “until” operator for dates between. Maybe easier to use than `since_id` below.
- `until_time:1142974215` — Before a specified Unix timestamp in seconds. Combine with a “since” operator for dates between. Maybe easier to use than `max_id` below.
- `since_id:tweet_id` — After (NOT inclusive) a specified Tweet ID
- `max_id:tweet_id` — At or before (inclusive) a specified Tweet ID
- `within_time:2d` or `within_time:3h` or `within_time:5m` or `within_time:30s` — Search within the last number of days, hours, minutes, or seconds
##### Tweet Content
- `url:google.com` — urls are tokenized and matched, works very well for subdomains and domains, not so well for long urls, depends on url. YouTube IDs work well. Works for both shortened and canonical urls, eg: `gu.com` shortener for `theguardian.com`. When searching for domains with hyphens in them, you have to replace the hyphen with an underscore (like `url:t_mobile.com`) but underscores `_` are also tokenized out, and may not match
- `lang:en` — Search for tweets in specified language, not always accurate
##### Geo
- `near:city` — Geotagged in this place. Also supports phrases, eg: `near:"The Hague"`
- `within:radius` — Within a specific radius of the “near” operator, to apply a limit. Can use km or mi. e.g. `fire near:san-francisco within:10km`
- `geocode:lat,long,radius` — E.g., to get tweets 10km around Twitter’s HQ, use `geocode:37.7764685,-122.4172004,10km`
- `place:96683cc9126741d1` — Search tweets by place object ID, e.g.: USA Place ID is `96683cc9126741d1`
##### Engagement Filters
- `filter:has_engagement` — Has some engagement (replies, likes, retweets). Can be negated to find tweets with no engagement. Note all of these are mutually exclusive with `filter:nativeretweets` or `include:nativeretweets`, as they apply to the retweet, not the original tweet, so they won’t work as expected.
- `min_retweets:5` — A minimum number of Retweets. Counts seem to be approximate for larger (1000+) values.
- `min_faves:10` — A minimum number of Likes
- `min_replies:100` — A minimum number of replies
- `-min_retweets:500` — A maximum number of Retweets
- `-min_faves:500` — A maximum number of Likes
- `-min_replies:100` — A maximum number of replies
##### Media
- `filter:media` — All media types.
- `filter:twimg` — Native Twitter images (`pic.twitter.com` links)
- `filter:images` — All images.
- `filter:videos` — All video types, including native Twitter video and external sources such as YouTube.
- `filter:periscope` — Periscopes
- `filter:native_video` — All Twitter-owned video types (native video, vine, periscope)
- `filter:vine` — Vines (RIP)
- `filter:consumer_video` — Twitter native video only
- `filter:pro_video` — Twitter pro video (Amplify) only
- `filter:spaces` — Twitter Spaces only
- `filter:links` — Only containing some URL, includes media. Use `-filter:media` for urls that aren’t media
- `filter:mentions` — Containing any sort of `@mentions`
- `filter:news` — Containing a link to a news story. Combine with a list operator to narrow the user set down further
- `filter:safe` — Excluding NSFW content. Excludes content that users have marked as “Potentially Sensitive”. Doesn’t always guarantee SFW results.
- `filter:hashtags` — Only Tweets with Hashtags.
#### Where these operators work
- [Get search results](https://docs.socialdata.tools/reference/get-search-results/) — site-wide Twitter/X search
- [Get community search results](https://docs.socialdata.tools/reference/get-community-search-results/) — search within a community
- [Create search monitor](https://docs.socialdata.tools/monitoring/create-search-query-monitor/) — get a webhook when a new tweet matches your query
## Other
### Other: Get User Profiles by Usernames - API Reference
Source: [Get User Profiles by Usernames - API Reference](https://docs.socialdata.tools/reference/get-multiple-user-profiles-by-usernames/)
> **Deprecated**
>
> This endpoint is deprecated and is no longer recommended for new integrations. Use the [“users-by-ids” endpoint](https://docs.socialdata.tools/reference/get-multiple-user-profiles/) instead — it returns the same profile objects with more reliable results. This page remains published for existing integrations only, and the endpoint may be removed in the future.
> **Caution**
>
> Due to limitations in our data source, this endpoint cannot provide accurate values for the “verified” and “can\_dm” attributes. We recommend using the [“users-by-ids” endpoint](https://docs.socialdata.tools/reference/get-multiple-user-profiles/) instead for more reliable results.
Retrieve user information for up to 100 users per request.
POST https://api.socialdata.tools/twitter/users-by-usernames
#### Headers
**Authorization** `string` — required
Authorization Bearer header containing your SocialData API key
Example: Bearer YOUR\_API\_KEY
#### Body
**usernames** `array` — required
An array of Twitter usernames. Up to 100 usernames per request
Example: \["elonmusk", "realdonaldtrump", ...\]
#### Code Examples
###### curl
```shellscript
curl "https://api.socialdata.tools/twitter/users-by-usernames" \
-X POST \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"usernames": ["elonmusk", "realdonaldtrump"]}'
```
###### JavaScript
```js
const usernames = ["elonmusk", "realdonaldtrump"];
const API_KEY = 'YOUR_API_KEY_HERE';
fetch('https://api.socialdata.tools/twitter/users-by-usernames', {
method: 'POST',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Content-Type': 'application/json',
'Accept': 'application/json'
},
body: JSON.stringify({ usernames })
})
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
```
###### Python
```python
import requests
usernames = ['elonmusk', 'realdonaldtrump']
API_KEY = 'YOUR_API_KEY_HERE'
url = 'https://api.socialdata.tools/twitter/users-by-usernames'
headers = {
'Authorization': f'Bearer {API_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
payload = {'usernames': usernames}
response = requests.post(url, json=payload, headers=headers)
if response.status_code == 200:
data = response.json()
print(data)
else:
print(f"Error: {response.status_code}")
print(response.text)
```
###### PHP
```php
$usernames = ["elonmusk", "realdonaldtrump"];
$API_KEY = 'YOUR_API_KEY_HERE';
$url = "https://api.socialdata.tools/twitter/users-by-usernames";
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => json_encode(['usernames' => $usernames]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer $API_KEY",
"Content-Type: application/json",
"Accept: application/json"
]
]);
$response = curl_exec($ch);
$data = json_decode($response, true);
print_r($data);
curl_close($ch);
```
#### Example Responses
###### 200
```json
{
"users": [
{
"id": 44196397,
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"location": "\\ud835\\udd4f\\u00d0",
"url": null,
"description": "",
"protected": false,
"verified": false, // This endpoint is unable to provide correct Blue-checkmark verified status. Please use users-by-ids instead
"followers_count": 166213974,
"friends_count": 506,
"listed_count": 149577,
"favourites_count": 37987,
"statuses_count": 34934,
"created_at": "2009-06-02T20:12:29.000000Z",
"profile_banner_url": "https:\\/\\/pbs.twimg.com\\/profile_banners\\/44196397\\/1690621312",
"profile_image_url_https": "https:\\/\\/pbs.twimg.com\\/profile_images\\/1683325380441128960\\/yRsRRjGO_normal.jpg",
"can_dm": null // This endpoint is unable to provide correct can_dm value. Please use users-by-ids instead
},
// ...
]
}
```
###### 402
```json
{
"status": "error",
"message": "Insufficient balance"
}
```
###### 404
```json
{
"status": "error",
"message": "User not found"
}
```
###### 500
```json
{
"status": "error",
"message": "Failed to fetch data from Twitter"
}
```
#### Response Codes
- **200 OK** - request succeeded
- **402 Payment Required** - not enough credits to perform this request
- **422 Unprocessable Content** - validation failed (e.g. one of the required parameters was not provided)
- **500 Internal Error** - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later
#### Before you integrate
- [Authentication](https://docs.socialdata.tools/getting-started/authentication/)
- [Rate limits](https://docs.socialdata.tools/getting-started/rate-limits/)
- [Errors](https://docs.socialdata.tools/getting-started/errors/)
- [Pricing](https://docs.socialdata.tools/getting-started/pricing/)