Skip to main content

YouTube Scraper

Oxylabs promo code

With YouTube Scraper, you can easily collect public YouTube data without blocks. Follow this guide to see how to scrape YouTube using Oxylabs’ Scraper API.

How it works

Simply, send a web request to our API and you’ll retrieve the HTML of any public YouTube page you wish to scrape.

Python code example

The below code requests and delivers the HTML content of this Oxylabs video on YouTube:

import requests
from pprint import pprint

# Structure payload.
payload = {
    'source': 'universal',
    'url': 'https://www.youtube.com/watch?v=SLSGtgKWzxg',
    'render': 'html'
}

# Get a response.
response = requests.request(
    'POST',
    'https://realtime.oxylabs.io/v1/queries',
    auth=('USERNAME', 'PASSWORD'),  # Your credentials go here
    json=payload
)

# Instead of response with job status and results URL, this will return the
# JSON response with results.
pprint(response.json())

See Oxylabs documentation for more details.

Output sample

{
    "results": [
        {
            "content":"<!doctype html>
<html lang="en">
<head>
            ...
            </script></body>
</html>
",
            "created_at": "2023-05-18 12:33:40",
            "updated_at": "2023-05-18 12:33:55",
            "page": 1,
            "url": "https://www.youtube.com/watch?v=SLSGtgKWzxg",
            "job_id": "7064941110115745793",
            "status_code": 200
        }
    ]
}

Oxylabs’ YouTube Scraper API will ease your data gathering efforts and you’ll be sure to gather YouTube data like channel information, video details, titles, descriptions, playlists, and more. Reach out to us via live chat or email in case you have any questions.

Metadata

Release files for youtube-video-scraper-api 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for youtube-video-scraper-api 0.1.3
File Size Uploaded Provenance Actions
youtube-video-scraper-api-0.1.3.tar.gz 3.2 kB Without provenance Details for youtube-video-scraper-api-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for youtube-video-scraper-api 0.1.3
File Interpreter ABI Platform Actions
youtube_video_scraper_api-0.1.3-py3-none-any.whl Python 3 none any Details for youtube_video_scraper_api-0.1.3-py3-none-any.whl

Total release size: 5.8 kB

Release files / youtube-video-scraper-api-0.1.3.tar.gz

Download URL youtube-video-scraper-api-0.1.3.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1b7c497c6399da7cf109f621562f0449a85b4eacc51bbeb02fdd70fc6f7a5a68
BLAKE2b-256 checksum
How to use checksums
9c9a2e84194299cf52e69a3110c553ea47402da45fe80931b0a79129d5412b13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / youtube_video_scraper_api-0.1.3-py3-none-any.whl

Download URL youtube_video_scraper_api-0.1.3-py3-none-any.whl
Size 2.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5a3bb6644b798b9809c95811e33f3ff18dbcb31bd963b67d53a57c5e66078c38
BLAKE2b-256 checksum
How to use checksums
ab3853f09343163712cd636ef36300d4eaf583e8cc26c05ce786891ab77da2ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Security for youtube-video-scraper-api 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page