Domain to Internal Pages
Get internal URLs for a domain
post
Get internal URLs for a domain
Body
domainstringOptionalExample:
uniswap.orgpageinteger · int32OptionalExample:
1Responses
200
Successful operation
application/json
403
Forbidden
500
Internal Server Error
post
/v2/domain_to_urlsPOST /api/v2/domain_to_urls HTTP/1.1
Host: https:/.blockfence.io
Content-Type: application/json
Accept: */*
Content-Length: 33
{
"domain": "uniswap.org",
"page": 1
}{
"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
}Request Body Parameters
Parameter Name
Parameter Type
Comments
domain
string
Domain / URL
page
int (optional)
Page number (for pagination purposes)
Usage Example
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
}Last updated
Was this helpful?