Social Post Search
curl --request GET \
--url https://api.asksurf.ai/gateway/v1/search/social/postsimport requests
url = "https://api.asksurf.ai/gateway/v1/search/social/posts"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.asksurf.ai/gateway/v1/search/social/posts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"author": {
"handle": "<string>",
"name": "<string>",
"user_id": "<string>",
"avatar": "<string>"
},
"created_at": 123,
"stats": {
"likes": 123,
"replies": 123,
"reposts": 123,
"views": 123
},
"text": "<string>",
"tweet_id": "<string>",
"url": "<string>",
"media": [
{
"type": "<string>",
"url": "<string>"
}
]
}
],
"meta": {
"cached": true,
"credits_used": 123,
"has_more": true,
"limit": 123,
"next_cursor": "<string>"
},
"$schema": "https://example.com/schemas/CursorDataResponseXTweet.json"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"$schema": "https://example.com/schemas/DataAPIError.json"
}Search
Social Post Search
GET
/
gateway
/
v1
/
search
/
social
/
posts
Social Post Search
curl --request GET \
--url https://api.asksurf.ai/gateway/v1/search/social/postsimport requests
url = "https://api.asksurf.ai/gateway/v1/search/social/posts"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.asksurf.ai/gateway/v1/search/social/posts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"author": {
"handle": "<string>",
"name": "<string>",
"user_id": "<string>",
"avatar": "<string>"
},
"created_at": 123,
"stats": {
"likes": 123,
"replies": 123,
"reposts": 123,
"views": 123
},
"text": "<string>",
"tweet_id": "<string>",
"url": "<string>",
"media": [
{
"type": "<string>",
"url": "<string>"
}
]
}
],
"meta": {
"cached": true,
"credits_used": 123,
"has_more": true,
"limit": 123,
"next_cursor": "<string>"
},
"$schema": "https://example.com/schemas/CursorDataResponseXTweet.json"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"$schema": "https://example.com/schemas/DataAPIError.json"
}