Do I require authorization from Spotify for isrc code? - spotify

I want to make a request to Spotify Web API, getting the isrc code based on song title and artist title.
Do I require authorization for this type of request?

No, you don't need to authenticate your request, though it's advisable if you are going to make lots of requests.
You would use the Search endpoint for finding tracks with a given title and artist name, and then you would get the data for the track using the Get a track endpoint.
There you can find the isrc code in the external_ids field.

Related

YouTube Data API LiveChatId assistance

I've looked online for quite some time now, and I have come up empty. I am working in C#, and I am trying to locate the code I can use to get the liveChatId so I can post to livestream chat. Even the "Try it now" section of Google's example resource https://developers.google.com/youtube/v3/live/docs/liveChatMessages/list#try-it asks for the liveChatId as well. I know I need to make a HTTP GET request, but I really need the actual code that will allow me to do this.
Assistance is GREATLY appreciated.
Here, from the very documentation you provided:
The liveChatId parameter specifies the ID of the chat whose messages will be returned. The live chat ID associated with a broadcast is returned in the liveBroadcast resource's snippet.liveChatId property.
That means you first need to get your liveBroadcast resource. You can obtain those at the liveBroadcasts.list endpoint. If you want to retrieve broadcasts that you (or a user of your application) is the owner of, you might consider authenticating with OAuth 2.0 and using the mine parameter.

Get track information from Spotify API using ISRC code

Is it possible to get the track id (or better, the entire track metadata) using an ISRC code?
Yes, you can get information about a track given the ISRC using the Search endpoint.
For example, Metallica's Sad But True has the ISRC USEE10001993. A request to the Web API to retrieve the track metadata would be:
https://api.spotify.com/v1/search?type=track&q=isrc:USEE10001993

Instagram feeds using tag name of particular user

I am trying to fetch the instagram feeds to my site using tag name.
https://api.instagram.com/v1/tags/{tag-name}?access_token=ACCESS-TOKEN
above is the api which I am using to get the feeds.
Now the feeds are displaying from all the users who use the tag. I need to restrict the feeds for the particular user who use the tag name.
Anyone come across this?
Thanks,
The current version of the Instagram Api does not have an endpoint that will allow you to get media by tag-name AND user-id. Your best bet is to use 1 of the following endpoints, and then loop through the results and filter out the media that matches the 2nd condition.
Search for posts by given hashtag's name using GET /tags/{tag-name}/media/recent API endpoint request and then filter the response list of media to match the user-id for the particular user in question.
or
Search for posts by the particular user using GET /users/{user-id}/media/recent API endpoint request and then manually check every post if its tags array contains the specific hashtag you are looking for.
I recommend you go with option 2 as that will be faster, since an individual user feed is a much smaller data set than media from 1000s of Instagram users tagged with a hashtag.

Spotify web api, get follow playlist's tracks

I want to get the tracks of a playlist that I follow via de new Spotify Web API. The issue is that, if the playlist isn't created by me, I get a 404 Error.
Any ideas how to solve this?
For next time, please provide the exact URL that you're calling, along with query parameters or potential body parameters. It makes it a lot easier for people to help you.
My assumption of what's going wrong here is that you're providing your own username instead of the playlist's owner's username as part of the URL.
Endpoint documentation for Get a Playlist's Tracks:
GET https://api.spotify.com/v1/users/{user_id}/playlists/{playlist_id}/tracks
The user_id here is the playlist's owner's user id, and the playlist_id is of course the id of the playlist, e.g. 6sUmrBvbrRDDbaYJmO9DaE.

how subscribing to instagram realtime api helps me to get user/media details

I have subscribed to instagram realtime api to receive POST updates for hashtag #sudhir
I am able to get updates to my server this way :
{"changed_aspect":"media", "subscription_id":2935881, "object":"tag", "object_id":"sudhir", "time":1362748903}
I don't find any user related or media related info in these updates. I found in SO that we have to hit their (instagram) endpoints explicitly to get photos/user info, inspite of subscribing to endpoints.
If we have to make request explicitly, then what is the use of subscribing to particular endpoint.?
What is the use of this json data ({"changed_aspect":"media","subscription_id":2935881,"object":"tag","object_id":"nofilter","time":1362748903}) we get in request body of our servlet. ?
Can we use this data in any way to get actual data of user/media ?
Any help or suggestions would be appreciated :)
Nothing useful I'm afraid. Once you have that information you know that something has changed on Instagram's end. You are then supposed to fire off the corresponding request. From your example it looks like you want to then do a tag/recent/ request and filter out anything earlier than the "time" variable.
Not the easiest way to do things unfortunately but they seem to have decided that the hard way of doing things is the way to go.

Resources