How to use Lookup APIs
This is the first step in building an app using Transak Whitelabel APIs. Before a user logs in, creates an account, or touches a KYC form, your app needs real data — which countries are supported, which crypto assets are available, and which currencies are accepted. The Lookup APIs are four public endpoints that give you exactly that data.
What We’ll Build
We are building a simple wallet app that allows a user to select their country, fiat currency, crypto token, and payment method. The screen will show a live quote with fee breakdown and the amount of crypto the user will receive.
By the end of this tutorial, you’ll have the data to render a complete quote screen fully wired to live Transak APIs.
API Flow
Look Up APIs
Returns all supported countries with their default fiat currency. Powers the country selector.
Returns fiat currencies with payment options and min/max limits. Powers the fiat + payment method picker.
Returns supported tokens and networks. Powers the crypto + network selector.
Returns a live price quote with fee breakdown and a quoteId to pass downstream. Requires API key.
Fetch Supported Countries List
Call Get Countries API on app load and keep the result in memory. You use it in two ways: to power a country-of-residence picker, and to look up a country’s default fiat currency so you can pre-fill the fiat selector for your user.
This API helps you identify which countries are supported for KYC verification, quote fetching, and other transactions.
How to Call APIs and use the response
Sample Code For Country Selector Component
Get All Crypto Currencies List
Get Currencies API powers the crypto picker screen. Every supported token is returned with its full details: symbol, name, image, and which networks it’s available on. One token can exist on multiple networks — each combination is its own selectable item.
The same token (e.g. USDC) appears multiple times — once per network. Treat each symbol + network.name pair as a distinct selectable item. When the user picks
How to use the response
Filter by transaction direction
Keep only entries where isBuyAllowed: true for buy flows, or isSellAllowed: true for sell flows.
Group by coinId for the token list
The same token appears once per supported network. Group by coinId so users see each token once, then pick a network in a second step.
Sample Code
Fetch Supported Fiat Currencies
In Get Fiat Currencies API populates your fiat picker. Each currency object includes the currency code and symbol, and — critically — which payment methods are available for it. A user buying with USD has different options than a user buying with EUR.
In this API, each payment method has a minAmount and maxAmount. Use these to validate the user’s input before calling the quote endpoint.
It also surfaces which payment methods are supported for each currency.
How to use the response
Sample Code
Fetch Final Quote
In Get Quote API is the only Lookup API that requires your partner API key. It returns a Quote that includes the full fee breakdown, and most importantly a quoteId. That quoteId is required for every subsequent API call in this series.
This API call lets you fetch a temporary price quote for a cryptocurrency transaction based on the selected fiat currency, cryptocurrency, payment method, and transaction amount. Since cryptocurrency prices are volatile, the returned quote is refreshed every minute to reflect the latest market price.
How to use the response
Build the request params
Collect the user’s inputs — fiat amount, fiat currency, crypto currency, network, and payment method — then call the endpoint.
Display the fee breakdown
The response includes cryptoAmount, totalFee, feeBreakdown, and conversionPrice. Show these in a summary card before the user confirms.
Sample Code
Final Output
All four components wired together into a single QuoteScreen page. This is what you’ll have by the end of this tutorial.