URL Request

URL Request

Posted 9 Sep 2019, 16:05:07

Where would I put my API Key in the URL Request? It only shows me for a curl. Thanks

Re: URL Request

Posted 10 Sep 2019, 7:33:23

You have to add your API key to the `x-api-key` header. If by saying “URL Request” you mean in a browser then you'd have to add the header too. There are browser add-ons that let you add headers to your requests. But the easiest way is to use the interactive interface

Re: URL Request

Posted 10 Sep 2019, 12:49:16

Thank you. Where would I put that in the endpoint?

Re: URL Request

Posted 10 Sep 2019, 13:04:53

Where would I put that in the endpoint?

Sorry I don't understand. You need to add the header to your request when accessing any endpoint.

Re: URL Request

Posted 10 Sep 2019, 13:07:20

This is the URL it gives me for my query “https://api.setlist.fm/rest/1.0/search/artists?artistMbid=e1f1e33e-2e4c-4d43-b91b-7064068d3283&p=1&sort=relevance” is there somewhere in this URL that I would put my key?

Re: URL Request

Posted 10 Sep 2019, 13:10:51

No, it needs to be added as http request header. It's not possible to add the key as query parameter.

Re: URL Request

Posted 10 Sep 2019, 13:13:59

Thank you!

Post Reply

You're not allowed to do this, please sign in first.