Introduction

Welcome to the Quickstart Guide for integrating comprehensive, high-quality answers with precise and reliable citations using our Express and Search APIs. This guide will walk you through the initial setup and provide you with sample code to perform searches and retrieve results.

Step 1: Set Up Your API Key

Before You Get StartedTo use the You.com Search LLM endpoints, you can get an API key through the self-serve portal at you.com/platform. For support, please reach out via email at api@you.com.
Replace X-API-Key in the code with your actual API key:
API Key
YOUR_API_KEY = "your_actual_api_key_here"

Step 2: Get answers

Integrate your endpoint into your applications.
Learn more about the Express API .
express_api.py
import requests

request = requests.post(
    "https://api.you.com/v1/agents/runs",
    headers={
        "Authorization": "Bearer YOUR_API_KEY"
    },
    json={
        "agent": "express",
        "input": "What is the capital of France?",
    },
)

print(request.json())