Reverse engineering dexscreener avro encryption to fit my web scraping needs
Before running the api, make sure you have node >= v18 installed
npm install
node main.js
docker build -t dexscreener:v1 .
docker run -d --name dexscreener-api -p 3000:3000 dexscreener:v1
There are 2 important endpoints:
-
GET
/pairs
- use query parameterq
to pass token address This endpoint is called on dexscreener.com when you try to search token pairs, it returns the decrypted results as json -
GET
/logs
- supported query parameters:q
for token address,m
for wallet hash andc
which should be set to1
. For pagination, if you want to get results above page 1, set query parameterbbn
blockNumber
to value which is returned by previous page (blockNumber
field) Get transaction logs of a wallet in a pool (including summary data)