Skip to content

Instantly share code, notes, and snippets.

@alex-grover
Created January 30, 2025 19:45
Show Gist options
  • Save alex-grover/09c5eccd64a4a4406446c749061470f9 to your computer and use it in GitHub Desktop.
Save alex-grover/09c5eccd64a4a4406446c749061470f9 to your computer and use it in GitHub Desktop.
const response = await fetch(
'https://io.dexscreener.com/dex/pair-details/v3/base/0xc4ecaf115cbce3985748c58dccfc4722fef8247c',
{
headers: {
accept: '*/*',
'accept-language': 'en-US,en;q=0.9',
priority: 'u=1, i',
'sec-ch-ua':
'"Not A(Brand";v="8", "Chromium";v="132", "Google Chrome";v="132"',
'sec-ch-ua-mobile': '?0',
'sec-ch-ua-platform': '"macOS"',
'sec-fetch-dest': 'empty',
'sec-fetch-mode': 'cors',
'sec-fetch-site': 'same-site',
},
referrer: 'https://dexscreener.com/',
referrerPolicy: 'strict-origin-when-cross-origin',
body: null,
method: 'GET',
mode: 'cors',
credentials: 'omit',
},
)
const json = await response.json()
console.log(json.cg.description)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment