⚠️ This lesson is retired and might contain outdated information.

Add Query Parameters to a GET Request URL in Postman

Colby Fayock
InstructorColby Fayock
Share this video with your friends

Social Share Links

Send Tweet
Published 4 years ago
Updated 2 years ago

In this lesson, you'll learn how to use the Postman UI to add query parameters to a URL. We'll walk through simply editing the URL in the address bar, then use the Query Parameters table fields to update the parameters by key and value.

Colby Fayock: [0:00] We're going to start off for the request in Postman where we're successfully requesting the details of Chewbacca. One of the features of the Star Wars API is we can include a URL parameter called format and set it to wookiee, and we can get all of our resources translated to wookiee.

[0:12] To test this, we can update our URL and add format=wookiee. If we hit Send, we can see that now our entire request is translated to wookiee, but if we also notice, when we added that URL parameter, we also updated the Params tab.

[0:25] We now have a Query Param with a key of format and a value of wookiee. That means that if we want to update this value, we can update it inside this table. If we wanted to stop translating to wookiee, we can uncheck this box and hit Send, and we can see that it's no longer applying the translation to our request.

[0:41] As another example, if we wanted to search through all the characters, we can go back to our Query Params, and we can click the KEY and add search and we can set a value which we can look for darth. If we hit Send, we can see that we get the results for darth including Darth Vader and Darth Maul.

[0:56] In review, we wanted to add a URL parameter to our request to translate request to wookiee. To do that, we can add the parameter straight to the URL. We can also use the query parameters table, where we can add our key, a format, and a value of wookiee, where we can see it update the URL, which updates our request.

egghead
egghead
~ 10 minutes ago

Member comments are a way for members to communicate, interact, and ask questions about a lesson.

The instructor or someone from the community might respond to your question Here are a few basic guidelines to commenting on egghead.io

Be on-Topic

Comments are for discussing a lesson. If you're having a general issue with the website functionality, please contact us at support@egghead.io.

Avoid meta-discussion

  • This was great!
  • This was horrible!
  • I didn't like this because it didn't match my skill level.
  • +1 It will likely be deleted as spam.

Code Problems?

Should be accompanied by code! Codesandbox or Stackblitz provide a way to share code and discuss it in context

Details and Context

Vague question? Vague answer. Any details and context you can provide will lure more interesting answers!

Markdown supported.
Become a member to join the discussionEnroll Today