Sonar API allows you to retrieve data directly from Sonar database. The API currently provides two end points that return infographics, technographics as well as extra data for:
Domains
Emails
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.
api_key
'{"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"}
{"message": "This domain hasn't been scanned yet"}
​
api_key
'{"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"}
{"message": "This domain hasn't been scanned yet"}
​
We return extra optional fields on demand if the extra_fields
parameter exists in the url.
We only return the extra pricing field for now. For example, if you add the pricing extra_field below:
https://api-public.purplesonar.com/api/v1/domains/:domain?extra_fields=pricing
Sonar will append the returned response with a pricing object as follow:
"pricing": {"pricing_page": "https://www.acme.com/pricing/","subscription": {"has_trial": true,"has_annual_plan": null,"has_monthly_plan": true}}
Note that every key in the pricing object can be null (like 'subscription').
New keys might also be added overtime.