Vionlabs Docs
API Specs

Vionlabs Recommender API

External docs:SwaggerReDoc
POST
/results/recommender/v1/for-you

Generate personalized recommendations from a user's full viewing history.

Uses behavioral signals — both which items were watched and in what order — to recommend content tailored to the individual user.

Authorization

AuthorizationBearer <token>

Stytch access token authentication. Requires BOTH:

  • Authorization: Bearer ACCESS_TOKEN
  • catalog query parameter

Example: Authorization: Bearer ACCESS_TOKEN ?catalog=my_catalog

In: header

Query Parameters

version?|

Recommender product version to use. Defaults to a version pre-configured in Vionlabs systems if omitted.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/results/recommender/v1/for-you" \  -H "Content-Type: application/json" \  -d '{    "inventory_ids": [      "string"    ]  }'
{
  "version": "string",
  "recommendations": [
    {
      "inventory_id": "string"
    }
  ]
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}
POST
/results/recommender/v1/because-you-watched

Recommend content anchored on a single item, informed by behavioral data.

Unlike /more-like-this, this endpoint leverages viewing patterns across users (e.g. "users who watched X also watched Y") rather than pure content similarity. The order of items in aggregate viewing sequences influences the results.

Typical use: a home-screen row whose heading cites the anchor title, for example the Because you watched … pattern common in streaming apps.

Authorization

AuthorizationBearer <token>

Stytch access token authentication. Requires BOTH:

  • Authorization: Bearer ACCESS_TOKEN
  • catalog query parameter

Example: Authorization: Bearer ACCESS_TOKEN ?catalog=my_catalog

In: header

Query Parameters

version?|

Recommender product version to use. Defaults to a version pre-configured in the Vionlabs system if omitted.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/results/recommender/v1/because-you-watched" \  -H "Content-Type: application/json" \  -d '{    "inventory_id": "string"  }'
{
  "version": "string",
  "recommendations": [
    {
      "inventory_id": "string"
    }
  ]
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}
POST
/results/recommender/v1/more-like-this

Return items most similar to a single anchor item based on content attributes.

Purely item-based: results depend only on the anchor item's properties (genre, mood, narrative style, etc.) and do not use any behavioral or user-level data.

Typical use: a "More like this" section on a detail page.

Authorization

AuthorizationBearer <token>

Stytch access token authentication. Requires BOTH:

  • Authorization: Bearer ACCESS_TOKEN
  • catalog query parameter

Example: Authorization: Bearer ACCESS_TOKEN ?catalog=my_catalog

In: header

Query Parameters

version?|

Recommender product version to use. Defaults to a version pre-configured in the Vionlabs system if omitted.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/results/recommender/v1/more-like-this" \  -H "Content-Type: application/json" \  -d '{    "inventory_id": "string"  }'
{
  "version": "string",
  "recommendations": [
    {
      "inventory_id": "string"
    }
  ]
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}