Suggestion
Request
Method: POST
Endpoint: /suggestion
curl --location 'https://<PA_SEARCH_END_POINT>/suggestion' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer cGFTZXXXXXXXXXXXXXXXA==' \
--data '{
"website_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"q": "SEARCH STRING",
"client": "CLIENT_SHORTCODE"
}
Fields
| Field | Type | Required | Description |
|---|---|---|---|
| website_id | String | Yes | Client unique website ID provided by PA. |
| q | String | Yes | Input search query string. |
| client | String | Yes | Unique client shortcode provided by PA. |
Response
{
"payload": {
"suggested_terms": [
{}
],
"synthetic_suggested_terms": [
{}
],
"synthetic_trending_terms": [
{}
],
"trending_terms": [
{}
]
},
"type": 1
}