APIs

The ultimate guide to integrate DePay PRO APIs.

Extensive APIs to access blockchain data like tokens and decentralized exchange information like historical prices.


Introduction

DePay provides APIs via https://api.depay.pro and the latest API version is /v1.


Authentication

In order to authenticate towards our APIs, you need to issue an API key dedicated to your integration (coming soon).

For testing purposes, DePay provides a public API key which is not recommended for any integration as it's shared with the public and heavily rate-limited. We also rotate the public api key on a recurring basis.

Testing API key

M5dZeHFfIp3J7h9H9fs4i4wmkUo1HjAF3EmMy32c ONLY USE THIS KEY FOR TESTING PURPOSES. DO NOT USE THIS KEY FOR ANY INTEGRATION OR APPLICATION.


Price

v1/price

The token price api endpoint allows you to fetch a token price for a given token address or a token symbol.

The historic price data density is 1 minute.

Required parameters

blockchain and token or symbol

Optional parameters

at

All parameters

blockchain

The blockchain for which to fetch the information for: e.g. ethereum,bsc

token

The token address for which to fetch the information for: e.g. 0xa0bEd124a09ac2Bd941b10349d8d224fe3c955eb

symbol

The token symbol for which to fetch the information for: e.g. DEPAY

We recommend to use blockchain and token to identify tokens unambiguously.

at

Date and time in ISO 8601 format e.g. 2021-05-26T10:00:00,2021-05-26T10:00:00Z+02:00

If not provided, it will fetch the current price.

Response

{
    "usd": 5.917791764768563
}

Examples

curl --request GET 'https://api.depay.pro/v1/price?blockchain=ethereum&token=0xa0bEd124a09ac2Bd941b10349d8d224fe3c955eb&at=2021-02-21T14:00:00' \
     --header 'x-api-key: M5dZeHFfIp3J7h9H9fs4i4wmkUo1HjAF3EmMy32c'

curl --request GET 'https://api.depay.pro/v1/price?symbol=ETH' \
     --header 'x-api-key: M5dZeHFfIp3J7h9H9fs4i4wmkUo1HjAF3EmMy32c'

Support

Need additional help
?

Feel free to reach out in order to get additional help:

Ask the community
Open an issue
Start a conversation