Skip to content

Ranking Distribution Data

Chart

Endpoint

sh
GET https://art.ayima.com/api/reports/{reportId}/distribution/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🚫
domainStringCompetitor domain to pull results for🚫
hostnameStringCompetitor hostname to pull results for🚫

Response

json
{
  "series": {
    "totals": [],
    "percentage": [
      {
        "name": "01-05",
        "data": []
      },
      {
        "name": "06-10",
        "data": []
      },
      {
        "name": "11-20",
        "data": []
      },
      {
        "name": "21-50",
        "data": []
      },
      {
        "name": "50+",
        "data": []
      }
    ],
    "count": [
      {
        "name": "01-05",
        "data": []
      },
      {
        "name": "06-10",
        "data": []
      },
      {
        "name": "11-20",
        "data": []
      },
      {
        "name": "21-50",
        "data": []
      },
      {
        "name": "50+",
        "data": []
      }
    ]
  },
  "categories": [],
  "categories_formatted": [],
  "category_ranges": [],
  "annotations": [],
  "date_range_string": "..."
}

Table

Endpoint

sh
GET https://art.ayima.com/api/reports/{reportId}/distribution/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: 'keyword', 'search_volume', 'nr_unique_urls', 'last', 'difference', 'highest', 'lowest', 'median', 'first'
col_order_dirStringThe direction of ordering, either 'asc' or 'desc'
domainStringCompetitor domain to pull results for🚫
hostnameStringCompetitor hostname to pull results for🚫
plot_byStringHow to group the data. Options are: 'daily','weekly','quarterly','monthly','yearly'

Response

json
{
  "current_page": "...",
  "data": [
    {
      "label": "...",
      "timestamp": "...",
      "total": "...",
      "01-05": "...",
      "06-10": "...",
      "11-20": "...",
      "21-50": "...",
      "50+": "...",
      "01-05 %": "...",
      "06-10 %":"...",
      "11-20 %": "...",
      "21-50 %": "...",
      "50+ %": "..."
    }
  ],
  "first_page_url": "...",
  "from": "...",
  "last_page": "...",
  "last_page_url": "...",
  "next_page_url": "...",
  "path": "...",
  "per_page": "...",
  "prev_page_url": "...",
  "to": "...",
  "total": "..."
}