Trendtracker Connect

Authentication

Authenticate every request with your Trendtracker Connect API key.

The Connect API supports API-key authentication using the x-api-key header.

Required Header

x-api-key: YOUR_API_KEY

cURL Example

{
  "query": "electric aviation"
}
curl -s "https://connect-api.trendtracker.ai/topics?query=electric%20aviation" \
  -H "x-api-key: $TT_API_KEY"

JavaScript Example

const response = await fetch(
  "https://connect-api.trendtracker.ai/topics?query=electric%20aviation&take=10",
  {
    headers: {
      "x-api-key": process.env.TT_API_KEY,
    },
  }
);

const data = await response.json();
console.log(data);

Common Mistakes

  • Missing x-api-key header -> request is rejected.
  • Typo in header name (x_api_key, api-key, etc.) -> request is rejected.
  • Sending key in query params -> unsupported and insecure.

If you do not have an API key yet, contact sales to request access.

On this page