Twitter Scraping API

With Twitter Scraping API you scrape any tweet. You just have to pass the URL of that tweet and our API will return the parsed JSON data.

Each successful request will cost you 10 API credits. Twitter Scraping API pricing is available here.

You have to send a GET request to http://api.scrapingdog.com/twitter with the below-given parameters.

Parameters

Parameter
Description

api_key required

Your personal API key. Available on your dashboard. Type: String

parsed required

This is a boolean that tells our server to return JSON or HTML. If you pass true then our server will return a JSON response and if you pass false then HTML will be returned. Type: Boolean

url required

This is the tweet URL. Type: String

API Example

curl "https://api.scrapingdog.com/twitter?api_key=5eaa61a6e562fc52fe763tr516e4653&url=https://twitter.com/elonmusk/status/1655608985058267139&parsed=true"

Response

[
    {
        "views": "78.2M",
        "retweets": "39.1K",
        "quotes": "17.1K",
        "likes": "394.8K",
        "bookmarks": "3,246",
        "tweet": "We’re purging accounts that have had no activity at all for several years, so you will probably see follower count drop",
        "profile_picture": "https://pbs.twimg.com/profile_images/1683325380441128960/yRsRRjGO_normal.jpg",
        "name": "Elon Musk",
        "profile_handle": "@elonmusk",
        "profile_url": "https://www.twitter.com/elonmusk",
        "tweet_timing": "4:21 PM",
        "tweet_date": "May 8, 2023",
        "tweet_id": "1655608985058267139",
        "tweet_url": "https://www.twitter.com/elonmusk/status/1655608985058267139"
    }
]

Last updated