Query Category Suggestions
Query category suggestions for apps or brands using either a discovery or search route based on the query type.
URL
POST https://api.ads.apple.com/v1/suggestions/categories/queryHeader Parameters
| Name | Type | Description |
|---|---|---|
X-Ap-Context Required | string |
Response Codes
| Status | Reason | Type | Description |
|---|---|---|---|
| 200 | OK Content-Type: application/json | RecommendationQueryCategorySuggestionResponse | |
| 400 | Bad Request Content-Type: application/json | RecommendationResponseBody | |
| 401 | Unauthorized Content-Type: application/json | RecommendationResponseBody | |
| 403 | Forbidden Content-Type: application/json | RecommendationResponseBody | |
| 404 | Not Found Content-Type: application/json | RecommendationResponseBody | |
| 429 | Too Many Requests Content-Type: application/json | RecommendationResponseBody | |
| 500 | Internal Server Error Content-Type: application/json | RecommendationResponseBody |
Discussion
Each result is a CategorySuggestion object with a category name (for example, "Productivity") and a popularity score. Sort by popularity DESC and use pagination to page through results.
See FilterOperator for the full set of supported comparison operators.
Filterable Fields
Field | Type | Operators | Description |
|---|---|---|---|
| string (enum) |
| Required. Selects this query route: |
| string |
| Required for the |
| string (enum) |
| Required for the |
| string |
| Required for the |
Payload Examples
This example discovers category suggestions for a brand using the SUGGESTION route. The response is a list of category names with their relative popularity scores. The same route also works for apps, using APPSTORE_APP as the promotedObjectType.
HTTP Body
See RecommendationQueryRequest. This endpoint supports two query routes selected by the queryType filter: SUGGESTION discovers categories for a specific app or brand, and SEARCH looks up or searches categories by name.