App Logo
gap.com

Search Gap products

Automatically search Gap products on gap.com. Search the Gap US store (gap.com) by free text, with the sort orders and filters of the site. Returns one page of up to 200 products as the site lists them: the product id, the id and link of the first color, the name, the sale and regular price range in US dollars, the rating, the review count, the number of colors, the image, the badges and offers shown on the card, and up to 5 colors with their own id, price and image. Also returns the total number of results, the page count, whether a next page exists, and the filters the site offers for this search (department, size, color, fit and more), each value with its result count. A search with no match, or a page past the last one, returns an empty list. When Gap sends a search term to another page (for example a help page), the list is empty and redirectUrl gives that page. Pass a productId or url to Get Gap product to see the sizes.

Inputs

query required

Free text to search for, for example "wide leg jeans".

page optional

Page of results, up to 200 products a page, starting at 1. Stop when hasNextPage is false.

Default: 1
sort optional

Sort order of the site: featured, newest first, price low to high, price high to low.

Default: "featured"
filters optional

Filters to apply. Each one is a filter name and one or more of its values, taken from the filters of an earlier search, for example {"name":"department","values":["Women"]}. Several values of one filter match any of them.

Default: []
priceMax optional

Highest price in US dollars. Give it with priceMin.

priceMin optional

Lowest price in US dollars. Give it with priceMax.

Output

page required
items required
query required
filters required
totalPages required
hasNextPage required
redirectUrl required
totalResults required

FAQ

Search the Gap US store (gap.com) by free text, with the sort orders and filters of the site. Returns one page of up to 200 products as the site lists them: the product id, the id and link of the first color, the name, the sale and regular price range in US dollars, the rating, the review count, the number of colors, the image, the badges and offers shown on the card, and up to 5 colors with their own id, price and image. Also returns the total number of results, the page count, whether a next page exists, and the filters the site offers for this search (department, size, color, fit and more), each value with its result count. A search with no match, or a page past the last one, returns an empty list. When Gap sends a search term to another page (for example a help page), the list is empty and redirectUrl gives that page. Pass a productId or url to Get Gap product to see the sizes.
Ask an AI agent connected to Reduck to run reduck/gap.com/search-products, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/gap.com/search-products
You do not need one. "Search Gap products" drives the real gap.com pages in a browser, so it works whether or not gap.com offers an API for this.
Required: query. Optional: page, sort, filters, priceMax, priceMin.
It returns page, items, query, filters, totalPages, hasNextPage, redirectUrl, totalResults.
No. It only uses pages of gap.com that are reachable without signing in.
It only reads. It looks things up on gap.com and changes nothing there.
Ask an AI agent connected to Reduck to run reduck/gap.com/search-products, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/gap.com/search-products
It is one of Reduck's official scripts.

Start building not clicking