API integration

Sonar API allows you to retrieve data directly from Sonar database. The API currently provides one end point that returns infographics data for any domain you input. You need to retrieve the API key of your organisation to make calls with the API. The key can be found on the integrations page of your account.

get
Get domain information

https://api-public.purplesonar.com/api/v1/domains/:domain
This endpoint returns infographic data for any domain you input.
Request
Response
Request
Path Parameters
domain
optional
string
Domain name of the company you would like to get data for.
Headers
Authentication
required
string
Authentication token in the form of: 'Bearer api_key'
Response
200: OK
Domain data found
{
"domain": "hellobonsai.com",
"technologies": [
"google cdn",
"firstpromoter",
"google analytics",
"facebook",
"intercom chat",
"mixpanel",
"customer.io",
"google tag manager",
"google apis",
"jquery",
"embed js",
"headway",
"stripe",
"typeform",
"google maps",
"inspectlet",
"segment",
"highcharts",
"google plus",
"ably",
"fontawesome cdn"
],
"alexa_rank": 22117,
"name": "Bonsai",
"social_linkedin_url": "linkedin.com/company/bonsai",
"social_facebook_url": null,
"social_twitter_url": "/bonsaiinc",
"year_founded": 2015,
"employees_range": "11-50",
"country": "United States",
"location": "San Francisco, California, United States",
"industry": "Information Technology And Services"
}
404: Not Found
Could not find a cake matching this query.
{
"message": "This domain hasn't been scanned yet"
}