Fetch list domains / domain IDs mapped to domain IDs / domains
For fetching list of mapped domains POST method is available:
Parameters:
domainIds
- array of domain IDs max. 300kdomains
- array of domains max. 300k
Please note: only one of the parameters is required. Sending both parameters will result in error.
Fetch list of domains mapped to domainIDs
POST Method
curl -u username:password -X POST \
--data '{"domainIds":["79fe83c7e827c787eb1d62b2ca515404", "51507dd1c421ef6f90534e01eb0108e6", "ee191fbdb2c303d276c175c751672f1c"]}' \
https://platform.oddbytes.com/api/v1/3/DomainMapping
JSON Response
{
"success": true,
"data": [{
"domain_id": "79fe83c7e827c787eb1d62b2ca515404",
"domain": "postfun.com"
}, {
"domain_id": "51507dd1c421ef6f90534e01eb0108e6",
"domain": "shutterfly.com"
}, {
"domain_id": "ee191fbdb2c303d276c175c751672f1c",
"domain": "share.shutterfly.com"
}
],
"total": 3
}
Fetch list of domanIDs mapped to domain
POST Method
curl -u username:password -X POST \
--data '{"domains":["postfun.com","shutterfly.com","share.shutterfly.com"]}' \
https://platform.oddbytes.com/api/v1/3/DomainMapping
JSON Response
{
"success": true,
"data": [{
"domain_id": "79fe83c7e827c787eb1d62b2ca515404",
"domain": "postfun.com"
}, {
"domain_id": "51507dd1c421ef6f90534e01eb0108e6",
"domain": "shutterfly.com"
}, {
"domain_id": "ee191fbdb2c303d276c175c751672f1c",
"domain": "share.shutterfly.com"
}
],
"total": 3
}
Please note: For getting correct Domain IDs please send only the domain part of URL. For example some.domain.com and not some.domain.com/anything_else. Also some.domain.com and domain.com will generate different Domain IDs.