Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide API support #37

Open
arsaboo opened this issue Nov 20, 2024 · 1 comment
Open

Provide API support #37

arsaboo opened this issue Nov 20, 2024 · 1 comment

Comments

@arsaboo
Copy link

arsaboo commented Nov 20, 2024

This is a great tool and I would love to be able to integrate with Beets. Is there any way to use it without the UI using an API?

@goodness-from-me
Copy link

The API is already here.

Request:

POST https://idonthavespotify.donado.co/api/search?v=1 HTTP/1.1
content-type: application/json
user-agent: Bot

{
    "link": "https://open.spotify.com/track/4TCvjlVlI2jpw9zr5PLl7u?si=39b35920c9d84918"
}

Response:

{
  "id": "b3Blbi5zcG90aWZ5LmNvbS90cmFjay80VEN2amxWbEkyanB3OXpyNVBMbDd1P3NpPTM5YjM1OTIwYzlkODQ5MTg%3D",
  "type": "song",
  "title": "падаю вниз",
  "description": "SATOR1 · падаю вниз · Song · 2024",
  "image": "https://i.scdn.co/image/ab67616d0000b27343f93f2f821f9217ec4ff964",
  "audio": "https://p.scdn.co/mp3-preview/981c2b6f4564bd356d9e267670b8f0083a8d20fa",
  "source": "https://open.spotify.com/track/4TCvjlVlI2jpw9zr5PLl7u?si=39b35920c9d84918",
  "universalLink": "https://bit.donado.co/u13Djw",
  "links": [
    {
      "type": "appleMusic",
      "url": "https://music.apple.com/ca/album/%D0%BF%D0%B0%D0%B4%D0%B0%D1%8E-%D0%B2%D0%BD%D0%B8%D0%B7/1733264579?i=1733264580",
      "isVerified": true
    },
    {
      "type": "deezer",
      "url": "https://www.deezer.com/track/2694411532",
      "isVerified": true
    },
    {
      "type": "soundCloud",
      "url": "https://soundcloud.com/n1theproducer/d-block-europe-dreads-in-plats-official-audio",
      "isVerified": true
    },
    {
      "type": "tidal",
      "url": "https://tidal.com/browse/track/349713406",
      "isVerified": true
    }
  ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants