
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
spotify-api-request
Advanced tools
A typescript supported wrapper for the Spotify web API
Install using Yarn or NPM
yarn add spotify-api-request
Tokens are used to make requests. This method will get you a valid token for the next hour. There are four methods authorization (described in documentation).
import { getToken } from 'spotify-api-request'
const token = await getToken({
clientId: clientId,
clientSecret: clientSecret
})
Now, we can use that token to make requests.
import { searchForItem } from 'spotify-api-request'
async function searchForShow(showName: string) {
const token = await getToken()
const searchRes = await searchForItem(token, {
q: showName,
type: 'shows'
})
return searchRes.shows.items
}
Every response is wrapped in a promise, so async/await is really helpful here.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure you update all test and documentation as appropriate.
FAQs
A typescript supported wrapper for the Spotify Web API.
The npm package spotify-api-request receives a total of 0 weekly downloads. As such, spotify-api-request popularity was classified as not popular.
We found that spotify-api-request demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.