{"name":"gap.com Product Details API","description":"The record of a Product Details page on gap.com, read from the page's URL.","api_id":"generated_7a5749851874dba594029afb","slug":"gap-com-product-details-api","source":{"name":"Gap","domain":"gap.com","url":"https://www.gap.com/"},"category":"commerce","countries":[],"languages":[],"record_types":[],"tags":[],"limitations":[],"updated":"2026-12-04","note":"Sample records are saved samples, not a live run. CleanedWeb is not affiliated with the source.","version":"1.0","versions":[{"major":1,"latest_minor":"1.0","status":"current","sunset_at":null}],"changelog":[{"version":"1.0","date":"2026-12-03T12:40:42.000Z","kind":"major","changes":[]}],"version_note":"Pin a major with \"version\": N in the run body (an integer). Leave it out and the call runs on the latest major. A sunset major runs on the latest major and the response says rerouted. An unknown major answers 404 catalog_version_not_found and lists the available majors.","endpoints":[{"endpoint_id":"generated_7a5749851874dba594029afb_search","name":"Get gap.com Product Details by URL","description":"Return the one record of a page of this kind, given the page's URL on the site.","definition_version":"29ca5ebbf5967d721eea8f60beb2f9fbe2a20a9fef5ecd361c3ca127cc9bbbad","method":"POST","path":"/v1/catalog/public/apis/generated_7a5749851874dba594029afb/endpoints/generated_7a5749851874dba594029afb_search/run","url":"https://api.cleanedweb.com/v1/catalog/public/apis/generated_7a5749851874dba594029afb/endpoints/generated_7a5749851874dba594029afb_search/run","authentication":{"type":"bearer","scheme":"Authorization: Bearer <API key>","scope":"run","note":"Reading this file and the live catalog needs no credential. A run needs a CleanedWeb account and uses the credits of its workspace.","docs":"https://cleanedweb.com/docs/run-catalog-api/"},"required_headers":[{"name":"Authorization","value":"Bearer YOUR_API_KEY","description":"An API key with the run scope."},{"name":"Idempotency-Key","value":"UNIQUE_REQUEST_ID","description":"Required. Save it before you send; reuse it only to retry the same request and to read the result. 1-200 characters: letters, numbers, . _ : -"},{"name":"Content-Type","value":"application/json","description":"The body is JSON."}],"request_body":{"input":"An object that follows input_schema.","max_items":"Optional. Stop after this many records.","timeout_seconds":"Optional, 60-86400, default 10800.","wait_seconds":"Optional, 0-86400, default 90. How long the request waits before answering 202.","version":"Optional integer major. Leave it out for the latest major."},"input_schema":{"type":"object","properties":{"urls":{"anyOf":[{"type":"string","format":"uri","minLength":1},{"type":"array","minItems":1,"maxItems":50,"items":{"type":"string","format":"uri","minLength":1}}],"description":"A page of the same kind as the build page, on gap.com: its path matches /browse/product.do?pid={int}; it need not be the build page. One page, or a list of pages (1 to 50): one record each, in this order, once per page. In a list, a page that fails (off the pattern, unreadable, no product data) is told by its code in the run's metadata (item_pages) and does not fail the run while another page is read.","examples":[["https://www.gap.com/browse/product.do?pid=8898390320042"],"https://www.gap.com/browse/product.do?pid=8898390320042"]}},"required":["urls"],"additionalProperties":false},"output_schema":{"type":"object","properties":{"title":{"type":"string","minLength":1},"url":{"type":"string","format":"uri"},"reviews":{"type":"string"},"images":{"type":"array","items":{"type":["null","string"]}},"description":{"type":"string"},"brand":{"type":"string"},"rating":{"type":["number","string"]},"review_count":{"type":["number","string"]},"price":{"type":"string"},"currency":{"type":"string"},"availability":{"type":"string"},"condition":{"type":"string"},"variant_prices":{"type":"string"},"color":{"type":"string"},"image":{"type":"string"},"category":{"type":"string"},"category_path":{"type":"array","items":{"type":["null","string"]}},"media_images":{"type":"array","items":{"type":["null","string"]}},"on_50_for_encore_members_url":{"type":"string"},"media":{"type":"array","items":{"properties":{"alt":{"type":["null","string"]},"type":{"type":["null","string"]},"url":{"type":["null","string"]}},"type":["null","object"]}},"related_items":{"type":"array","items":{"type":["null","string"]}},"vintagesoft_relaxed_sweat_shorts_url":{"type":"string"},"loose_boot_jeans_url":{"type":"string"},"baggy_jeans_url":{"type":"string"}},"required":["title","url"],"additionalProperties":false},"examples":[{"kind":"saved_validation_records","saved_at":"2026-12-03T12:40:42.096Z","live_verified":false,"request":{"input":{"urls":["https://www.gap.com/browse/product.do?pid=8898390320042"]}},"records_shown":1,"records_saved":1,"records":[{"availability":"InStock","brand":"Gap","category":"Shorts","category_path":["Men","Shorts"],"color":"iconic khaki","condition":"NewCondition","currency":"USD","description":"Smooth stretch cotton twill shorts in a relaxed fit. Button closure, zip fly. Side slant pockets, back welt pockets. Made with 98% regenerative cotton which is grown using holistic agricultural practices that improve soil health, climate resilience, water retention, and local biodiversity. This product was made in a factory that invests in gender equity and women’s empowerment through RISE. Learn more at gapinc.com/equity. Product #889839","image":"https://www.gap.com/webcontent/0062/524/687/cn62524687.jpg","images":["https://www.gap.com/webcontent/0062/524/687/cn62524687.jpg","https://www.gap.com/webcontent/0061/791/704/cn61791704.jpg","https://www.gap.com/webcontent/0061/791/712/cn61791712.jpg","https://www.gap.com/webcontent/0061/791/721/cn61791721.jpg","https://www.gap.com/webcontent/0061/791/723/cn61791723.jpg","https://www.gap.com/webcontent/0061/810/094/cn61810094.jpg","https://www.gap.com/webcontent/0061/823/684/cn61823684.jpg","https://www.gap.com/webcontent/0061/823/704/cn61823704.jpg","https://www.gap.com/webcontent/0061/823/771/cn61823771.jpg","https://www.gap.com/webcontent/0061/860/296/cn61860296.jpg","https://www.gap.com/webcontent/0061/829/590/cn61829590.jpg","https://www.gap.com/webcontent/0061/726/692/cn61726692.jpg","https://www.gap.com/webcontent/0061/737/424/cn61737424.jpg","https://www.gap.com/webcontent/0061/726/750/cn61726750.jpg","https://www.gap.com/webcontent/0061/726/751/cn61726751.jpg","https://www.gap.com/webcontent/0061/752/178/cn61752178.jpg","https://www.gap.com/webcontent/0061/726/706/cn61726706.jpg","https://www.gap.com/webcontent/0061/726/713/cn61726713.jpg","https://www.gap.com/webcontent/0061/726/747/cn61726747.jpg","https://www.gap.com/webcontent/0061/726/768/cn61726768.jpg","https://www.gap.com/webcontent/0061/726/790/cn61726790.jpg"],"media_images":["https://content.gapinc.com/b/0061/726/735/cn61726735.png","https://content.gapinc.com/b/0061/726/728/cn61726728.png","https://content.gapinc.com/b/0061/737/448/cn61737448.png","https://content.gapinc.com/b/0061/726/776/cn61726776.png","https://content.gapinc.com/b/0061/726/791/cn61726791.png","https://content.gapinc.com/b/0061/752/184/cn61752184.png"],"on_50_for_encore_members_url":"https://www.gap.com/my-account/sign-in?targetURL=%2Fbrowse%2Fproduct.do%3Fpid%3D8898390320042%26cid%3Dundefined%26vid%3Dundefined%26pcid%3Dundefined&mlink=1,1,PDP_ENCORE_SIGNIN_JOIN","price":"34.00","rating":4.22,"review_count":51,"reviews":"Write a Review Customers are highly satisfied with these relaxed shorts, noting their breathable fabric and comfortable fit. The wider leg opening is mentioned by some, but overall, they’re a reliable choice for summer activities. This is an AI-generated summary of customer reviews. Likes Fit Quality Style Fabric Dislikes No Trending Dislikes Loading reviews Write a Review Customers are highly satisfied with these relaxed shorts, noting their breathable fabric and comfortable fit. The wider leg opening is mentioned by some, but overall, they’re a reliable choice for summer activities. This is an AI-generated summary of customer reviews. Likes Fit Quality Style Fabric Dislikes No Trending Dislikes Loading reviews","title":"7\" Relaxed Shorts","url":"https://www.gap.com/browse/product.do?pid=8898390320042","variant_prices":"34.00"}]}],"request_example":{"body":{"input":{"url":"https://www.gap.com/browse/product.do?pid=8898390320042"},"version":1,"max_items":25},"curl":"curl -X POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_7a5749851874dba594029afb/endpoints/generated_7a5749851874dba594029afb_search/run \\\n  -H \"Authorization: Bearer YOUR_API_KEY\" \\\n  -H \"Idempotency-Key: UNIQUE_REQUEST_ID\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"input\": {\n    \"url\": \"https://www.gap.com/browse/product.do?pid=8898390320042\"\n  },\n  \"version\": 1,\n  \"max_items\": 25\n}'"},"result":{"method":"GET","url":"https://api.cleanedweb.com/v1/catalog/public/apis/generated_7a5749851874dba594029afb/endpoints/generated_7a5749851874dba594029afb_search/result","note":"A run that does not end within wait_seconds answers 202. Read the result with the same API key and the same Idempotency-Key."},"links":{"page":"https://cleanedweb.com/catalog/gap-com-product-details-api/","markdown":"https://cleanedweb.com/catalog/gap-com-product-details-api/index.md","live_contract":"https://app.cleanedweb.com/api/catalog/apis/generated_7a5749851874dba594029afb/endpoints/generated_7a5749851874dba594029afb_search/contract","run_docs":"https://cleanedweb.com/docs/run-catalog-api/"}}],"links":{"page":"https://cleanedweb.com/catalog/gap-com-product-details-api/","markdown":"https://cleanedweb.com/catalog/gap-com-product-details-api/index.md","contract":"https://cleanedweb.com/catalog/gap-com-product-details-api/contract.json","catalog":"https://cleanedweb.com/catalog/","index":"https://cleanedweb.com/catalog/index.json","openapi":"https://cleanedweb.com/catalog/openapi.json"}}
