Skip to content

Url Analysis

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🚫
keywordsArrayA array list of keywords to filter the returned results

Response

json
{
  "series": [
    {
      "url": "...",
      "color": "...",
      "rankings": []
    },
    {
      "url": "...",
      "color": "...",
      "rankings": []
    }
  ],
  "categories": [],
  "categories_formatted": [],
  "annotations": [],
  "date_range_string": "...",
  "range": {
    "max": "...",
    "min": "..."
  }
}

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: 'url', 'avg_position', 'best_position', 'deviation', 'intermittency', 'median_position'
col_order_dirStringThe direction of ordering, either 'asc' or 'desc'
keywordStringThe keyword used to filter data for.
domainsArrayAn array of domains used to filter data for.
formatStringThe format to return the data in. Options are: 'json' (default),'csv','xlsx','xls','html','tsv','ods'

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": "..."
}