Quick Start

Get Started in 5 Minutes

Follow these steps to make your first API call and start retrieving social media data.

01

Create an account

Sign up for a free ScrapeBadger account. No credit card required to get started.

Sign Up Free
02

Generate an API key

Navigate to your dashboard and create a new API key. You can create multiple keys for different projects.

Go to Dashboard
03

Make your first request

Use your API key to authenticate requests. Include it in the x-api-key header.

Example Request

cURL

curl -X GET "https://api.scrapebadger.com/v1/twitter/users/elonmusk/by_username" \
  -H "x-api-key: YOUR_API_KEY"

JavaScript

const response = await fetch(
  'https://api.scrapebadger.com/v1/twitter/users/elonmusk/by_username',
  {
    headers: {
      'x-api-key': 'YOUR_API_KEY'
    }
  }
);

const user = await response.json();
console.log(user.name, user.followers_count);

Python

import requests

response = requests.get(
    'https://api.scrapebadger.com/v1/twitter/users/elonmusk/by_username',
    headers={'x-api-key': 'YOUR_API_KEY'}
)

user = response.json()
print(f"{user['name']} - {user['followers_count']} followers")

Example Response

{
  "id": "44196397",
  "username": "elonmusk",
  "name": "Elon Musk",
  "description": "Read @TheBoringCompany...",
  "followers_count": 170000000,
  "following_count": 500,
  "tweet_count": 45000,
  "verified": true,
  "verified_type": "Business",
  "profile_image_url": "https://pbs.twimg.com/...",
  "created_at": "2009-06-02T20:12:29.000Z"
}

The response includes full user profile data including verification status, follower counts, and account metadata.