This section answers questions about the integration of SimpleSwap API.
API, or Application Programming Interface, is one of the tools of the SimpleSwap Affiliate Program. Our affiliated partners can integrate this application into their websites (for example, crypto services, payment systems, etc.) to receive rewards in BTC for crypto and fiat exchanges done through the API.
The process of integrating our API into your website is simple, just follow these steps:
curl -X 'GET' \
'https://api.simpleswap.io/get_currency?api_key=abcdef12-3456-7890-abcd-ef1234567890&symbol=btc' \
-H 'accept: application/json'
Please note that API keys for fiat and crypto exchanges differ, and the fee for fiat exchanges (0.4%) cannot be customized.
After you get SimpleSwap API up and running, you can check the statistics related to its performance in your affiliate account.
Once your reward for finished exchanges made by the users of your website surpassed 0.008 BTC, you can go to the Payouts section and click on the Withdraw button.
Through our API, a person who visits your website can swap crypto or fiat currencies on the spot, without having to visit our website.
What is more, you can also make requests to our service through API commands to do the following:
curl -X 'GET' \
'https://api.simpleswap.io/get_all_currencies?api_key=abcdef12-3456-7890-abcd-ef1234567890' \
-H 'accept: application/json'
curl -X 'POST' \
'https://api.simpleswap.io/create_exchange?api_key=abcdef12-3456-7890-abcd-ef1234567890' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"fixed": true,
"currency_from": "btc",
"currency_to": "eth",
"amount": 10,
"address_to": "string",
"extra_id_to": "",
"user_refund_address": "string",
"user_refund_extra_id": "string"
}'
curl -X 'GET' \
'https://api.simpleswap.io/get_exchanges?api_key=abcdef12-3456-7890-abcd-ef1234567890&limit=100&offset=0>e=2023-08-08T09%3A44%3A56.327Z<e=2023-08-15T09%3A44%3A56.328Z' \
-H 'accept: application/json'
You can find more about the requests, necessary parameters, and possible errors in our API documentation. To find detailed information about what each key from the answer means, click the Schema button in the upper left corner.
Let’s look into a hypothetical example.
John is the owner of a popular blog about cryptocurrencies. He wants to provide his readers with a seamless way to swap cryptocurrencies directly on his website. Additionally, he is looking for a passive income stream. To achieve both goals, he decides to integrate the SimpleSwap API into his blog.
You can find more information on the errors you may encounter when working with API in this section of our Helpdesk.
Share on: