{"openapi":"3.1.0","info":{"title":"apifetch · the fetch API","version":"0.1.0"},"servers":[{"url":"https://apifetch.ai"}],"components":{"securitySchemes":{"apiKey":{"type":"apiKey","in":"header","name":"X-API-Key"}}},"security":[{"apiKey":[]}],"paths":{"/v1/gtin/{barcode}":{"get":{"summary":"The signed record for a barcode, from gtinfetch.ai.","parameters":[{"name":"barcode","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{8,14}$"}}],"responses":{"200":{"description":"fetch_gtin's answer"},"401":{"description":"no key"}},"operationId":"getGtin"}},"/v1/gtin/{barcode}/market/{country}":{"get":{"summary":"The record, asked for one market. country is the node host code: uk, fr, de…","parameters":[{"name":"barcode","in":"path","required":true,"schema":{"type":"string"}},{"name":"country","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"fetch_gtin's answer for the market"},"404":{"description":"unknown country"}},"operationId":"getGtinMarket"}},"/v1/match":{"post":{"summary":"Words in, barcode out, with how sure, from matchfetch.ai. Body {text}; country optional, uk by default.","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["text"],"properties":{"text":{"type":"string"},"country":{"type":"string"}}}}}},"responses":{"200":{"description":"match_product's answer"}},"operationId":"matchProduct"}},"/v1/receipt":{"post":{"summary":"A signed receipt on rco.wefetch.ai for a barcode in a market. Body {barcode, market}; returns the receipt id.","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["barcode","market"],"properties":{"barcode":{"type":"string"},"market":{"type":"string"}}}}}},"responses":{"201":{"description":"receipt_id and the match"},"422":{"description":"no single match: no receipt"}},"operationId":"issueReceipt"}},"/v1/catalog":{"get":{"summary":"Every fetch door: name, kind (mcp, rest, receipt, settle) and URL.","responses":{"200":{"description":"doors"}},"operationId":"getCatalog"}}}}