API Documentation Dometrics API is available for integrating into 3rd party services or software. See our Add-Ons page for more.

Integrate Dometrics in your Software or Service

This is v1.0 of the Dometrics API. Version 2 is in the works, to allow more metrics provider queries.

Dometrics has been designed from the ground up to be utilized by any software or service to provide quality statistics for any domain.

The Dometrics API will return the stats below for any domain:

  • Moz External Backlinks
  • Moz Domain Authority
  • Moz Page Authority
  • Moz Trust
  • Moz Rank
  • Majestic External Backlinks
  • Majestic Referring Domains
  • Majestic Citation Flow
  • Majestic Trust Flow

There are 2 main request types that can be used with Dometrics API:

Check Balance API

To check the balance for an account you will need to send a request to the following URL:

https://my.dometrics.net/api/checkBalance.php

Variables

The variables below need to be sent via a GET or POST request

  • app – A unique identifier for your application. Set this to anything that will be used to identify your software.
  • apikey – The unique API key of the user. This is the API key that is sent to the customer when purchasing credits.

Results

When a successful balance check is performed the API will return the following values:

  • UnitsLeft – This is how many credits the user has left on the account

Examples

Example Request

https://my.dometrics.net/api/checkBalance.php?apikey=asdfasdf&app=dometrics

Example Output:

[“UnitsLeft”,”92921″]

Checking Balance does not use up any credits

Check Domain API

To get the Moz and Majestic stats for a domain you will need to send a request to the following URL:

https://my.dometrics.net/api/checkDomain.php

Variables

The variables below need to be sent via a GET or POST request

  • app – A unique identifier for your application. Set this to anything that will be used to identify your software.
  • apikey – The unique API key of the user. This is the API key that is sent to the customer when purchasing credits.
  • domain – This is the domain that you want the stats of
  • majesticChoice – (optional) Specify which version of stats you want to get from Majestic. The default is to return the stats of the variant with the highest TF, if you wish to get the details of a specific variant use one of the variables below
    • highest – (default) This will check http://domain.com, domain.com and www.domain.com and return the stats for the variant with the highest TF
    • url – returns the Majestic stats for http://domain.com
    • root – returns the Majestic stats for domain.com
    • subdomain – return the Majestic stats for www.domain.com

Results

When a domain check is performed the API will return the following values:

  • domain – Domain the check was done on
  • mozLinks – Moz’s number of Links for the domain
  • mozPA – Moz Page Authority
  • mozDA – Moz Domain Authority
  • mozRank – Moz Rank
  • mozTrust – Moz Trust Rank
  • majesticLinks – Majestic’s Links for the domain
  • majesticRefDomains – Majestic’s Referring Domains
  • majesticCF – Majestic’s Citation Flow
  • majesticTF – Majestic’s Trust Flow

Examples

Example Request

https://my.dometrics.net/api/checkDomain.php?domain=domain.com&app=dometrics&apikey=example&majesticChoice=root

Example Output:

{“domain”:”domainhuntergatherer.com”,”mozLinks”:”169″, “mozPA”:”36.573302821858″,”mozDA”:”26.174640423566″, “mozRank”:”4.1071203318084″,”mozTrust”:”4.4980554658364″, “majesticLinks”:”1212″,”majesticRefDomains”:”376″, “majesticCF”:”33″,”majesticTF”:”23″}