{"name":"One Sandwich API","contract_version":"1.10.0","base":"https://api.onesandwich.com","docs":"https://onesandwich.com/api-docs/","data":"https://onesandwich.com/data/","openapi":"https://api.onesandwich.com/openapi.json","datasets":"https://api.onesandwich.com/v1/datasets","changelog":"https://api.onesandwich.com/v1/changelog","files":"https://api.onesandwich.com/data/v1/manifest.json","access":{"open":"The endpoints under `endpoints.open` need no key.","key":"The endpoints under `endpoints.key` need a key, sent as the x-api-key header or as Authorization: Bearer.","request":"https://onesandwich.com/api-access/","contact":"andrew@lekashman.com"},"terms":{"own_data":"Licensed for a fee, by agreement with One Sandwich. Every use needs credit. A key comes with the licence.","big_mac_index":"CC BY 4.0. Big Mac Index: The Economist (CC BY 4.0); daily currency update by One Sandwich (onesandwich.com)","openstreetmap":"ODbL 1.0. © OpenStreetMap contributors","details":"https://onesandwich.com/data/#licence"},"errors":"Every error is JSON with an `error` sentence. 401: no key. 404: no such address or record. 429: slow down; the RateLimit headers say when. 503: still loading; Retry-After says how long.","endpoints":{"open":[{"method":"GET","path":"/v1/datasets","what":"Every dataset with its row count, date and terms"},{"method":"GET","path":"/v1/changelog","what":"Dated changes and the compatibility promise"},{"method":"GET","path":"/openapi.json","what":"OpenAPI 3.1 for the sandwich endpoints"},{"method":"GET","path":"/v1/sample/sandwiches","what":"25 sandwiches with every field of the full list"},{"method":"GET","path":"/v1/big-mac-index","what":"The Big Mac Index today (?country=fr or ?countries=fr,jp)"},{"method":"GET","path":"/v1/big-mac-index/history","what":"Every country's series since 1986"},{"method":"GET","path":"/v1/big-mac-index/methodology","what":"How the daily figure is worked out, and its sources"},{"method":"GET","path":"/v1/builds","what":"Community sandwiches (?sort=new|top|liked|popular&limit=&offset=)"},{"method":"GET","path":"/data/v1/manifest.json","what":"Files at fixed addresses, with size, date and SHA-256"},{"method":"POST","path":"/v1/access-requests","what":"Ask for a key"}],"key":[{"method":"GET","path":"/v1/sandwiches","what":"Search and page through every sandwich (?kind=catalog|shop|historic|all)"},{"method":"GET","path":"/v1/sandwiches/facets","what":"Counts per country, family, bread, protein and how it is served"},{"method":"GET","path":"/v1/sandwiches/status","what":"How many sandwiches, and when the list was last checked against the site"},{"method":"GET","path":"/v1/sandwiches/{slug}","what":"One sandwich"},{"method":"GET","path":"/v1/venues","what":"Sandwich shops (?near=lat,lon&radius_km=)"},{"method":"GET","path":"/v1/venues/{slug}","what":"One shop and its menu"},{"method":"GET","path":"/v1/brands","what":"Chains, each with its menu by country"},{"method":"GET","path":"/v1/brands/{slug}/locations","what":"A chain's branches, from OpenStreetMap"},{"method":"GET","path":"/v1/ingredients","what":"The Sandwich Builder's pantry"},{"method":"POST","path":"/v1/score","what":"The Sandwich Score for any build"}]}}