Get internal URLs for a domain
Last updated 1 year ago
Was this helpful?
All requests require an API key. Add "x-api-key" to your request header as shown in the example below.
Don't have an API key? Contact us to get one.
This API returns at max 50 results per call. Check the response for page and page_count to query the rest of the results.
page
page_count
domain
string
Domain / URL
int (optional)
Page number (for pagination purposes)
curl https://api.blockfence.io/api/v2/domain_to_urls -X POST -H "Content-Type: application/json" -H "x-api-key: <YOUR API KEY>" -d ' { "domain": "uniswap.org", "page": 1 } '
{ "urls": [ "https://app.uniswap.org/#/swap?chain=polygon", "https://app.uniswap.org/#/swap?chain=optimism", "https://app.uniswap.org/#/swap?chain=goerli", "https://app.uniswap.org/#/swap?chain=arbitrum", "https://app.uniswap.org/#/remove/401700", "https://app.uniswap.org/#/pools/733642", "https://app.uniswap.org/#/pools/324741", "https://app.uniswap.org/#/pools/401700", "https://app.uniswap.org/#/swap?chain=mainnet", "https://app.uniswap.org/#/swap?lng=en-US", "https://app.uniswap.org/#/remove/698336" ], "page": 1, "page_count": 1 }
uniswap.org
1
POST /api/v2/domain_to_urls HTTP/1.1 Host: api.blockfence.io Content-Type: application/json Accept: */* Content-Length: 33 { "domain": "uniswap.org", "page": 1 }
Successful operation
{ "urls": [ "https://app.uniswap.org/#/swap?chain=mainnet", "https://app.uniswap.org/#/pools/401700", "https://app.uniswap.org/#/remove/698336" ], "page": 1, "page_count": 3 }