Is AI recommending you? Ask Contentstack Canoe for free
Is AI recommending your brand? Find out with Contentstack Canoe for free
Contentstack.comAcademyLogin
CS-log-dark.svgCS-log-dark.svg
  • Changelog
  • APIs
  • SDKs

Platform

  • Solution Center
  • Marketplace
  • Changelog
  • Developers & IT
  • Business users
  • Digital leaders
  • Developer Fast Track
  • Plans & Pricing

Solutions

  • Retail
  • Travel and tourism
  • Financial services
  • Technology
  • Manufacturing
  • E-commerce
  • Localization
  • Personalization
  • Portals and knowledge bases

Resources

  • Academy
  • Docs
  • Contentstack for Developers
  • Product updates
  • Contentstack on Contentstack
  • Blog
  • Insights and analyst reports
  • The Forrester Wave™: Digital Experience Platforms, Q4 2025
  • Webinars
  • Podcasts
  • Glossary
  • Content generative library
  • Community
  • Headless CMS
  • Composable AXP
  • Personalization
  • CDP

Customers

  • Case Studies
  • Customer Care
  • Contentstack Experience Awards
  • Customer support

Partners

  • Overview
  • Find a partner
  • Login

Company

  • About us
  • News
  • Customer support portal
  • Contact

Social

  • Facebook
  • LinkedIn
  • Instagram
  • GitHub
  • YouTube
  • Discord
  • X
LegalTermsPrivacyTrust Center

Cookie settings

Copyright © 2026 Contentstack Inc. All rights reserved.
/
  1. Home
  2. APIs
  3. Lytics API
  4. Content

Content

markdownView as Markdown

Classify, enrich, and align content with topics.

Get content alignment with a set of topics

POSThttps://api.lytics.io/v2/content/align

Get content alignment with a set of topics

Sample Request
123456
{
  "topics": {
    "property1": 0,
    "property2": 0
  }
}
Sample Response
Status|200 OK
1234567891011
{
  "_meta": {},
  "data": {
    "alignment": {
      "property1": 0,
      "property2": 0
    }
  },
  "request_id": "string",
  "status": 0
}

Classify a URL

POSThttps://api.lytics.io/v2/content/classify

The Classification API classifies a URL and returns all the extracted content and steps taken to classify the content.

Sample Response
Status|200 OK
1234567891011
{
  "_meta": {},
  "data": {
    "content": {},
    "steps": [
      null
    ]
  },
  "request_id": "string",
  "status": 0
}

Enrich a URL or text with Topics

POSThttps://api.lytics.io/v2/content/enrich

Enrich a URL or text with Topics and Inferred Topics

Sample Response
Status|200 OK
12345678910111213141516
{
  "_meta": {},
  "data": {
    "inferred_topics": {
      "property1": 0,
      "property2": 0
    },
    "input": "string",
    "topics": {
      "property1": 0,
      "property2": 0
    }
  },
  "request_id": "string",
  "status": 0
}

Get content opportunities

GEThttps://api.lytics.io/v2/content/opportunity

Get the saved content opportunity metrics for the current account. Optionally provide a date to fetch the snapshot for that UTC day.

Sample Response
Status|200 OK
1234567891011121314151617181920212223
{
  "_meta": {},
  "data": {
    "topics": [
      {
        "context_layer": "string",
        "dimensions": [
          {
            "label": "string",
            "subject": "string",
            "value": 0
          }
        ],
        "segments": [
          "string"
        ],
        "topic": "string"
      }
    ]
  },
  "request_id": "string",
  "status": 0
}
Hide Parameters

Query Parameters

methodoptionalstring

Method for similarity calculation

configoptionalstring

Affinity Config ID. Defaults to accounts default

limitoptionalstring

Limits response size to this number

Headers

Authorizationoptionalstring

Body Parameters

topicsoptionalobject
Hide Parameters

Query Parameters

urlrequiredstring

URL to classify

Headers

Authorizationoptionalstring

Hide Parameters

Query Parameters

urloptionalstring

URL to enrich

textoptionalstring

Text to enrich

Headers

Authorizationoptionalstring

Hide Parameters

Query Parameters

dateoptionalstring

Opportunity snapshot date in YYYY-MM-DD format

Headers

Authorizationoptionalstring