Search⌘ K
AI Features

Query Parameters

Explore how query parameters work in AWS API Gateway and learn to map incoming parameters to target APIs. This lesson guides you through setting up and integrating query parameters, using practical examples to customize API requests.

What's a query parameter?

Consider the URL, https://example.com?arg1=val1&arg2=val2. Here, arg1 and arg2 are called query parameters. We need query parameter integration in two scenarios.

  • The URL invoking our API contains query parameters that should pass into the target API.

  • The URL of the target API requires some query parameters.

API Gateway enables either of them. When we integrate the requests, we can change the query parameters to get the required mapping.

Example

Let’s check out an ...