Documentation

Everything you need to get started with Relytics API

Getting Started

Welcome to Relytics documentation. This guide will help you integrate our recommendation API into your application.

1. Create an Account

Sign up for a free account to get your API key and start building.

2. Install the SDK

Install the Relytics SDK for your preferred language:

npm install @relytics/sdk

3. Initialize the Client

Initialize the client with your API key:

import { Relytics } from '@relytics/sdk';

const client = new Relytics({
  apiKey: process.env.RELYTICS_API_KEY
});

API Reference

Search Endpoint

Search for items in your collection:

POST /client/api/search

{
  "query": "action movies",
  "collection": "movies",
  "limit": 10,
  "use_hybrid": true
}

Recommendation Endpoint

Get personalized recommendations:

POST /client/api/recommend

{
  "item_ids": ["item1", "item2"],
  "collection": "movies",
  "limit": 10
}

Examples

JavaScript Example

const results = await client.search({
  query: "sci-fi",
  collection: "movies",
  limit: 20
});

console.log(results);

Python Example

from relytics import Relytics

client = Relytics(api_key="your-api-key")
results = client.search(
    query="sci-fi",
    collection="movies",
    limit=20
)
print(results)

Need Help?

If you have questions or need assistance, we're here to help:

  • • Check our FAQ section
  • • Join our Discord community
  • • Contact support at support@relytics.com