Skip to main content

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

FieldTypeRequiredDescription
website_idStringYesClient unique website ID provided by PA.
qStringYesInput search query string.
clientStringYesUnique client shortcode provided by PA.

Response

{
"payload": {
"suggested_terms": [
{}
],
"synthetic_suggested_terms": [
{}
],
"synthetic_trending_terms": [
{}
],
"trending_terms": [
{}
]
},
"type": 1
}