Content Analysis API

Keyword mention trends

Mention volume and sentiment for a keyword bucketed by day, week or month across the sources we can reach. Bucket heights are bounded by each source's per-query cap, so the series is a shape, not a census — the response says so explicitly.

Endpoint

GET/v1/content_analysis/phrase-trendslive · proven5 credits
Try in Playground

Parameters

Query parameters

NameRequiredDescriptionExample
keywordyesPhrase to trendkubernetes
date_fromyesISO-8601 start of the window2026-08-01
date_tonoISO-8601 end of the window (default now)2026-08-31
date_groupnoday (default), week or month; max 400 bucketsday
page_typenoall, news, forum, social or discussionall
internal_list_limitnoLength of the embedded top-terms list (max 50)10
depthnoItems fetched PER SOURCE before bucketing (max 100)100
filtersnofield:op:value segments joined by ; — see /v1/content_analysis/filterssource:eq:hackernews
dry_runnoRead a zero-credit estimate without fetching sources, running AI, or reserving credits. Cache status is a snapshot, not a guarantee at execution.1

Examples

Make the request

curl
curl "https://www.monocrawl.com/v1/content_analysis/phrase-trends?keyword=kubernetes&date_from=2026-08-01" \
  -H "x-api-key: mn_your_key_here"
TypeScript
typescript
const key = process.env.MONOCRAWL_API_KEY;
if (!key) throw new Error('Set MONOCRAWL_API_KEY on your server.');
const res = await fetch(
  "https://www.monocrawl.com/v1/content_analysis/phrase-trends?keyword=kubernetes&date_from=2026-08-01",
  { headers: { "x-api-key": key } },
);
const body = await res.json();

if (!body.success) {
  // one error shape for every endpoint — see /docs/errors
  throw new Error(`${body.error.type}: ${body.error.message}`);
}

console.log(body.data, "credits left:", body.credits_remaining);
Python
python
import os
import requests

res = requests.get(
    "https://www.monocrawl.com/v1/content_analysis/phrase-trends?keyword=kubernetes&date_from=2026-08-01",
    headers={"x-api-key": os.environ["MONOCRAWL_API_KEY"]},
    timeout=60,
)
body = res.json()

if not body["success"]:
    # one error shape for every endpoint — see /docs/errors
    raise RuntimeError(f"{body['error']['type']}: {body['error']['message']}")

print(body["data"], "credits left:", body["credits_remaining"])

Response

Response fields and example

This example is illustrative, not a captured live response. Variable-cost operations may settle a charge different from the list price below. A successful response puts the platform payload in data and reports the exact credits used, remaining balance, request id and cache status beside it.

200 · application/json
{
  "success": true,
  "platform": "content_analysis",
  "endpoint": "/v1/content_analysis/phrase-trends",
  "data": {
    "_warnings": [
      "example"
    ],
    "bucket_count": 0,
    "buckets": [
      {
        "bucket_end": "example",
        "bucket_start": "example",
        "by_source": {
          "google_news": 0,
          "hackernews": 0,
          "reddit": 0
        },
        "mentions": 0,
        "sentiment": {
          "mean_score": 0,
          "negative": 0,
          "neutral": 0,
          "positive": 0
        }
      }
    ],
    "date_from": "2026-09-01T12:00:00Z",
    "date_group": "2026-09-01T12:00:00Z",
    "date_to": "2026-09-01T12:00:00Z",
    "excluded": {
      "out_of_window_mentions": 0,
      "undated_mentions": 0
    },
    "filters_applied": [],
    "keyword": "example",
    "sentiment_method": {
      "ai_used": false,
      "kind": "example",
      "known_limits": [
        "example"
      ],
      "lexicon": {
        "diminishers": 0,
        "intensifiers": 0,
        "negative_terms": 0,
        "negators": 0,
        "positive_terms": 0,
        "total_terms": 0
      },
      "modifiers": {
        "diminisher": "example",
        "intensifier": "example",
        "matching": "example",
        "negation": "example"
      },
      "scoring": "example",
      "thresholds": {
        "negative": 0,
        "positive": 0
      }
    },
    "sources": [
      {
        "endpoint": "example",
        "error": "example",
        "kept": 0,
        "ok": false,
        "returned": 0,
        "source": "example",
        "status": 0
      }
    ],
    "sources_unavailable": [
      {
        "reason": "example",
        "source": "example"
      }
    ],
    "top_terms": [
      {
        "mentions": 0,
        "occurrences": 0,
        "term": "example"
      }
    ],
    "totals": {
      "buckets_with_mentions": 0,
      "duplicates_removed": 0,
      "gathered_before_filters": 0,
      "mentions": 0,
      "peak_bucket": {
        "bucket_start": "example",
        "mentions": 0
      },
      "sentiment": {
        "max_score": 0,
        "mean_score": 0,
        "median_score": 0,
        "min_score": 0,
        "negative": 0,
        "neutral": 0,
        "positive": 0,
        "total": 0
      }
    }
  },
  "credits_used": 5,
  "credits_remaining": 99,
  "request_id": "req_…",
  "cached": false
}

