X Profile Scraper API

With X Profile Scraper API, you can scrape any profile. You just have to pass the ID of that person, and our API will return the parsed JSON data.

Each successful request will cost you 5 API credits. X Scraping API pricing is available here.

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

Parameters

Parameter
Description

api_key

required

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

profileId

required

This is the user ID. Type: String

API Example

curl "https://api.scrapingdog.com/x/profile?api_key=5eaa61a6e562fc52fe763tr516e4653&profileId=elonmusk"

API Response

{
  "user": {
    "typename": "User",
    "id": "VXNlcjo0NDE5NjM5Nw==",
    "rest_id": "44196397",
    "affiliates_highlighted_label": {
      "label": {
        "url": {
          "url": "https://twitter.com/X",
          "urlType": "DeepLink"
        },
        "badge": {
          "url": "https://pbs.twimg.com/profile_images/1683899100922511378/5lY42eHs_bigger.jpg"
        },
        "description": "X",
        "userLabelType": "BusinessLabel",
        "userLabelDisplayType": "Badge"
      }
    },
    "parody_commentary_fan_label": "None",
    "is_blue_verified": true,
    "profile_picture": "https://pbs.twimg.com/profile_images/1926284313365979137/o2cF3MeJ_normal.jpg",
    "profile_name": "Elon Musk",
    "profile_handle": "elonmusk",
    "profile_url": "https://www.x.com/elonmusk",
    "description": "",
    "likes_count": 151468,
    "followers_count": 221041700,
    "following_count": 1147,
    "listed_count": 162896,
    "location": "",
    "media_count": 3915,
    "pinned_tweet_ids_str": [
      "1933399839490126217"
    ],
    "statuses_count": 80069,
    "verified": false,
    "translator_type": "none",
    "withheld_in_countries": []
  }
}

Last updated