Get a Spotify track by id or track URL.
Endpoint
/v1/spotify/track
Query
Optional Spotify track id for the request.
Optional Spotify track URL for the request.
const response = await fetch( "https://api.socialfetch.dev/v1/spotify/track?trackId=1ITJflybJsfarsUtiBvkfK", { headers: { "x-api-key": "YOUR_API_KEY" } } ); const data = await response.json(); console.log(data);