Send a GET request with parameters

In this tutorial, we will Postman to invoke the search artist spotify API from the previous lab which takes some parameters.

  1. Click on New next to your workspace and select Collection. Name it Spotify.
  2. Create a new folder under Spotify. Name it Search. You can add some documentation to this folder by referencing the serach API url as follow: [Spotify search API documentation](https://developer.spotify.com/documentation/web-api/reference/#category-search)
  3. Under Search, create a new request. Name it SearchItem.
  4. Copy the API endpoint: https://api.spotify.com/v1/search in the request field.
  5. To add the parameters to this API as shown in the previous lab, click on Params, and add the parameters keys as shown below. You can add your own values.
  6. The search API indicates that it needs Authorization. Click on Authorization and make sure that the type Inherit auth from parent is selected.
  7. Click on Spotify collection. Then Variables. Add the variable {{SPOTIFY_AUTHORIZATION}}. Set the initial value to Your spotify authorization token.
  8. Go to https://developer.spotify.com/console/get-search-item/ and click on Get token to get a new authorization token.
  9. Copy the generated token in the Current value field of the created variable.


  10. Click on Authorization. Choose Bearer token and fill the token value with the variable you just created {{SPOTIFY_AUTHORIZATION}}.


  11. Click on Save.
  12. Go to your request Search item and click on Send et Voila! your GET request with parameters returns a 200 OK status code with all artists containing the words Tania Bower.


  13. Let's send a POST request in the next tutorial;
teaching_assistant/api/postman_get_parameters.txt · Last modified: 2021/09/15 09:42 by Nour
Back to top
CC Attribution-Share Alike 4.0 International
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0