Skip to content

Competitor Landscape Data

Chart

Endpoint

sh
GET https://art.ayima.com/api/reports/{reportId}/mi/chart

parameters

nametypedescriptionrequired
fromDateThe start date range for result data
toStringThe end date range for result data
formatStringThe format to return the data in. Options are: 'json' (default),'csv','xlsx','xls','html','tsv','ods'
plot_byStringHow to group the data. Options are: 'daily','weekly','quarterly','monthly','yearly'
group_byStringIf the data should be grouped using domains or hostname. Options are: 'hostname', 'domain'
storeStringString value indicating the last viewed record is updated. Value can be 'true' or 'false' NOT Boolen🚫
keywordsArrayA array list of keywords to filter the returned results🚫
domainStringCompetitor domain to pull results for🚫
hostnameStringCompetitor hostname to pull results for🚫
normalize_mi_scaleBooleanIf the data should be normalised (not go over 100%)🚫

Response

json
{
  "series": [
    {
      "label": "...",
      "color": "...",
      "estimated_traffic": [],
      "share_of_traffic": [],
      "share_of_voice": [],
      "relative_score": [],
      "estimated_traffic_human": []
    }
  ],
  "categories": [],
  "categories_formatted": [],
  "annotations": [],
  "range": {
    "estimated_traffic": {
      "min": "...",
      "max": "..."
    },
    "share_of_traffic": {
      "min": "...",
      "max": "..."
    },
    "share_of_voice": {
      "min": "...",
      "max": "..."
    },
    "relative_score": {
      "min": "...",
      "max": "..."
    }
  },
  "date_range_string": "..."
}

Table

Endpoint

sh
GET https://art.ayima.com/api/reports/{reportId}/mi/table

parameters

nametypedescriptionrequired
fromDateThe start date range for result data
toDateThe end date range for result data
page_numberintThe current page of the paginated data.
page_sizeintThe number of items to return on each page.
group_byStringIf the data should be grouped using domains or hostname. Options are: 'hostname', 'domain'
col_orderBooleanSorting order, options are: 'host', 'domain', 'change_estimated_traffic', 'change_estimated_traffic', 'change_share_of_traffic', 'estimated_traffic', 'first_estimated_traffic', 'share_of_traffic', 'first_share_of_traffic', 'last_estimated_traffic', 'last_share_of_traffic', 'share_of_voice', 'first_share_of_voice', 'last_share_of_voice', 'change_share_of_voice'
col_order_dirStringThe direction of ordering, either 'asc' or 'desc'
domainStringCompetitor domain to pull results for🚫
hostnameStringCompetitor hostname to pull results for🚫

Response

json
{
  "data": [
    {
      "change_estimated_traffic": "...",
      "change_share_of_traffic": "...",
      "change_share_of_voice": "...",
      "domain": "...",
      "estimated_traffic": "...",
      "first_estimated_traffic": "...",
      "first_share_of_traffic": "...",
      "first_share_of_voice": "...",
      "last_estimated_traffic": "...",
      "last_share_of_traffic": "...",
      "last_share_of_voice": "...",
      "share_of_traffic": "...",
      "share_of_voice": "...",
      "is_brand": "...",
      "is_competitor": "...",
      "estimated_traffic_human": "...",
      "first_estimated_traffic_human": "...",
      "last_estimated_traffic_human": "...",
      "change_estimated_traffic_human": "..."
    }
  ],
  "pagination": {
    "count": "...",
    "current": "...",
    "items": "...",
    "page_length": "..."
  }
}