Currency Exchange Rates - REST/JSON
This API gives you exchange rates for currencies (USD, GBP and SGD) that the bank buys and sells. Each time you ask for a quote the amounts might be slighly different - they're really busy adjusting the rates constantly!
Version 1
Open API Specification
Test the API
Sample Request
Get the Swagger
curl https://backend.yoisho.dob.jp/fx/swagger
{"info": {"version": "1.0", "description": "", "title": "Yoisho Currency Exchange"}, "paths": {"/get_currency": {"get": {"responses": {"default": {"description": "successful operation"}}, "produces": ["application/json"], "description": "", "parameters": [{"required": true, "type": "string", "description": "The desired currency", "name": "currency", "in": "query"}], "operationId": "get_currency"}}}, "schemes": ["http"], "basePath": "/currency", "host": "", "x-axway": {"deprecated": false, "serviceType": "rest", "basePaths": [""], "corsEnabled": true, "tags": {}}, "swagger": "2.0"}
Get exchange rates - USD (also supported: GBP, SGD)
curl https://backend.yoisho.dob.jp/fx/currency?currency=USD
{"sell": "489.185", "timestamp": "2017-09-17 02:58:40.194337", "buy": "389.105"}