New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

YouTubeMusicAPI

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

YouTubeMusicAPI

An unofficial search API for YouTube Music.

  • 2.9.1
  • PyPI
  • Socket score

Maintainers
1

YouTube Music API

An unofficial search API for YouTube Music.

Downloads

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.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc