Trends

Public read-only endpoints for trend topics and trend analysis.

List Trend Topics

GET /api/v1/trends/topics/

Auth: None.

Returns active trend topics, ordered by name.

Query parameters:

Parameter Type Description
page integer Page number
page_size integer Results per page, max 200

Response fields include: id, name, slug, keywords, keyword_list, topic_type, description, category, is_active, created_at, and updated_at.

Get Trend Topic

GET /api/v1/trends/topics/<slug>/

Auth: API key or logged-in browser session required.

Returns one active trend topic by slug.

GET /api/v1/trends/summary/

Auth: API key or logged-in browser session required.

Returns high-level trend statistics.

Query parameters:

Parameter Type Default Description
weeks integer 12 Number of weeks to analyze
space string none Competitive space slug filter

Response:

{
  "trending_up": 5,
  "trending_down": 3,
  "emerging_count": 2,
  "total_mentions": 1500,
  "companies_count": 45
}

GET /api/v1/trends/data/

Auth: API key or logged-in browser session required.

Returns summary, per-topic weekly trend data, and emerging topics.

Query parameters:

Parameter Type Default Description
weeks integer 12 Number of weeks to analyze
space string none Competitive space slug filter
projections boolean false Include projected values for the current incomplete period

Response:

{
  "summary": {
    "trending_up": 5,
    "trending_down": 3,
    "emerging_count": 2,
    "total_mentions": 1500,
    "companies_count": 45
  },
  "topics": [
    {
      "name": "Serverless",
      "slug": "serverless",
      "category": "infrastructure",
      "keywords": ["serverless", "lambda"],
      "latest_mention_count": 42,
      "latest_post_count": 18,
      "weekly_data": [
        {
          "week_start": "2026-05-18",
          "mention_count": 42,
          "post_count": 18,
          "company_count": 12,
          "wow_change": 0.24
        }
      ]
    }
  ],
  "emerging": [
    {
      "term": "agentic workflows",
      "velocity_score": 12.5,
      "current_week_count": 8,
      "previous_week_count": 2,
      "growth_rate": 3.0,
      "first_detected": "2026-05-18",
      "total_count": 16
    }
  ]
}

Single Trend Topic Data

GET /api/v1/trends/topic-data/<slug>/

Auth: API key or logged-in browser session required.

Returns one trend topic, weekly data, summary stats, and enriched blog posts that mention the trend. Use this endpoint for single-trend analysis and content gap research.

Query parameters:

Parameter Type Default Description
weeks integer 52 Number of weekly trend periods to return
post_limit integer 50 Maximum matching blog posts to return
post_days integer none Only include posts from the last N days
post_weeks integer none Only include posts from the last N weeks
post_months integer none Only include posts from the last N months
space string none Competitive space slug filter

Blog post evidence includes title, URL, company, date, mention count, summary, word count, optional text preview, and company competitive-space metadata.

List Trend Reports

GET /api/v1/trend-reports/

Auth: Authenticated Free account or higher; no hourly Free quota.

Returns paginated report metadata and company, competitive-space, and trend-topic associations, including summaries of public, Free, Accelerate, and Lead reports. Staff-only reports and full Markdown content are excluded. Use the report detail endpoint for entitled full content; that endpoint requires effective Accelerate access and respects each report's access level.

Get Trend Report

GET /api/v1/trend-reports/<slug>/

Auth: Effective Accelerate access, including qualifying trials, organization grants, Lead, or staff access.

Returns the entitled report metadata, associations, and complete Markdown content. Staff-only and higher-tier reports are returned as 404 Not Found rather than disclosed.

Raw Monthly Trend Metrics

GET /api/v1/trends/metrics/monthly/

Auth: Effective Accelerate access, including qualifying trials, organization grants, Lead, or staff access.

Returns paginated raw monthly records with topic and optional competitive-space identities, period bounds, mention/post/company counts, previous-month count, month-over-month change, and calculation timestamp.

Raw Yearly Trend Metrics

GET /api/v1/trends/metrics/yearly/

Auth: Effective Accelerate access, including qualifying trials, organization grants, Lead, or staff access.

Returns the equivalent raw yearly records with previous-year and year-over-year values.

Both raw metric endpoints accept:

Parameter Type Default Description
topic slug none Filter by trend topic
scope string all all, global, or space
space slug none Required when scope=space
start date none Inclusive period-start filter
end date none Inclusive period-end filter
page integer 1 Page number
page_size integer 50 Results per page, max 200

Trend modes and Free allowance

The public trend-topic catalog is unmetered. Free access to trend summaries, trend data, individual topic data, and topic details uses separate five-call hourly allowances, shared across companies/topics and REST/MCP connections for the same account. The counters reset at the top of each UTC hour.

For summaries, trend data, and individual topic data, mode=normalized is available to Free accounts. Explicit mode=raw and source=linkedin require Accelerate access and return 403 before charging a Free call. An unsupported mode returns 400 before charging a call, even if the allowance is exhausted. These rules do not make monthly or yearly paid metric endpoints available to Free accounts. See authentication and limits.

Machine-readable REST description

The OpenAPI 3.1 description covers published customer GET operations, parameters, response shapes, and effective access. REST accepts the X-API-Key header or a Django session cookie. Missing credentials on restricted reads and invalid or expired keys return HTTP 403. Public company and topic discovery remains anonymous.