# spoti-pro

> New Stable Version 4!!! Updated Search Spotify Data! (Spotify Search) (Spotify Find) (Spoti-Pro)

Latest version **4.0.7** (published 2024-04-28) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install spoti-pro
pnpm add spoti-pro
yarn add spoti-pro
bun add spoti-pro
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.0.7 |
| Published | 2024-04-28 |
| First published | 2023-07-24 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 24.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Tejas Shettigar |
| Maintainers | tejasshettigar |
| Keywords | Spotify-search, spotify, spotify-find, spoti-pro, spoti, pro, url from spotify, spotify url, spotify helper, spotify search, spotify find, spotify search data, spotify find data, jio saavan, amazon music |

## Links

- npm: https://www.npmjs.com/package/spoti-pro
- Repository: https://github.com/TEZZ444/spoti-pro
- Homepage: https://github.com/TEZZ444/spoti-pro#readme
- Issues: https://github.com/TEZZ444/spoti-pro/issues
- npm.io page: https://npm.io/package/spoti-pro

## Dependencies (2)

- [axios](https://npm.io/package/axios.md) ^1.6.8
- [node-cache](https://npm.io/package/node-cache.md) ^5.1.2

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 4.0.7 (latest) — 2024-04-28
- 4.0.6 — 2024-04-26
- 4.0.5 — 2024-04-26
- 4.0.4 — 2024-04-26
- 4.0.3 — 2024-04-26
- 4.0.2 — 2024-04-26
- 4.0.1 — 2024-04-25
- 4.0.0 — 2024-04-25
- 3.2.2 — 2024-02-05
- 3.2.1 — 2024-02-05
- 3.2.0 — 2024-02-05
- 3.1.2 — 2024-02-05
- 3.1.1 — 2024-02-05
- 3.1.0 — 2024-02-05
- 3.0.3 — 2024-02-05
- … 27 more at https://npm.io/package/spoti-pro/versions

## README

# New Version Quick Example 

###  Newly added and search types and improved Recommendations and results!

```javascript
const SpotiPro = require("spoti-pro");

const Spotify_ID = "Your_Spotify_Id";
const Spotify_Secret = "Your_Spotify_Secret";

const spotipro = new SpotiPro(Spotify_ID, Spotify_Secret, { cacheEnabled: false }); // default set to false not ness to define

// direct search by giving type!
async function search() {
    const results = await spotipro.search({ query: "Hasi - Male Version", type: "track"});
    // types available for now  - track, album, artist , playlist
    console.log(results);
}
search();

//To Search The Track
async function searchSong(trackName) {
  const results = await spotipro.searchTrack(trackName);

  const track = results.title;
  const artist = results.artist;
  const thumbnail = results.thumbnail;
  const link = results.link;
  const artistLink = results.artistLink;
  const album = results.album;
  const duration = results.duration;
  const durationInMs = results.durationInMs;
  // for raw data -> const data = results.rawData
  console.log(`Track Name - ${track}\nArtist - ${artist}\nThumbnail - ${thumbnail}\nLink - ${link}`)//
}
searchSong("On My Way")

//For Recommendations
async function getRec(trackUrl) {
  const trackLink = await spotipro.getRecommendations(trackUrl);
  console.log(`${trackLink}`)
}
getRec("https://open.spotify.com/track/32765xcLM1fd6wQIpkN9A0?si=c02bd979415c4bd9"); // link of the spotify url of previous track

//same methods also available for artist and playlist for eg.
async function artist(artishName) {
    const results = await spotipro.searchArtist(artishName);
    // check logs and implement in code
    console.log(results);
}
artist("KR$NA"); //artist name 

// more search methods available -> searchPlaylist() , searchAlbum()
```
## Donation If you like my work <3
Link : https://www.paypal.com/paypalme/wideservices?country.x=IN&locale.x=en_GB

## To Get The Spotify Id and Secret
Link : https://developer.spotify.com/dashboard

---
_Source: https://npm.io/package/spoti-pro · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
