Google Twitter Results API
The Google Twitter Results API allows a user to scrape the Twitter results of a Google search. SerpApi is able to scrape, extract, and make sense of this information. When SerpApi encounters Twitter results, we add them to our JSON output.
We are able to extract: title
, link
, displayed_link
and tweets
. From tweets
we are able to extract: link
, snippet
, thumbnail
and published_date
.
API Examples
Results for: Cristiano Ronaldo
For some searches, Twitter results consist of multiple authors.
{
"twitter_results": {
"title": "cristiano ronaldo on Twitter",
"link": "https://twitter.com/search?q=cristiano+ronaldo&ref_src=twsrc%5Egoogle%7Ctwcamp%5Eserp%7Ctwgr%5Esearch",
"displayed_link": "https://twitter.com/search/cristiano+ronaldo",
"tweets": [
{
"author": {
"thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQd8-qSYxanT_8dvGi4C_RZ-4XKRlldwSYEX0t2xXFiCkTAJ45X_CaB&s=10",
"twitter_blue": true,
"name": "ESPN FC",
"handle": "@ESPNFC"
},
"link": "https://twitter.com/ESPNFC/status/1629938330665201670?ref_src=twsrc%5Egoogle%7Ctwcamp%5Eserp%7Ctwgr%5Etweet",
"snippet": "Cristiano Ronaldo is at the Jake Paul vs. Tommy Fury fight in Saudi Arabia 👀 Watch now on @ESPNPlus PPV 🍿",
"thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ2ngObTwfbJ_tMuPkpBkuxweYRGkcZm9JRGOdkVixxCIsGZDLpxFFfhA&s=10",
"published_date": "1 day ago"
},
{
"author": {
"thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR2sP3ME3MmTQCZqxYNNVEw-FUi798flhHB9elnENrvcXdHmdW6-TOJ&s=10",
"twitter_blue": true,
"name": "Cristiano Ronaldo",
"handle": "@Cristiano"
},
"link": "https://twitter.com/Cristiano/status/1629552417086767107?ref_src=twsrc%5Egoogle%7Ctwcamp%5Eserp%7Ctwgr%5Etweet",
"snippet": "Special night ⚽️⚽️⚽️ Well done guys!💛💙",
"thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcScQ-I_3-4YLIg9XXT-ycjK4MEklSmz4in15H-ZrBAYmuiaufy1-n1xPWmS3OOx_X1hqYwJJw&s=10",
"published_date": "2 days ago"
},
{
"author": {
"thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR2sP3ME3MmTQCZqxYNNVEw-FUi798flhHB9elnENrvcXdHmdW6-TOJ&s=10",
"twitter_blue": true,
"name": "Cristiano Ronaldo",
"handle": "@Cristiano"
},
"link": "https://twitter.com/Cristiano/status/1629210482807562242?ref_src=twsrc%5Egoogle%7Ctwcamp%5Eserp%7Ctwgr%5Etweet",
"snippet": "Ready for tomorrow!💪🏼",
"thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSfVtu-enHhehizqszQEwGe1OecMwF9XNSCUqXCjselHhkiTZXepSC845iUBbeSQo4JAYCQag&s=10",
"published_date": "3 days ago"
},
...
]
},
...
}
Single Twitter results for: Uniswap
Sometimes Google decides to incorporate single Twitter result in between organic results. It contains information such as tweet author, original tweet snippet, link, and publish date.
{
"twitter_results": {
"title": "Uniswap Labs 🦄 (@Uniswap) · Twitter",
"link": "https://twitter.com/Uniswap?ref_src=twsrc%5Egoogle%7Ctwcamp%5Eserp%7Ctwgr%5Eauthor",
"displayed_link": "https://twitter.com/Uniswap",
"tweets": [
{
"link": "https://twitter.com/Uniswap/status/1390012757970411520?ref_src=twsrc%5Egoogle%7Ctwcamp%5Eserp%7Ctwgr%5Etweet",
"snippet": "1/ 🦄 We are thrilled to announce that Uniswap v3 is now live on Ethereum mainnet! app.uniswap.org has been updated to support v3. uniswap.org/blog/launch…",
"published_date": "1 day ago"
}
]
},
...
}