{"name":"peets.com Product Search API","description":"Product Search on peets.com, as its pages list them.","api_id":"generated_e66155b4c5644486dc9e7a1d","slug":"peets-com-product-search-api","source":{"name":"Peets","domain":"peets.com","url":"https://www.peets.com/"},"category":"commerce","countries":[],"languages":[],"record_types":[],"tags":[],"limitations":[],"updated":"2026-12-03","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-02T23:35:34.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_e66155b4c5644486dc9e7a1d_search","name":"Search peets.com Products","description":"Return records within the accepted scope.","definition_version":"9ede0cd8fe508c2812854aba05dfd599a40e1c4e756f36a086b13bd42a156c1f","method":"POST","path":"/v1/catalog/public/apis/generated_e66155b4c5644486dc9e7a1d/endpoints/generated_e66155b4c5644486dc9e7a1d_search/run","url":"https://api.cleanedweb.com/v1/catalog/public/apis/generated_e66155b4c5644486dc9e7a1d/endpoints/generated_e66155b4c5644486dc9e7a1d_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":{"enrich_records":{"type":"boolean","default":true,"description":"true: read each returned record's product/detail page and merge its fields into the record. false: return list/search-level fields only, with no detail page reads. Every returned record's detail page is read within the run's time budget; records the time budget leaves unread are returned without detail fields, and summary.record_enrichment reports how many records were enriched and why any were not (run_time_budget). Detail fields are optional."},"tags":{"type":"string","minLength":1,"examples":["Type: Beverage","Orleans","Type: Food","fall 25","fall_26","archive","Fall 24","HDY26Menu","Spring_26_menu","HDY25Menu","Holiday22","archive 9.4.25","disco 1/7/26","HDY24menu","Show Upsell","Hidden","archive_3.18.26","menu_winter_2025"],"description":"Optional. Only the records whose tags is, or lists, exactly this value (case-sensitive, whole value or one list element). The whole collection is read and filtered, so a run takes as long as an unfiltered one; max_items counts the records delivered, and the run answer's field_filter reports the records walked and delivered. A value no record holds delivers no records. Omit for every record."},"category":{"type":"string","minLength":1,"maxLength":200,"examples":["all-menu-items","peets-coffee-products"],"default":"all-menu-items","description":"Optional. The \"category\" value of the source's own request address (one segment of its path), sent exactly as typed. Omit it for the listing's own records."}},"required":[],"additionalProperties":false},"output_schema":{"additionalProperties":true,"type":"object","x-cleanedweb-reviewed-fields":["url"],"properties":{"description":{"type":"object","properties":{"body_html":{"type":"string"},"text":{"type":"string"}},"additionalProperties":false},"price":{"type":"object","properties":{"compare_at":{"type":["array","boolean","number","object","string"]},"amount":{"type":"string"},"variant_prices":{"items":{"type":["string"]},"type":"array"},"detail":{"type":"string"},"currency":{"type":"string"},"detail_compare_at":{"type":"string"},"offers_currency":{"items":{"type":["string"]},"type":["array","string"]},"typed":{"type":"number","description":"Numeric reading of price; source preserved."}},"additionalProperties":false},"dates":{"type":"object","properties":{"created_at":{"type":"string"},"published_at":{"type":"string"},"updated_at":{"type":"string"}},"additionalProperties":false},"handle":{"type":"string"},"id":{"type":["number"]},"images":{"type":"object","properties":{"gallery":{"type":"array","x-cleanedweb-source-value-opaque":true},"primary":{"type":"string"},"media":{"items":{"additionalProperties":false,"properties":{"type":{"type":["null","string"]},"url":{"type":["null","string"]}},"type":["null","object"]},"type":"array"}},"additionalProperties":false},"options":{"type":"object","properties":{"values":{"items":{},"type":"array","x-cleanedweb-unresolved-item-type":true},"items":{"type":"array","x-cleanedweb-source-value-opaque":true}},"additionalProperties":false},"category":{"type":"object","properties":{"product_type":{"type":"string"},"name":{"type":"string"}},"additionalProperties":false},"tags":{"type":"array","x-cleanedweb-source-value-opaque":true},"title":{"type":"string"},"url":{"type":"string"},"variants":{"type":"object","properties":{"items":{"type":"array","x-cleanedweb-source-value-opaque":true},"variant":{"type":"string"},"id":{"type":"string"},"sku":{"items":{"type":["string"]},"type":["array","string"]}},"additionalProperties":false},"availability":{"type":"object","properties":{"value":{"type":"string"},"offers":{"items":{"type":["string"]},"type":["array","string"]}},"additionalProperties":false},"detail_id":{"type":"string"},"product_id":{"type":"string"},"_page":{"type":"object","properties":{"find_a_coffeebar_url":{"type":"string"},"get_the_app_url":{"type":"string"}},"additionalProperties":false},"links":{"type":"object","properties":{"detail":{"items":{"type":["string"]},"type":["array","string"]},"offers":{"items":{"type":["string"]},"type":["array","string"]}},"additionalProperties":false}},"required":["id"]},"output_schema_note":"Some fields the source returns are not published here (identifiers, personal details and page-building noise). A record can carry fields this schema does not list, so additionalProperties is true. Do not reject a record for an extra field. The live contract, linked as live_contract, lists every field the saved definition declares.","examples":[{"kind":"saved_validation_records","saved_at":"2026-12-02T23:35:34.994Z","live_verified":false,"request":{"input":{}},"records_shown":1,"records_saved":1,"records":[{"description":{"body_html":"<p><meta charset=\"utf-8\"><span>Extra crispy lean turkey bacon, egg whites, and Swiss cheese sandwiched inside a toasty English muffin.</span></p>"},"dates":{"created_at":"2022-01-04T16:43:43-08:00","published_at":"2022-01-05T00:00:01-08:00","updated_at":"2026-12-02T13:24:19-08:00"},"price":{"amount":"0.00","variant_prices":["0.00"],"typed":0},"category":{"product_type":"Menu"},"handle":"turkey-bacon-egg-white-sandwich","id":6752815710252,"tags":["Type: Food"],"title":"Turkey Bacon & Egg White Sandwich","url":"https://www.peets.com/products/turkey-bacon-egg-white-sandwich"}]}],"request_example":{"body":{"input":{},"version":1,"max_items":25},"curl":"curl -X POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_e66155b4c5644486dc9e7a1d/endpoints/generated_e66155b4c5644486dc9e7a1d_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  \"version\": 1,\n  \"max_items\": 25\n}'"},"result":{"method":"GET","url":"https://api.cleanedweb.com/v1/catalog/public/apis/generated_e66155b4c5644486dc9e7a1d/endpoints/generated_e66155b4c5644486dc9e7a1d_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/peets-com-product-search-api/","markdown":"https://cleanedweb.com/catalog/peets-com-product-search-api/index.md","live_contract":"https://app.cleanedweb.com/api/catalog/apis/generated_e66155b4c5644486dc9e7a1d/endpoints/generated_e66155b4c5644486dc9e7a1d_search/contract","run_docs":"https://cleanedweb.com/docs/run-catalog-api/"}}],"links":{"page":"https://cleanedweb.com/catalog/peets-com-product-search-api/","markdown":"https://cleanedweb.com/catalog/peets-com-product-search-api/index.md","contract":"https://cleanedweb.com/catalog/peets-com-product-search-api/contract.json","catalog":"https://cleanedweb.com/catalog/","index":"https://cleanedweb.com/catalog/index.json","openapi":"https://cleanedweb.com/catalog/openapi.json"}}
