WebScrapingAPI Docs
HomeLoginRegister
  • Introduction
    • Registration
    • Pricing
    • Free APIs
    • API Errors
    • Custom Response Headers
  • Browser API
    • Getting Started
      • Access the API
      • Authentication
      • API Parameters
    • Basic API Requests
      • GET Request
      • POST, PUT & PATCH Requests
      • Proxy Mode
    • Advanced API Features
      • Awaiting
      • Geolocation
      • Sessions
      • Forcing Timeouts
      • Custom Headers
      • Custom Cookies
      • Device Type
      • Viewport Sizing
      • Screenshot
      • Screenshot Options
      • Extraction Rules
      • JavaScript Instructions
      • Full JSON Response
      • JSON DOM Response
      • Block Resources
      • Captcha Solving
  • WebScrapingAPI
    • Getting Started
      • Access the API
      • API Parameters
    • Basic API Requests
      • GET Request
      • POST, PUT & PATCH Requests
    • Advanced API Features
      • Geolocation
      • Extraction Rules
      • Full JSON Response
      • JSON DOM Response
      • Rendering JavaScript
  • WebStealthProxy
    • Getting Started
      • Access the Proxy
      • Usage and Statistics
    • Basic Proxy Requests
    • Advanced Proxy Requests
      • Sessions
      • Geolocation
      • Custom Headers
      • Custom Cookies
      • Screenshots
  • Google Search API
    • Getting Started
      • Access the API
      • API Parameters
    • Google Search Engines
      • Google Search API
      • Google Maps API
      • Google Maps Reviews API
      • Google Reverse Image API
      • Google Trends API
        • Geo Parameter Options List
        • Google Trends Categories List
  • WB CUSTOM SEARCH API
    • Getting Started
      • Access the API
      • API Parameters
    • WB Custom Search Engines
      • Wayfair Product API
      • Best Buy Product API
      • Nordstrom Product API
  • Amazon Search API
    • Getting Started
      • API Parameters
      • Access the API
      • Supported Domains
    • Amazon Search Types
      • Amazon Search
      • Amazon Seller
        • Amazon Seller Products
        • Amazon Seller Profile
        • Amazon Seller Feedback
      • Amazon Product
      • Amazon Category
      • Amazon Bestsellers
      • Amazon New Releases
      • Amazon Deals
  • Bing Search API
    • Getting Started
      • Access the API
      • API Parameters
    • Basic API Requests
Powered by GitBook
On this page
  • Twitter Results Request Example
  • Request Example That Returns Twitter Elements
  1. Google Search API
  2. Google APIs Response
  3. Google Search API

Twitter Results

Scrape popular tweets right from the Google search results.

Google prioritises popular tweets and, if for example you are searching for a Twitter account, Google may display the latest tweets of that account in a special box. If available, our scraper will parse these tweets and they can be accessed via the inline_tweets property from the API response. The full body of this object contains:

Element
Type
Description

view_on_twitter_link

String

Twitter link to the queried account

twitter_handle

String

Google displayed name of the account

twitter_link

String

Google related link to the account

tweets

Array

Array of tweets

tweet

String

-- Tweet body

link

String

-- Link to specific tweet

position

Integer

-- Position of the tweet inside the tweets container

published_date

String

-- Date when the tweet was published

Twitter Results Request Example

Request Example That Returns Twitter Elements

GET https://serpapi.webscrapingapi.com/v1?engine=google&api_key=<YOUR_API_KEY>&q=naval%20twitter

This is a basic GET request that returns the twitter results found on the Google page.

Query Parameters

Name
Type
Description

q*

String

naval twitter

api_key*

String

<YOUR_API_KEY>

{
    ...
    "inline_tweets": {
        "view_on_twitter_link": "https://twitter.com/naval",
        "twitter_handle": "Naval (@naval) · Twitter",
        "twitter_link": "https://twitter.com/naval?ref_src=twsrc%5Egoogle%7Ctwcamp%5Eserp%7Ctwgr%5Eauthor",
        "tweets": [
        {
            "tweet": "Fact-checkers are just fake authorities anointed by the media, according to fact-checkers.",
            "link": "https://twitter.com/naval/status/1422849062244552710?ref_src=twsrc%5Egoogle%7Ctwcamp%5Eserp%7Ctwgr%5Etweet",
            "position": 1,
            "published_date": "1 day ago"
        },
        {
            "tweet": "Per @nntaleb rule “the most intolerant wins” the fearful vaccinated will drive out the unvaccinated. Unvaccinated will mingle with vaccinated, but a loud minority of vaccinated won’t mingle with unvaccinated. Thus, intolerant customers will force employers to require vaccines.",
            "link": "https://twitter.com/naval/status/1422443087045939201?ref_src=twsrc%5Egoogle%7Ctwcamp%5Eserp%7Ctwgr%5Etweet",
            "position": 2,
            "published_date": "2 days ago"
        },
        {
            "tweet": "Humanity will eventually eradicate all viral disease, as our memetic defense evolves much faster than their biological offense. (Barring laboratory-enhanced viruses).",
            "link": "https://twitter.com/naval/status/1422020350506725376?ref_src=twsrc%5Egoogle%7Ctwcamp%5Eserp%7Ctwgr%5Etweet",
            "position": 3,
            "published_date": "3 days ago"
        },
        {
            "tweet": "You cannot quiet the mind, you can only watch it.",
            "link": "https://twitter.com/naval/status/1421356423955451906?ref_src=twsrc%5Egoogle%7Ctwcamp%5Eserp%7Ctwgr%5Etweet",
            "position": 4,
            "published_date": "5 days ago"
        },
        {
            "tweet": "Your mistake is that you’re writing to be read.",
            "link": "https://twitter.com/naval/status/1421353837072289793?ref_src=twsrc%5Egoogle%7Ctwcamp%5Eserp%7Ctwgr%5Etweet",
            "position": 5,
            "published_date": "5 days ago"
        }
        ]
    },
    ...
}

Last updated 2 years ago

Scrape Twitter Results on Google
Page cover image