Skip to content

Reports

Get all

Endpoint

sh
GET https://art.ayima.com/api/reports

parameters

nametypedescriptionrequired
page_sizeIntegerThe number of reports to return on each call.🚫
col_orderStringThe property used to order the reports. Options are: 'name', is_favourite', 'tracked_keywords' and 'created_at'.🚫
col_order_dirStringOrdering direction- either 'asc' or 'desc'.🚫
search_enginesArrayAn array of search engine ID's to filter.🚫
teamsArrayAn array of team ID's to filter.🚫
searchStringA search filter to be applied to the report name only.🚫
keyword_filterStringA search filter to only bring reports containing a specific keyword.🚫
parentUuidStringA ID to the parent report if you want to pull child report /group keywords from a report.🚫

Response

json
{
  "data": [
        {
            "id": "...",
            "secret": "...",
            "name": "...",
            "is_building": "...",
            "build_reason": "...",
            "build_percent": "...",
            "back_fill_from": "...",
            "original_name": "...",
            "gs_data_studio_enabled": "...",
            "gs_data_studio_secret": "...",
            "group_stats_as": "...",
            "visible_to_client": "...",
.....

Get singular

Endpoint

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

Parameters

nametypedescriptionrequired
storeBooleanIndication if the reports 'last_viewed' should🚫

Response

json
{
    "data": {
        "id": "...",
        "name": "...",
        "url": "...",
        "host": "...",
        "domain": "...",
        "is_competitor": "...",
        "reports": "...",
        "created_at": "..."
    }
}

Create

Endpoint

sh
PUT https://art.ayima.com/api/organisations/{organisationId}/teams/{teamId}/reports

parameters

nametypedescriptionrequired
bucket_idStringThe ID of an existing bucket if preferred over creating a new bucket.string
bucket_nameStringThe name of the bucket to createRequired if bucket_id is not specified and creating a new bucket.
search_engine_idsArrayThe search engine ID to use for the bucket. NOTE: if multiple are provided multiple buckets/reports will be created.Required if bucket_id is not specified and creating a new bucket.
keywordsStringA CSV formatted value for each keyword/search volume to import. for example: "keyword,20\nanotherkeyword,30"Required if bucket_id is not specified and creating a new bucket.
tracking_intervalIntegerTracking interval of the bucket: 1 daily, 2: weekly, 3: monthly.Required if bucket_id is not specified.
track_tillDateA Y-m-d formatted date to limit the tracking date on the bucket.🚫
backfillDateA Y-m-d formatted date to backfill the bucket if required.🚫
nameStringThe name of the report
visible_to_clientBooleanIndication if the report should be visible to the client.
website_idStringThe website ID to be used for this report.
group_stats_byStringHow to group the stats in report overview- either 'DOMAIN' or 'HOSTNAME'
show_ranking_positions_tabBooleanInidicates if the ranking position tab should be visible
show_ranking_distribution_tabBooleanInidicates if the ranking distribution tab should be visible
show_mi_tabBooleanInidicates if the competitor landscape tab should be visible
show_mi_analysisBooleanInidicates if the competitor analysis tab should be visible
show_backlinks_tabBooleanInidicates if the backlinks tab should be visible
show_keywords_tabBooleanInidicates if the tracked keywords tab should be visible
show_url_analysis_tabBooleanInidicates if the URL analsysis tab should be visible
show_grouped_keywords_tabBooleanInidicates if the Grouped keywords tab should be visible

Response

json
{
    "created": true
}

Update

Endpoint

sh
POST https://art.ayima.com/api/reports/{reportId}

parameters

nametypedescriptionrequired
bucket_idStringThe ID of the bucket.string
nameStringThe name of the report
visible_to_clientBooleanIndication if the report should be visible to the client.
website_idStringThe website ID to be used for this report.
group_stats_byStringHow to group the stats in report overview- either 'DOMAIN' or 'HOSTNAME'
show_ranking_positions_tabBooleanInidicates if the ranking position tab should be visible
show_ranking_distribution_tabBooleanInidicates if the ranking distribution tab should be visible
show_mi_tabBooleanInidicates if the competitor landscape tab should be visible
show_mi_analysisBooleanInidicates if the competitor analysis tab should be visible
show_backlinks_tabBooleanInidicates if the backlinks tab should be visible
show_keywords_tabBooleanInidicates if the tracked keywords tab should be visible
show_url_analysis_tabBooleanInidicates if the URL analsysis tab should be visible
show_grouped_keywords_tabBooleanInidicates if the Grouped keywords tab should be visible
team_idStringThe ID of the team this report belongs to.
override_bucket_creation_dateDataA Y-m-d formatted date overiding the bucket creation date. Used to change date range min date🚫
ctrsArray(30)An array of custom click through rate values to be used on the report.

Response

json
{
    "success": true
}

Report Stats

Endpoint

sh
GET https://art.ayima.com/api/reports/stats

Parameters

nametypedescriptionrequired
fromDateThe start date range for result data
toDateThe end date range for result data

Response

json
{
    "last_updated": "...",
    "avg_position": "...",
    "avg_share_of_traffic": "...",
    "estimated_traffic": "...",
    "estimated_traffic_human": "...",
    "keywords_count": "...",
    "ranked_keyword_count": "...",
    "non_ranked_keyword_count": "...",
    "ranked_keyword_coverage": "...",
    "non_ranked_keyword_coverage": "..."
}

Get Keywords

Endpoint

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

parameters

nametypedescriptionrequired
pageintThe current page of the paginated data.string
page_sizeintThe number of items to return on each page.
col_orderBooleanSorting order of the keywords, either 'keyword' or 'search_volume'
col_order_dirStringThe direction of ordering, either 'asc' or 'desc'

Response

json
{
    "data": [
        {
            "keyword": "...",
            "search_volume": "..."
        }
    ],
    "pagination": {
        "count": "...",
        "current": "...",
        "items": "...",
        "page_length": "..."
    }
}

Toggle Favourite

Endpoint

sh
POST https://art.ayima.com/api/reports/{reportId}/favourite

parameters

N/A

Response

json
{
    "favourited": true|false
}

Delete

Endpoint

sh
DELETE https://art.ayima.com/api/reports/{reportId}

parameters

N/A

Response

json
{
    "deleted": true
}