For Best Experience
We recommend viewing this page on a desktop or laptop
YouTube Data API

Powerful YouTube Metadata API Without the Hassle

Designed for developers, content creators, and analysts — fetch video details like title, views, likes, tags, categories, and channel info in real-time.

Universal Compatibility

Works with any programming language - Python, JavaScript, PHP, Java, and more. Simple HTTP requests, JSON responses.

See code examples

Blazing Fast

Average response time under 300ms. Our distributed infrastructure handles spikes effortlessly.

99.9% Uptime SLA

Zero Setup

No API keys, no authentication. Start making requests immediately with IP-based rate limiting.

60 requests/minute • 1,000/day

Comprehensive Data

Videos, channels, playlists, comments, and search. All metadata in clean JSON format.

Explore all data fields

Ready to Get Started?

Join thousands of developers and businesses using our YouTube API to power their applications.

No credit card required • Free tier available

Before you begin, check out our comprehensive documentation for detailed API reference and examples.

Get Started in Minutes

Powerful YouTube Metadata extraction through a simple API

Our API is completely free to use with no signups required. Start extracting YouTube Metadata immediately using simple HTTP requests. We use IP-based rate limiting to prevent abuse while ensuring easy access for all developers.

Video Data

Extract complete metadata from any YouTube video including title, description, statistics, and more.

Channel Data

Get comprehensive channel information including subscriber count, videos, playlists, and analytics.

Playlists

Extract complete playlist data including all videos, their order, and metadata.

Shorts Data

Specialized endpoint for extracting metadata from YouTube Shorts videos.

Search Videos

Search YouTube videos with powerful filtering and sorting options.

Video Comments

Extract comments from any video including text, likes, and author information.

How It Works

Get YouTube data in 3 simple steps

Plus easy integration with your favorite programming languages

Authentication & Rate Limits

Authentication

Currently, our API is free to use without authentication. No API keys or signups required - start making requests immediately.

Rate Limits

We implement the following rate limits to ensure fair usage for all:

  • 60 requests per minute per IP address
  • 1000 requests per day per IP address

Need higher limits?

If you require higher rate limits for your application, please contact us to discuss options.

API Endpoints

Explore our RESTful APIs to fetch YouTube data including videos, playlists, and comments.

GET

Get Video Data

GET

Get Channel Data

NEW GET

Get Shorts Data

GET

Search Videos

GET

Get Video Comments

GET

Get Channel Playlists

GET

Get Playlist Videos

Try It Out

Enter a YouTube video URL

{
  "message": "Select an endpoint and click 'Test API Endpoint'"
}

Code Examples

Integrate our API effortlessly with your favorite programming language. Whether you're building a web application, mobile app, or backend service, we provide clear examples to help you get started quickly.

Currently showing: JavaScript
// Fetch YouTube Shorts data
async function getShortsData(url) {
    try {
        const response = await fetch(`https://youtubescraper.in/api/v1/shorts?url=${encodeURIComponent(url)}`);
        const data = await response.json();
        console.log(data);
        return data;
    } catch (error) {
        console.error('Error:', error);
    }
}

// Example usage
getShortsData('https://www.youtube.com/shorts/VIDEO_ID');

Try It Instantly

JavaScript Test our API directly in your browser's developer console (F12)

// Open DevTools (F12) and paste this:
fetch('https://youtubescraper.in/api/v1/video?url=https://youtu.be/dQw4w9WgXcQ')
  .then(res => res.json())
  .then(data => console.log(data));
View Documentation

API Rate Limits

We implement fair usage policies to ensure optimal performance for all users

Free Tier

  • 60 requests per minute

    Per IP address

  • 1,000 requests per day

    24-hour rolling window

  • No API key required

    Get started immediately

Pro Tier

Coming Soon
  • Authenticated API keys

    Higher priority access

  • Higher rate limits

    Up to 10,000 requests/minute

  • Bulk requests

    Process multiple items in one call

Need higher limits? Contact us for enterprise solutions.

Error Handling

Comprehensive error responses to help you debug quickly

Standard HTTP Status Codes

Our API follows REST conventions and returns appropriate HTTP status codes with detailed error information.

Code Status Description Common Causes
400 Bad Request Request is malformed or missing required parameters Invalid JSON, missing fields, validation errors
401 Unauthorized Authentication credentials are missing or invalid Expired/missing API key, invalid credentials
403 Forbidden Authenticated but not authorized for this resource Insufficient permissions, IP restrictions
404 Not Found Requested resource doesn't exist Invalid ID, deleted content, wrong endpoint
405 Method Not Allowed HTTP method not supported for this endpoint Using POST instead of GET, or vice versa
406 Not Acceptable Requested format not available Unsupported Accept header
409 Conflict Request conflicts with current state Duplicate entries, version conflicts
429 Too Many Requests Rate limit exceeded Too many requests in short time period
500 Internal Server Error Unexpected server error Server-side exceptions, database errors
501 Not Implemented Server doesn't support the functionality Unsupported API version, deprecated endpoint
503 Service Unavailable Server temporarily unable to handle requests Maintenance, overloaded server

Error Response Format

All errors return a consistent JSON structure with debugging information:

error-response.json
{
  "error": {
    "code": "invalid_request",
    "message": "The 'url' parameter is required and must be a valid YouTube URL",
    "type": "validation_error",
    "details": {
      "parameter": "url",
      "expected": "YouTube URL (string)",
      "received": null
    },
    "documentation_url": "https://docs.example.com/errors/invalid-request",
    "request_id": "req_123456789",
    "timestamp": "2023-07-18T12:34:56Z"
  }
}

Error Fields

code - Machine-readable error code

type - Error category (validation, auth, etc.)

request_id - Unique ID for support requests

Best Practices

• Always handle 429 errors with exponential backoff

• Include the request_id when contacting support

• Check documentation_url for solutions

API DOCS

YouTube Data API

Instant access to YouTube videos, channels, and playlists

Ready to Integrate YouTube Data?

Start using our free YouTube API today - no account required!

Try API Now