Keyword suggestions

Returns store suggestions by keyword (query)

GET /api/keyword-suggestions

Query parameters

Mandatory

  • query - keyword to search for

  • storetype - store type (appstore or googleplay)

  • country - country ISO code (ex.: US, RU, GB etc.)

Optional

  • timestamp (default: now) - timestamp of search results in ISO format (YYYY-MM-DDThh:mmTZD, ex.: 2017-07-16T19:20%2B03:00) Note that plus sign is replaced with %2B

  • with_stats boolean (default: false) - include keyword stats

  • with_top5_meta boolean (default: false) - include top5 apps stats

  • with_entities boolean (default: false) - also return the apps, developers and collections the App Store mixes into suggestions, each marked with entity

Note

Besides search words, App Store suggestions include apps, developers and collections (e.g. “in Developers”, “in Watch Apps”, “in Stories” on an iPhone). By default the response contains search words only, in App Store order, without duplicates. Apps, developers and collections are returned only with with_entities=true, at the positions the App Store shows them.

Example request

GET /api/keyword-suggestions?country=CH&storetype=appstore&query=maps

If we have all required information for this request, you will get following response:

Status: 200 OK

if with_stats=false(default)

{
    "id": <string>,  // request id for technical support purposes
    "data": {
        "query": <string>,  // same as specified in query params,
        "storetype": <string>,  // same as specified in query params,
        "country": <string>,  // same as specified in query params,
        "timestamp": <string>,  // ISO format timestamp of results,
        "results": {
            "suggestions": [<string>]
        }
    }
}

if with_stats=true

{
    "id": <string>,  // request id for technical support purposes
    "data": {
        "query": <string>,  // same as specified in query params,
        "storetype": <string>,  // same as specified in query params,
        "country": <string>,  // same as specified in query params,
        "timestamp": <string>,  // ISO format timestamp of results,
        "results": {
            "suggestions": [{  // list of suggested keywords with keyword stats
                "keyword": <string>,
                "timestamp": <string>,  // ISO format timestamp of keyword info
                "popularity": <integer>,  // search ads popularity (appstore only)
                "priority": <integer>,  // appstore priority (appstore only)
                "top5_apps": [<string>],  // ids of top-5 apps for given keyword
                "users_per_day": <integer>  // estimated daily impressions for given keyword
            }]
        }
    }
}

For each keyword included in response, additional credits will be withdrawn for each keyword in results set according to price of Keyword stats request.

if with_top5_meta=true(only when with_stats=true)

{
    "id": <string>,  // request id for technical support purposes
    "data": {
        "query": <string>,  // same as specified in query params,
        "storetype": <string>,  // same as specified in query params,
        "country": <string>,  // same as specified in query params,
        "timestamp": <string>,  // ISO format timestamp of results,
        "results": {
            "suggestions": [{  // list of suggested keywords with keyword stats
                "keyword": <string>,
                "timestamp": <string>,  // ISO format timestamp of keyword info
                "popularity": <integer>,  // search ads popularity (appstore only)
                "priority": <integer>,  // appstore priority (appstore only)
                "top5_apps": [{  // top-5 apps for given keyword
                    "storeid": <string>,
                    "logo": <string>,  // URL
                    "name": <string>,
                    "developer": <string>,
                    "rating": <float>,
                    "price": <string>
                }],
                "users_per_day": <integer>  // estimated daily impressions for given keyword
            }]
        }
    }
}

For each application info included in top5_apps list, additional credits will be withdrawn according to price of App meta request.

if with_entities=true

GET /api/keyword-suggestions?country=US&storetype=appstore&query=weather&with_entities=true

Each suggestion is an object; entity tells what the App Store suggests:

  • null - a search word

  • "app" - an app

  • "developer" - a developer

  • "collection" - an App Store collection (story)

If the App Store introduces another kind, its raw value is returned as is. For Google Play entity is always null. A search word and an app with the same text are both returned.

{
    "id": <string>,  // request id for technical support purposes
    "data": {
        "query": "weather",
        "storetype": "appstore",
        "country": "US",
        "timestamp": <string>,  // ISO format timestamp of results,
        "with_entities": true,
        "results": {
            "suggestions": [
                {"keyword": "weather", "entity": null},
                {"keyword": "weather app", "entity": null},
                {"keyword": "weather radar", "entity": null},
                {"keyword": "weather channel", "entity": null},
                {"keyword": "weather", "entity": "app"},
                {"keyword": "the weather channel interactive", "entity": "developer"},
                {"keyword": "weather live", "entity": null}
            ]
        }
    }
}

if with_entities=true and with_stats=true

Each stats object gets the entity field. An app, developer or collection without keyword stats in our database comes with null stats and empty top5_apps.

{
    "id": <string>,  // request id for technical support purposes
    "data": {
        "query": "weather",
        "storetype": "appstore",
        "country": "US",
        "timestamp": <string>,  // ISO format timestamp of results,
        "with_entities": true,
        "results": {
            "suggestions": [
                {
                    "keyword": "weather",
                    "timestamp": <string>,  // ISO format timestamp of keyword info
                    "popularity": <integer>,  // search ads popularity (appstore only)
                    "top5_apps": [<string>],  // ids of top-5 apps for given keyword
                    "users_per_day": <integer>,  // estimated daily impressions for given keyword
                    "entity": null
                },
                {
                    "keyword": "the weather channel interactive",
                    "timestamp": null,
                    "popularity": null,
                    "top5_apps": [],
                    "users_per_day": null,
                    "entity": "developer"
                }
            ]
        }
    }
}

Keyword stats credits are withdrawn only for suggestions that have keyword stats (non-null timestamp); apps, developers and collections without stats are free.

If we need to download some additional data from store’s servers, you will get following response:

Status: 202 Accepted

{
    "key": <string>,  //request key for technical support purposes
    "detail": "Result is preparing, try in 30 seconds later"
}

So, try in 30 seconds later and if response will be ready you will get full data.

If store’s servers got no required data or we don’t have required data, you will get following response:

Status: 204 No Content

You may try later to get expected data.