Question 2 - How many locations have a pharmacy and a gas station near the given zip code?
GET {{kroger-baseUrl}}/locations?filter.zipCode.near=45202&filter.department=10,09&filter.limit=200
- Use the Department list operation in the Locations API to get departmentIds: `GET https://api.kroger.com/v1/departments\`
- Pass the departmentIds to the Location list operation in the Locations API: `GET https://api.kroger.com/v1/locations?filter.zipCode.near=45202&filter.department=10,09&filter.limit=200\`
- Look at the
total
field in themeta
section of the response.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
filter.zipCode.near | number | ||
filter.department | string | ||
filter.limit | number |