Ai generation

Today's trending search topics

GET/ai/trending-topics

Returns today's trending Google searches with the news headlines behind them, for a region. Direct REST equivalent of the chat trending_topics tool — useful for "what's trending that we could promote against?".

Requires the ai key scope and a linked service user. A GET under /ai/ still requires the ai scope.

X-Api-Key<token>

Issued to you when your integration is provisioned. Determines which catalogue resources are visible and which AI tools are available.

In: header

Query Parameters

geo?string

Region code (e.g. US, GB, DE, ZA). Defaults to the catalogue's region.

limit?integer

Maximum number of trends to return.

Range1 <= value <= 20
Default10

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/ai/trending-topics"
{  "data": {    "geo": "GB",    "trends": [      {        "term": "solar eclipse",        "traffic": "200K+",        "news": [          {            "title": "string",            "source": "string"          }        ]      }    ]  }}

{  "success": false,  "status": "fail",  "message": "API key is required",  "error": {    "code": "NO_API_KEY",    "message": "API key is required"  }}

{  "success": false,  "status": "fail",  "message": "This API key does not have the 'write' scope",  "error": {    "code": "INSUFFICIENT_SCOPE",    "message": "This API key does not have the 'write' scope"  }}

{  "success": false,  "status": "fail",  "message": "string",  "error": {    "message": "API key is required",    "code": "NO_API_KEY"  }}