You can retrieve all active domains belonging to a company by specifying the company slug
.
API Endpoint
URL | Method |
---|---|
https://api.intricately.com/api/v2/domains | POST |
API POST Body
[ COMPANY_SLUG1, COMPANY_SLUG2, COMPANY_SLUG3, ... ]
You can also specify an include_children=true
query-string parameter if you want domains from all children and grandchildren included.
You may submit up to a maximum of 1,000 slugs per API call.
API Parameters
Parameter | Description |
---|---|
include_children | (Optional) Default is false. A boolean flag to include domains from the company's children and grand-children. |
Code Examples
cURL
curl -sv -XPOST https://api.intricately.com/api/v2/domains?include_children=true -H "X-API-KEY: <YOUR_API_KEY>"
-d '
[
"nike",
"macy-s",
"netflix"
]
Python
headers = { 'X-API-KEY': <YOUR_API_KEY> }
params = { 'include_children': 'true' }
payload = ['nike', 'macy-s', 'netflix']
requests.post("https://api.intricately.com/api/v2/domains", params=params, data=json.dumps(payload), headers=headers).json()
Ruby
require 'RestClient'
headers = { "X-API-KEY" => <YOUR_API_KEY>, content_type: :json, accept: :json }
payload = ['nike', 'macy-s', 'netflix']
RestClient.post "https://api.intricately.com/api/v2/domains", payload.to_json, headers
API Example Response
[
{
"slug" : "nike",
"domains" : [
"nike.com",
"nike.com.hk",
"niketalk.com",
"nike.com.br",
"nike.net",
"nike.co.kr",
.
.
.
]
}
]
Comments
0 comments
Article is closed for comments.