DexScreener Token API - Live DEX Price, Liquidity & Volume avatar

DexScreener Token API - Live DEX Price, Liquidity & Volume

Pricing

$2.00 / 1,000 tokens

Go to Apify Store
DexScreener Token API - Live DEX Price, Liquidity & Volume

DexScreener Token API - Live DEX Price, Liquidity & Volume

A token symbol is not an identity: PEPE lives on a dozen chains, and one address can be a different coin on another chain. This actor prices a token by contract address, DexScreener link or exact symbol, on the chain you name, and refuses to guess when one address trades on several chains.

Pricing

$2.00 / 1,000 tokens

Rating

0.0

(0)

Developer

Stas K

Stas K

Maintained by Community

Actor stats

1

Bookmarked

2

Total users

1

Monthly active users

6 days ago

Last modified

Features

Limited permissions

Share

DexScreener Token API - live DEX price, liquidity and volume

A token symbol is not an identity, and the first search hit is usually a different coin. This actor reads the live DexScreener data of a token by contract address, DexScreener link or exact symbol, across every DEX the source indexes, and puts the whole picture in one row.

What you get

One paid row per token:

  • price - priceUsd and priceNative of the deepest pair the source knows;
  • market - liquidityUsd, fdv, marketCap, volume24h, txns24Buys, txns24Sells;
  • movement - priceChange5m, priceChange1h, priceChange6h, priceChange24h;
  • identity - tokenAddress, tokenSymbol, tokenName, chain, chainsInSource (every chain the answer carried this contract on), pairCreatedAt, socials, websites;
  • every pair - pairs lists the deepest pairs first (chain, DEX, pair address, link, price, liquidity, volume), and pairsInSource says how many pairs the answer the run read carried. A contract is read from the token endpoint, a symbol from the search answer, and the search answer can carry fewer pairs than the same token read by address (PEPE: 3 pairs by symbol against 30 by contract). pairsInSource describes that answer, not the whole market: pass the contract address when you need the full pair list.

How a token is resolved

InputWhat happens
ethereum:0xdAC17F958D2ee523a2206206994597C13D831ec7one chain, read on that chain only
0x6982508145454ce325ddbe47a25d4ec3d2311933read as an EVM contract; if the source carries it on several chains the line comes back free as AMBIGUOUS_CHAIN
So11111111111111111111111111111111111111112read as a base58 contract (Solana style)
solana:So11111111111111111111111111111111111111112same, restricted to one chain
https://dexscreener.com/ethereum/0x1195...the contract and the chain are taken from the link, host checked; a pair page and a token page both work
PEPEexact symbol or exact name only

One address is not one token

PulseChain copied the Ethereum state, so USDT, PEPE and WETH trade under the same hex address on ethereum and on that fork, at prices that differ by orders of magnitude: USDT is about 1.00 on ethereum and about 0.00047 as a PulseChain fork. The source's cross-chain answer is cut at 30 pairs and can drop a whole chain (for USDT it carried 30 pairs on pulsechain and not one on ethereum), so "the deepest pair of the answer" is not a price, it is a coin flip.

This actor treats the chain as part of the identity:

  • a link or a chain:address prefix is binding: the contract is read on that chain and nowhere else, and the row's chain is the chain you asked for;
  • a bare address the source carries on several chains comes back as a free AMBIGUOUS_CHAIN row that lists those chains and shows how to ask for one;
  • a chain that does not carry the contract is a free NOT_ON_CHAIN row naming the chains that do. It is never NOT_FOUND: the token exists, and "no such token" would be a false verdict;
  • chainsInSource says on which chains this run really found the contract.

Inside one chain, the row is the deepest pair by liquidity of that chain. When the token sits on the quote side of that pair (USDT is the quote of almost every Ethereum pool), priceUsd of the pair is the other coin's price, so the token's own price is priceUsd / priceNative; in that case priceNative is left null, because the pair's value belongs to the base coin.

A symbol search sells only an exact match: PEPE is sold, while PEPEE, PEPE3 and pepe 3.0 come back as a free NOT_FOUND that lists up to five symbols the source did carry. Case, spaces and separators are ignored, so a contract whose symbol is literally pep is an exact match for pep and is sold, and pepe 2.0 is the same token as PEPE2.0: a name that merely looks like the one you meant can still be a real, different token (nine contracts carry the name

smol pepe
). When several contracts share the exact name, the row is the one with the deepest liquidity and carries exactMatches and a note; pass the contract address to pick another.

Price and free rows

  • A delivered token is one paid event named token.
  • A token the source does not carry, a token without a USD price, an invalid line and a duplicate come back as free status rows with a reason and no price data. You are never charged for a lookup that found nothing.
  • An address the source carries on several chains is a free AMBIGUOUS_CHAIN row, and a chain that does not carry the contract is a free NOT_ON_CHAIN row: neither is sold, and neither is called NOT_FOUND.
  • A duplicate (the same contract on the same chain sent twice, or a link and its address) is delivered once; the second line is a free DUPLICATE row. The same address on two chains is two products and two events.

Limits

  • maxTokens - lines read per run, default and maximum 200; a line past the cap is a free NOT_CHECKED_CAP row that names the cap.
  • maxPairsPerToken - pairs kept in each row, default 25, maximum 100.
  • chains - optional filter, and binding: a contract with no pair on the requested chains is a free NOT_ON_CHAIN row that names the chains which do carry it. One chain in the filter is the same as a chain:address prefix.
  • A symbol costs one search. A bare address costs two: the cross-chain read and, for an EVM address the cross-chain answer does not place on ethereum, one more read of ethereum (that is how USDT was caught). A link costs two - the pair and its chain - and four when the chain it names does not carry the contract: the pair, the chain, the cross-chain read and the ethereum probe. A bare address with a chain filter that the named chain does not carry costs three. The source allows about 200 contract lookups in a row from one address (measured), so 200 symbols stay inside its public rate limit, while 200 links or 200 addresses are up to 400 reads and the run stops them on timeoutSecs, not on the source. If the source answers HTTP 429 the line is a free NOT_CHECKED_ERROR row and the run keeps its money: nothing is charged for a rate limit.

What this actor does not do

  • It does not read every DEX in existence: it reads what DexScreener indexes. A token that trades only on an exchange the source does not track comes back as NOT_FOUND, not as a price of 0.
  • It does not invent numbers. A field the source does not publish (for example volume24h on a thin pair, or marketCap when the source omits it) is null, never 0.
  • It does not verify that a token is safe, audited or a good investment. Liquidity and volume are facts from the source; they are not a promise about the token.

Summary

The run summary carries counters (delivered, chargedEvents, tokensNotFound, tokensWithoutPrice, tokensInvalid, tokensDuplicate, counterMismatch, stopReason and so on). RUN_SUMMARY lives in the default store of the run, and a copy under RUN_SUMMARY-<runId> is kept in the named store dexscreener-summary so two runs do not overwrite each other.

Source

DexScreener public API, no key, no account, no browser. Data is quoted as the source returns it.