API Reference

Build on top of cross-domain taste intelligence. Our REST API lets you query taste profiles, get recommendations, and generate shareable fingerprints.

Base URL: api.tastegraph.ioVersion: v1

Quick Start

import tastegraph

client = tastegraph.Client("tg_your_api_key")

# Get a user's taste profile
profile = client.profiles.get("usr_abc123")
print(profile.domains["music"].top_traits)

# Get cross-domain recommendations
recs = client.recommend(
    user_id="usr_abc123",
    target_domain="food",
    source_domains=["music", "fashion"],
    limit=5
)

for rec in recs:
    print(f"{rec.item} (score: {rec.match_score})")

Authentication

All API requests require a Bearer token. Get your API key from the dashboard.

Authorization: Bearer tg_your_api_key

Important: Keep your API key secret. Never expose it in client-side code. Use environment variables and server-side requests.

Rate Limits

PlanRate LimitBurst
Free100 req/hour10 req/sec
Developer10,000 req/hour100 req/sec
EnterpriseUnlimitedCustom

Endpoints

GET/v1/profile/{user_id}

Get Taste Profile

Retrieve the full cross-domain taste profile for a user.

Parameters

user_idstringrequired
The unique user identifier
domainsstring[]
Filter to specific domains (music, food, fashion, architecture, film)

Response

{
  "user_id": "usr_abc123",
  "created_at": "2026-01-15T09:30:00Z",
  "domains": {
    "music": {
      "top_traits": ["experimental", "rhythmic", "melancholic"],
      "confidence": 0.92
    },
    "food": {
      "top_traits": ["umami-forward", "fermented", "spicy"],
      "confidence": 0.87
    },
    "fashion": {
      "top_traits": ["minimalist", "textured", "monochrome"],
      "confidence": 0.79
    }
  },
  "cross_domain_patterns": [
    {
      "pattern": "texture-seeking",
      "domains": ["music", "food", "fashion"],
      "strength": 0.91
    }
  ]
}

Ready to build with taste intelligence?

Get Your API Key