An unofficial search API for YouTube Music.
Project description
YouTube Music API
An unofficial search API for YouTube Music.
Installation:
pip install -U YouTubeMusicAPI
Get Basic
# Import the YouTubeMusicAPI module
import YouTubeMusicAPI
# Example query
query = "alan walker faded"
# Call the search function with the query
result = YouTubeMusicAPI.search(query)
# Check if a result was found
if result:
# Print the retrieved result
print(result)
else:
# Print a message if no result was found
print("No Result Found")
Example Output:
{
"title": "Alan Walker - Faded",
"id": "60ItHLz5WEA",
"url": "https://music.youtube.com/watch?v=60ItHLz5WEA",
"artwork": "https://img.youtube.com/vi/60ItHLz5WEA/0.jpg",
"author": {
"name": "Alan Walker",
"url": "https://www.youtube.com/@Alanwalkermusic"
}
}
License
Free and open-source under MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file YouTubeMusicAPI-2.9.1-py3-none-any.whl
.
File metadata
- Download URL: YouTubeMusicAPI-2.9.1-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a8c5df0d5815b56cfeca2832ef8e535a6ee832010e69a06cc1778514d50e638 |
|
MD5 | a6ebdc6d76fe7f9987e98c12c04b3526 |
|
BLAKE2b-256 | 0bfde1bc4db88c37d1368fa1bb858a80f418bd583aeb9a5f2f4a00b73a09e808 |