How to properly implement an HTTP GET request using an API key

How do I properly implement this? Is this the type of API that can be accessed?

All of our API endpoints can be accessed via an HTTP GET request using your API key. The API key can be passed either as a query parameter or using the following HTTP request header.Ocp-Apim-Subscription-Key: {key}

1 Like

Hi Michael, welcome to the Parabola community!

That should be able to be handled by the API Import step. You’ll want to select a GET request, paste in the URL of the API endpoint you’re trying to use, add a custom header, type in the name of the header as the Header Key, and then put your api key in the Header Value. I know those names are confusing as the word key is used multiple times to mean different things, but hopefully those instructions make sense!

So you know, you may end up needing to configure a top-level key on the API Import step and/or a JSON Flattener step depending how your API returns its data.

4 Likes

Thank you so much, Alex! That is exactly what I was getting tripped up on. It’s working wonderfully now.

Much appreciated,

Mike

3 Likes