curl --request POST \
--url https://api.sorsa.io/v2/search-tweets \
--header 'ApiKey: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"next_cursor": "JKHSJFHADUYJKSDy2y3u123",
"order": "popular",
"query": "elonmusk"
}
'{
"next_cursor": "JKHSJFHADUYJKSDy2y3u123",
"tweets": [
{
"bookmark_count": 123,
"conversation_id_str": "<string>",
"created_at": "<string>",
"entities": [
{
"link": "<string>",
"preview": "<string>",
"type": "<string>"
}
],
"favorite_count": 123,
"full_text": "<string>",
"id_str": "<string>",
"in_reply_to_status_id_str": "<string>",
"is_quote_status": true,
"quote_count": 123,
"quoted_status": {
"created_at": "<string>",
"favorite_count": 123,
"full_text": "<string>",
"id_str": "<string>",
"quote_count": 123,
"retweet_count": 123,
"user": {
"avatar": "<string>",
"can_dm": true,
"created_at": "<string>",
"description": "<string>",
"followers_count": 123,
"friends_count": 123,
"id_str": "<string>",
"name": "<string>",
"screen_name": "<string>",
"statuses_count": 123
}
},
"reply_count": 123,
"retweet_count": 123,
"retweeted_status": {
"created_at": "<string>",
"favorite_count": 123,
"full_text": "<string>",
"id_str": "<string>",
"quote_count": 123,
"retweet_count": 123,
"user": {
"avatar": "<string>",
"can_dm": true,
"created_at": "<string>",
"description": "<string>",
"followers_count": 123,
"friends_count": 123,
"id_str": "<string>",
"name": "<string>",
"screen_name": "<string>",
"statuses_count": 123
}
},
"user": {
"avatar": "<string>",
"can_dm": true,
"created_at": "<string>",
"description": "<string>",
"followers_count": 123,
"friends_count": 123,
"id_str": "<string>",
"name": "<string>",
"screen_name": "<string>",
"statuses_count": 123
},
"view_count": 123
}
]
}Retrieve tweets that match a specific query, replicating Twitter’s search functionality. The request requires a “query” parameter to specify the search terms and accepts an optional “next_cursor” for paginating through additional tweets. The response includes a list of tweets with details such as text, creation date, author handle, engagement metrics (retweets, and replies) and more info, along with a “next_cursor” for fetching further results.
curl --request POST \
--url https://api.sorsa.io/v2/search-tweets \
--header 'ApiKey: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"next_cursor": "JKHSJFHADUYJKSDy2y3u123",
"order": "popular",
"query": "elonmusk"
}
'{
"next_cursor": "JKHSJFHADUYJKSDy2y3u123",
"tweets": [
{
"bookmark_count": 123,
"conversation_id_str": "<string>",
"created_at": "<string>",
"entities": [
{
"link": "<string>",
"preview": "<string>",
"type": "<string>"
}
],
"favorite_count": 123,
"full_text": "<string>",
"id_str": "<string>",
"in_reply_to_status_id_str": "<string>",
"is_quote_status": true,
"quote_count": 123,
"quoted_status": {
"created_at": "<string>",
"favorite_count": 123,
"full_text": "<string>",
"id_str": "<string>",
"quote_count": 123,
"retweet_count": 123,
"user": {
"avatar": "<string>",
"can_dm": true,
"created_at": "<string>",
"description": "<string>",
"followers_count": 123,
"friends_count": 123,
"id_str": "<string>",
"name": "<string>",
"screen_name": "<string>",
"statuses_count": 123
}
},
"reply_count": 123,
"retweet_count": 123,
"retweeted_status": {
"created_at": "<string>",
"favorite_count": 123,
"full_text": "<string>",
"id_str": "<string>",
"quote_count": 123,
"retweet_count": 123,
"user": {
"avatar": "<string>",
"can_dm": true,
"created_at": "<string>",
"description": "<string>",
"followers_count": 123,
"friends_count": 123,
"id_str": "<string>",
"name": "<string>",
"screen_name": "<string>",
"statuses_count": 123
}
},
"user": {
"avatar": "<string>",
"can_dm": true,
"created_at": "<string>",
"description": "<string>",
"followers_count": 123,
"friends_count": 123,
"id_str": "<string>",
"name": "<string>",
"screen_name": "<string>",
"statuses_count": 123
},
"view_count": 123
}
]
}query required, next_cursor optional
Was this page helpful?