Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Piped API client (Python)

Test with pyTest

A Python API wrapper for Piped. This can essentially be used as an alternative way to access YouTube's API, without needing to use an API key.

Installation

pip install piped-api

Quickstart

Getting started is very easy:

from piped_api import PipedClient

CLIENT = PipedClient()


# Print out the first audio stream URL for a video:
video = CLIENT.get_video(video_id)
audio_stream = video.get_streams('audio')[0]

print(f"Audio stream URL: {audio_stream.url} ({audio_stream.mime_type})")

You can find more examples in the tests folder.

Why?

The creation of this package was primarily fueled by the same type of motivation Piped has.

Google's API is not very easy-to-use - you must obtain some JSON thingy to use it, and it is very low-level and not very user-friendly. On the other hand, this package accessed the Piped API, which has a much more high-level API and doesn't need an account or API keys.

It is not meant to be a replacement for the official YouTube API, but it can help you to cut the strings that Google attaches to you when using their API.

Useful links

🎁 Support me

I create free software to benefit people. If this project helps you and you like it, consider supporting me by donating via cryptocurrency:

Crypto Address
Bitcoin E-mail me
Ethereum 0x12C598b3bC084710507c9d6d19C9434fD26864Cc
Litecoin LgHQK1NQrRQ56AKvVtSxMubqbjSWh7DTD2
Dash Xe7TYoRCYPdZyiQYDjgzCGxR5juPWV8PgZ
Zcash: t1Pesobv3SShMHGfrZWe926nsnBo2pyqN3f
Dogecoin: DALxrKSbcCXz619QqLj9qKXFnTp8u2cS12
Ripple: rNQsgQvMbbBAd957XyDeNudA4jLH1ANERL
Monero: 48TfTddnpgnKBn13MdJNJwHfxDwwGngPgL3v6bNSTwGaXveeaUWzJcMUVrbWUyDSyPDwEJVoup2gmDuskkcFuNG99zatYFS
Bitcoin Cash: qzx6pqzcltm7ely24wnhpzp65r8ltrqgeuevtrsj9n
Ethereum Classic: 0x383Dc3B83afBD66b4a5e64511525FbFeb2C023Db

More cryptocurrencies are supported. If you are interested in donating with a different one, please E-mail me. No other forms of donation are currently supported.

Metadata

Release files for piped-api 1.0.1b0

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

Source distribution (sdist)

Source distribution for piped-api 1.0.1b0
File Size Uploaded
piped-api-1.0.1b0.tar.gz 11.8 kB Details

Release files / piped-api-1.0.1b0.tar.gz

Download URL piped-api-1.0.1b0.tar.gz
Size 11.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9ee182ed9ecabdf2e5a2baa91a7f792e0451eb62eab1215b71a6e4a70880d418
BLAKE2b-256 checksum
How to use checksums
c4df31b52a625304abbe30062541d721829f0fe3548116922dcb2393ddcb1335
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12

Release history Release notifications | RSS feed

This release

1.0.1b0 This release

1 release file

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