Skip to content

Ranking Position Data

Chart

Endpoint

sh
GET https://art.ayima.com/api/reports/{reportId}/ranking/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🚫

Response

json
{
   "series": [
     {
       "keyword": "...",
       "search_volume": "...",
       "interpolated": "...",
       "interpolated_index": "...",
       "color": "...",
       "rankings": [],
       "searchVolumes": [],
       "urls": [],
       "url_changes": [],
       "dates": [
         {
           "timestamp": "...",
           "search_volume": "...",
           "position": "...",
           "url": "...",
           "url_change": "..."
         }
       ]
     }
   ],
   "categories": [],
   "categories_formatted": [],
   "annotations": [
     {
       "id": "...",
       "type": "...",
       "title": "...",
       "description": "...",
       "date": "...",
       "plot_date": "2020-10-02"
     }
   ],
   "range": {},
   "date_range_string": "...",
   "plot_by": "...",
   "has_ranking_data": "...",
   "response_data": [
     {
       "date": "...",
       "exist": "...",
       "keyword": "...",
       "position": "...",
       "positions": [],
       "search_volume": "...",
       "urls": []
     }
   ]
 }

Table

Endpoint

sh
GET https://art.ayima.com/api/reports/{reportId}/ranking/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🚫

Response

json
{
  "data": [
    {
      "difference": "...",
      "exists": "...",
      "first": "...",
      "highest": "...",
      "keyword": "...",
      "last": "...",
      "lowest": "...",
      "mean": "...",
      "median": "...",
      "nr_unique_urls": "...",
      "search_volume": "...",
      "unique_urls": [],
      "volatility": "...",
      "search_volume_human": "..."
    }
  ],
  "pagination": {
    "count": "...",
    "current": "...",
    "items": "...",
    "page_length": "..."
  }
}