{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://apizie.tech"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/finance:frankfurter/latest":{"get":{"operationId":"finance_frankfurter_latest","summary":"Latest rates","description":"Latest working-day rates.","tags":["finance"],"parameters":[{"name":"base","in":"query","required":false,"schema":{"type":"string","default":"EUR"}},{"name":"symbols","in":"query","required":false,"schema":{"type":"string"},"example":"USD,GBP,JPY"},{"name":"amount","in":"query","required":false,"schema":{"type":"number","default":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":3600,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/finance:frankfurter/historical":{"get":{"operationId":"finance_frankfurter_historical","summary":"Rates on a date","description":"Rates for one past date.","tags":["finance"],"parameters":[{"name":"date","in":"query","required":true,"schema":{"type":"string"},"example":"2020-03-16"},{"name":"base","in":"query","required":false,"schema":{"type":"string","default":"EUR"}},{"name":"symbols","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":86400,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/finance:frankfurter/timeseries":{"get":{"operationId":"finance_frankfurter_timeseries","summary":"Time series","description":"Daily rates between two dates.","tags":["finance"],"parameters":[{"name":"start","in":"query","required":true,"schema":{"type":"string"},"example":"2024-01-01"},{"name":"end","in":"query","required":false,"schema":{"type":"string"},"example":"2024-01-31"},{"name":"base","in":"query","required":false,"schema":{"type":"string","default":"EUR"}},{"name":"symbols","in":"query","required":false,"schema":{"type":"string"},"example":"USD"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":86400,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/finance:frankfurter/currencies":{"get":{"operationId":"finance_frankfurter_currencies","summary":"Currencies","description":"Supported currency codes and names.","tags":["finance"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":604800,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}