All requests must be provided with unique API keys, which you can generate in dashboard. You have to pass API keys with each request as public
and private
parameters. For example:
https://www.coinimp.net/api/v1/hashes?
public=7e26bb94aa2ce44e6e16aca6ae6d28c7f0157b5ccd7a82f86bbbe8d835effd71&
private=5112486af64b2f97bd3742c4153cee32452549491480cfd164b336720b82a84d
All requests must be provided with unique API keys, which you can generate in dashboard.
You have to pass API keys with each request in headers as X-API-ID
(public) and X-API-KEY
(private) parameters. For example:
curl -L https://www.coinimp.net/api/v2/hashes
-H 'X-API-ID:7e26bb94aa2ce44e6e16aca6ae6d28c7f0157b5ccd7a82f86bbbe8d835effd71'
-H 'X-API-KEY:5112486af64b2f97bd3742c4153cee32452549491480cfd164b336720b82a84d'
Response format is JSON. Please always use HTTPS instead of HTTP.
Requests to API are limited to 3 times per minute with bursts not exceeding 10 requests. All requests above this limit won't be processed and API will return 503 HTTP code. To avoid exceeding the limit, it's recommended to implement a caching mechanism in your application.
Method: GET
Get total hashes count of your account or single site
Request:
currency | Choose the currency that you want to check. |
site-key (optional) | Your site key, that you can find in dashboard by clicking on Generate button |
Response:
message | data || fail message |
status | success || failure |
Method: GET
Get total reward count of your account or single site
Request:
currency | Choose the currency that you want to check. |
site-key (optional) | Your site key, that you can find in dashboard by clicking on Generate button |
Response:
message | data || fail message |
status | success || failure |
Method: GET
Get overall info about the user's balance.
Request:
site-key | Your site key, that you can find in dashboard by clicking on Generate button |
user | Username attached to your site |
Response:
message | { "name": string, "pending": float, "withdrawn": int, "hashes": int, "hashRate": string } || fail message |
status | success || failure |
Method: GET
Get the list of active users by site.
Request:
site-key | Your site key, that you can find in dashboard by clicking on Generate button |
Response:
message | [ "awesome-user", "awesome-user-two" ] || fail message |
status | success || failure |
Method: POST
Withdraw the user's funds.
Request:
site-key | Your site key, that you can find in dashboard by clicking on Generate button |
user | Username attached to your site |
amount | Amount to be withdrawn |
Response:
message | { "name": string, "pending": float, "withdrawn": int, "hashes": int, "hashRate": string } || fail message |
status | success || failure |
Method: GET
Get stats of your account.
Request:
currency | Choose the currency that you want to check. |
Response:
message | { "hashrate": float, "hashes": int, "reward": float, "reward-pending": float } || fail message |
status | success || failure |
Method: GET
Get the list of your sites.
Request:
currency | Choose the currency that you want to check. |
Response:
message | { { "name": string, "site-key": string }, ... } || fail message |
status | success || failure |
Method: GET
Get the list of your payments.
Request:
currency | Choose the currency that you want to check. |
Response:
message | { { "amount": float, "fee": float, "status": PAID|ERROR|PENDING, "wallet_address": string, "tx_id": string, "timestamp": string }, ... } || fail message |
status | success || failure |
Method: GET
Get stats of a site.
Request:
site-key | Site key, that you can find in dashboard by clicking on Generate button |
Response:
message | { "name": string, "hashrate": float, "hashes": int, "reward": float } || fail message |
status | success || failure |
Method: DELETE
Delete a site from the list of your sites.
Request:
site-key | Site key, that you can find in dashboard by clicking on Generate button |
Response:
message | "Site `name` was deleted" || fail message |
status | success || failure |
Method: GET
Get payout per 1 million hashes.
Request:
currency | Choose the currency that you want to check. Example: MINTME |
Response:
message | { "result" : float } || fail message |
status | success || failure |