{"openapi":"3.1.0","info":{"title":"Global Coffee & Soft Commodities Feed","description":"Machine-readable coffee and soft commodities market data for autonomous agents, billed per call through Skyfire (kyapay-token) or Coinbase x402 v2.","version":"2.2.0"},"paths":{"/":{"get":{"tags":["meta"],"summary":"Service descriptor","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Root  Get"}}}}},"security":[]}},"/health":{"get":{"tags":["meta"],"summary":"Liveness and cache freshness","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Health Health Get"}}}}},"security":[]}},"/v1/pricing":{"get":{"tags":["meta"],"summary":"Per-call pricing for both payment gateways","operationId":"pricing_v1_pricing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Pricing V1 Pricing Get"}}}}},"security":[]}},"/v1/coffee/global":{"get":{"tags":["coffee"],"summary":"Global coffee and soft commodities snapshot","description":"Global coffee and soft commodities feed: Arabica, Robusta, cocoa, sugar, cotton and orange juice futures with the Arabica-Robusta spread and rule-based market signals.","operationId":"coffee_global_v1_coffee_global_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GlobalCoffeeReport"}}}},"402":{"description":"Payment required: pay with a Skyfire kyapay-token or an x402 v2 PAYMENT-SIGNATURE.","content":{"application/json":{"schema":{"type":"object"},"example":{"x402Version":2,"resource":{"url":"https://coffee.rdxdata.xyz/v1/coffee/global","description":"Global coffee and soft commodities feed: Arabica, Robusta, cocoa, sugar, cotton and orange juice futures with the Arabica-Robusta spread and rule-based market signals.","mimeType":"application/json"},"accepts":[{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bda02913","amount":"10000","payTo":"0xA0f3bab8f298766610005F2BCcDef6964b40b5e6","maxTimeoutSeconds":30,"extra":{"name":"USD Coin","version":"2"}}]}}}}},"x-x402":{"x402Version":2,"resource":{"url":"https://coffee.rdxdata.xyz/v1/coffee/global","description":"Global coffee and soft commodities feed: Arabica, Robusta, cocoa, sugar, cotton and orange juice futures with the Arabica-Robusta spread and rule-based market signals.","mimeType":"application/json"},"accepts":[{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bda02913","amount":"10000","payTo":"0xA0f3bab8f298766610005F2BCcDef6964b40b5e6","maxTimeoutSeconds":30,"extra":{"name":"USD Coin","version":"2"}}]}}},"/v1/coffee/vietnam":{"get":{"tags":["coffee"],"summary":"Vietnam Robusta farm-gate estimate and supply-chain context","description":"Vietnam Robusta feed: futures-parity farm-gate estimate in VND per kg, the USD/VND rate and seasonal supply-chain tight spots.","operationId":"coffee_vietnam_v1_coffee_vietnam_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VietnamCoffeeReport"}}}},"402":{"description":"Payment required: pay with a Skyfire kyapay-token or an x402 v2 PAYMENT-SIGNATURE.","content":{"application/json":{"schema":{"type":"object"},"example":{"x402Version":2,"resource":{"url":"https://coffee.rdxdata.xyz/v1/coffee/vietnam","description":"Vietnam Robusta feed: futures-parity farm-gate estimate in VND per kg, the USD/VND rate and seasonal supply-chain tight spots.","mimeType":"application/json"},"accepts":[{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bda02913","amount":"10000","payTo":"0xA0f3bab8f298766610005F2BCcDef6964b40b5e6","maxTimeoutSeconds":30,"extra":{"name":"USD Coin","version":"2"}}]}}}}},"x-x402":{"x402Version":2,"resource":{"url":"https://coffee.rdxdata.xyz/v1/coffee/vietnam","description":"Vietnam Robusta feed: futures-parity farm-gate estimate in VND per kg, the USD/VND rate and seasonal supply-chain tight spots.","mimeType":"application/json"},"accepts":[{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bda02913","amount":"10000","payTo":"0xA0f3bab8f298766610005F2BCcDef6964b40b5e6","maxTimeoutSeconds":30,"extra":{"name":"USD Coin","version":"2"}}]}}}},"components":{"schemas":{"FxRate":{"properties":{"pair":{"type":"string","const":"USD/VND","title":"Pair"},"rate":{"type":"number","title":"Rate"},"as_of":{"type":"string","title":"As Of"},"source":{"type":"string","title":"Source"},"attribution_url":{"type":"string","title":"Attribution Url"}},"additionalProperties":false,"type":"object","required":["pair","rate","as_of","source","attribution_url"],"title":"FxRate"},"GlobalCoffeeReport":{"properties":{"status":{"type":"string","enum":["ok","partial"],"title":"Status"},"generated_at":{"type":"string","title":"Generated At"},"data_age_seconds":{"type":"integer","title":"Data Age Seconds"},"arabica":{"$ref":"#/components/schemas/Quote"},"robusta":{"$ref":"#/components/schemas/Quote"},"arabica_robusta_spread_usd_tonne":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Arabica Robusta Spread Usd Tonne"},"softs":{"items":{"$ref":"#/components/schemas/Quote"},"type":"array","title":"Softs"},"fx_usd_vnd":{"anyOf":[{"$ref":"#/components/schemas/FxRate"},{"type":"null"}]},"signals":{"items":{"$ref":"#/components/schemas/Signal"},"type":"array","title":"Signals"},"provenance":{"$ref":"#/components/schemas/Provenance"}},"additionalProperties":false,"type":"object","required":["status","generated_at","data_age_seconds","arabica","robusta","softs","signals","provenance"],"title":"GlobalCoffeeReport"},"Provenance":{"properties":{"quote_source":{"type":"string","title":"Quote Source"},"delayed":{"type":"boolean","title":"Delayed"},"exchange_licensed":{"type":"boolean","title":"Exchange Licensed"},"notice":{"type":"string","title":"Notice"}},"additionalProperties":false,"type":"object","required":["quote_source","delayed","exchange_licensed","notice"],"title":"Provenance"},"Quote":{"properties":{"key":{"type":"string","title":"Key"},"symbol":{"type":"string","title":"Symbol"},"name":{"type":"string","title":"Name"},"unit":{"type":"string","enum":["USc/lb","USD/tonne"],"title":"Unit"},"currency":{"type":"string","title":"Currency"},"status":{"type":"string","enum":["ok","unavailable"],"title":"Status"},"price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price"},"previous_close":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Previous Close"},"change":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Change"},"change_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Change Pct"},"market_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Market Time"},"source":{"type":"string","title":"Source"}},"additionalProperties":false,"type":"object","required":["key","symbol","name","unit","currency","status","source"],"title":"Quote"},"Signal":{"properties":{"code":{"type":"string","title":"Code"},"severity":{"type":"string","enum":["info","watch","alert"],"title":"Severity"},"message":{"type":"string","title":"Message"}},"additionalProperties":false,"type":"object","required":["code","severity","message"],"title":"Signal"},"SupplyChain":{"properties":{"season_phase":{"type":"string","enum":["harvest","peak_export_shipments","flowering_and_early_rains","rainy_season_pre_harvest"],"title":"Season Phase"},"tight_spots":{"items":{"$ref":"#/components/schemas/TightSpot"},"type":"array","title":"Tight Spots"},"signals":{"items":{"$ref":"#/components/schemas/Signal"},"type":"array","title":"Signals"},"notice":{"type":"string","title":"Notice"}},"additionalProperties":false,"type":"object","required":["season_phase","tight_spots","signals","notice"],"title":"SupplyChain"},"TightSpot":{"properties":{"topic":{"type":"string","title":"Topic"},"region":{"type":"string","title":"Region"},"pattern":{"type":"string","title":"Pattern"},"active_now":{"type":"boolean","title":"Active Now"},"basis":{"type":"string","const":"seasonal_structural","title":"Basis"}},"additionalProperties":false,"type":"object","required":["topic","region","pattern","active_now","basis"],"title":"TightSpot"},"VietnamCoffeeReport":{"properties":{"status":{"type":"string","const":"ok","title":"Status"},"generated_at":{"type":"string","title":"Generated At"},"data_age_seconds":{"type":"integer","title":"Data Age Seconds"},"farmgate_vnd_kg":{"type":"number","title":"Farmgate Vnd Kg"},"farmgate_method":{"type":"string","const":"robusta_futures_parity_estimate","title":"Farmgate Method"},"farmgate_is_survey":{"type":"boolean","title":"Farmgate Is Survey"},"parity_factor":{"type":"number","title":"Parity Factor"},"exchange_rate_usd_vnd":{"type":"number","title":"Exchange Rate Usd Vnd"},"robusta_futures_usd_tonne":{"type":"number","title":"Robusta Futures Usd Tonne"},"robusta_futures_vnd_kg":{"type":"number","title":"Robusta Futures Vnd Kg"},"robusta_change_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Robusta Change Pct"},"supply_chain":{"$ref":"#/components/schemas/SupplyChain"},"sources":{"items":{"type":"string"},"type":"array","title":"Sources"},"notice":{"type":"string","title":"Notice"}},"additionalProperties":false,"type":"object","required":["status","generated_at","data_age_seconds","farmgate_vnd_kg","farmgate_method","farmgate_is_survey","parity_factor","exchange_rate_usd_vnd","robusta_futures_usd_tonne","robusta_futures_vnd_kg","supply_chain","sources","notice"],"title":"VietnamCoffeeReport"}},"securitySchemes":{"SkyfireToken":{"type":"apiKey","in":"header","name":"kyapay-token","description":"Skyfire KYAPay token (pay or kya+pay). Coinbase x402 v2 payments are accepted as an alternative.","x-skyfire-token-type":["pay","kya-pay"]}}},"servers":[{"url":"https://coffee.rdxdata.xyz","description":"Production Coffee Subdomain Server"}],"security":[{"SkyfireToken":[]}],"x-skyfire-token-type":["pay","kya-pay"],"x-x402":{"x402Version":2,"price":{"amount":"0.01","currency":"USDC","atomic_units":"10000","decimals":6},"accepts":[{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bda02913","amount":"10000","payTo":"0xA0f3bab8f298766610005F2BCcDef6964b40b5e6","maxTimeoutSeconds":30,"extra":{"name":"USD Coin","version":"2"}}],"resources":["https://coffee.rdxdata.xyz/v1/coffee/global","https://coffee.rdxdata.xyz/v1/coffee/vietnam"],"request_headers":{"payment":"PAYMENT-SIGNATURE"},"response_headers":{"payment_required":"PAYMENT-REQUIRED","settlement":"PAYMENT-RESPONSE"}}}