The example is illustrative and shows a documented subset of data. The fields below are optional across supported sources; nullable fields can also be absent. Preserve unknown values and accept additional fields.

Schema basis: observed response shapes, not an exhaustive field specification. See schema coverage and validation limits.

Download the data JSON Schema. Validate response.data, not the whole envelope. A valid shape does not establish that every field or source record was returned.

Field inside dataTypeMeaning
_warningsarray | nullOptional warnings supplied by this operation. Null means unknown.
bucket_countnumber | nullOptional bucket count supplied by this operation. Null means unknown.
bucketsarray | nullOptional buckets supplied by this operation. Null means unknown.
buckets[].bucket_endstring | nullOptional bucket end supplied by this operation. Null means unknown.
buckets[].bucket_startstring | nullOptional bucket start supplied by this operation. Null means unknown.
buckets[].by_sourceobject | nullOptional by source supplied by this operation. Null means unknown.
buckets[].by_source.google_newsnumber | nullOptional google news supplied by this operation. Null means unknown.
buckets[].by_source.hackernewsnumber | nullOptional hackernews supplied by this operation. Null means unknown.
buckets[].by_source.redditnumber | nullOptional reddit supplied by this operation. Null means unknown.
buckets[].mentionsnumber | nullOptional mentions supplied by this operation. Null means unknown.
buckets[].sentimentobject | nullOptional sentiment supplied by this operation. Null means unknown.
buckets[].sentiment.mean_scorenumber | nullOptional mean score supplied by this operation. Null means unknown.
buckets[].sentiment.negativenumber | nullOptional negative supplied by this operation. Null means unknown.
buckets[].sentiment.neutralnumber | nullOptional neutral supplied by this operation. Null means unknown.
buckets[].sentiment.positivenumber | nullOptional positive supplied by this operation. Null means unknown.
date_fromstring | nullOptional date from supplied by this operation. Null means unknown.
date_groupstring | nullOptional date group supplied by this operation. Null means unknown.
date_tostring | nullOptional date to supplied by this operation. Null means unknown.
excludedobject | nullOptional excluded supplied by this operation. Null means unknown.
excluded.out_of_window_mentionsnumber | nullOptional out of window mentions supplied by this operation. Null means unknown.
excluded.undated_mentionsnumber | nullOptional undated mentions supplied by this operation. Null means unknown.
filters_appliedarray | nullSource array was empty in the reviewed captures; item fields remain unspecified.
keywordstring | nullOptional keyword supplied by this operation. Null means unknown.
sentiment_methodobject | nullOptional sentiment method supplied by this operation. Null means unknown.
sentiment_method.ai_usedboolean | nullOptional ai used supplied by this operation. Null means unknown.
sentiment_method.kindstring | nullOptional kind supplied by this operation. Null means unknown.
sentiment_method.known_limitsarray | nullOptional known limits supplied by this operation. Null means unknown.
sentiment_method.lexiconobject | nullOptional lexicon supplied by this operation. Null means unknown.
sentiment_method.lexicon.diminishersnumber | nullOptional diminishers supplied by this operation. Null means unknown.
sentiment_method.lexicon.intensifiersnumber | nullOptional intensifiers supplied by this operation. Null means unknown.
sentiment_method.lexicon.negative_termsnumber | nullOptional negative terms supplied by this operation. Null means unknown.
sentiment_method.lexicon.negatorsnumber | nullOptional negators supplied by this operation. Null means unknown.
sentiment_method.lexicon.positive_termsnumber | nullOptional positive terms supplied by this operation. Null means unknown.
sentiment_method.lexicon.total_termsnumber | nullOptional total terms supplied by this operation. Null means unknown.
sentiment_method.modifiersobject | nullOptional modifiers supplied by this operation. Null means unknown.
sentiment_method.modifiers.diminisherstring | nullOptional diminisher supplied by this operation. Null means unknown.
sentiment_method.modifiers.intensifierstring | nullOptional intensifier supplied by this operation. Null means unknown.
sentiment_method.modifiers.matchingstring | nullOptional matching supplied by this operation. Null means unknown.
sentiment_method.modifiers.negationstring | nullOptional negation supplied by this operation. Null means unknown.
sentiment_method.scoringstring | nullOptional scoring supplied by this operation. Null means unknown.
sentiment_method.thresholdsobject | nullOptional thresholds supplied by this operation. Null means unknown.
sentiment_method.thresholds.negativenumber | nullOptional negative supplied by this operation. Null means unknown.
sentiment_method.thresholds.positivenumber | nullOptional positive supplied by this operation. Null means unknown.
sourcesarray | nullOptional sources supplied by this operation. Null means unknown.
sources[].endpointstring | nullOptional endpoint supplied by this operation. Null means unknown.
sources[].errorstring | nullOptional error supplied by this operation. Null means unknown.
sources[].keptnumber | nullOptional kept supplied by this operation. Null means unknown.
sources[].okboolean | nullOptional ok supplied by this operation. Null means unknown.
sources[].returnednumber | nullOptional returned supplied by this operation. Null means unknown.
sources[].sourcestring | nullOptional source supplied by this operation. Null means unknown.
sources[].statusnumber | nullOptional status supplied by this operation. Null means unknown.
sources_unavailablearray | nullOptional sources unavailable supplied by this operation. Null means unknown.
sources_unavailable[].reasonstring | nullOptional reason supplied by this operation. Null means unknown.
sources_unavailable[].sourcestring | nullOptional source supplied by this operation. Null means unknown.
top_termsarray | nullOptional top terms supplied by this operation. Null means unknown.
top_terms[].mentionsnumber | nullOptional mentions supplied by this operation. Null means unknown.
top_terms[].occurrencesnumber | nullOptional occurrences supplied by this operation. Null means unknown.
top_terms[].termstring | nullOptional term supplied by this operation. Null means unknown.
totalsobject | nullOptional totals supplied by this operation. Null means unknown.
totals.buckets_with_mentionsnumber | nullOptional buckets with mentions supplied by this operation. Null means unknown.
totals.duplicates_removednumber | nullOptional duplicates removed supplied by this operation. Null means unknown.
totals.gathered_before_filtersnumber | nullOptional gathered before filters supplied by this operation. Null means unknown.
totals.mentionsnumber | nullOptional mentions supplied by this operation. Null means unknown.
totals.peak_bucketobject | nullOptional peak bucket supplied by this operation. Null means unknown.
totals.peak_bucket.bucket_startstring | nullOptional bucket start supplied by this operation. Null means unknown.
totals.peak_bucket.mentionsnumber | nullOptional mentions supplied by this operation. Null means unknown.
totals.sentimentobject | nullOptional sentiment supplied by this operation. Null means unknown.
totals.sentiment.max_scorenumber | nullOptional max score supplied by this operation. Null means unknown.
totals.sentiment.mean_scorenumber | nullOptional mean score supplied by this operation. Null means unknown.
totals.sentiment.median_scorenumber | nullOptional median score supplied by this operation. Null means unknown.
totals.sentiment.min_scorenumber | nullOptional min score supplied by this operation. Null means unknown.
totals.sentiment.negativenumber | nullOptional negative supplied by this operation. Null means unknown.
totals.sentiment.neutralnumber | nullOptional neutral supplied by this operation. Null means unknown.
totals.sentiment.positivenumber | nullOptional positive supplied by this operation. Null means unknown.
totals.sentiment.totalnumber | nullSource-reported total; null is unknown.

Optional fields reviewed from preserved successful responses. Additive fields and source variations remain allowed; validate the fields your workflow requires.

The example is invented and illustrates types only; zero and empty values are not claims about a real result.

Failures use the typed error envelope. A confirmed uncharged or refunded failure reports zero; a pending reconciliation can report an unknown charge. Read credits_used and error.details.billing_status, and keep request_id for recovery. Response contract · Error reference

First call in under a minute

1,000 monthly free credits and a ready-made key the moment you sign up. No card.