Skip to content
  • Auto
  • Light
  • Dark
Get An API Key

Quickstart

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

Replace X-API-Key in the code with your actual API key:

YOUR_API_KEY = "your_actual_api_key_here"

Create a function to interact with the Research API:

smart_api.py
import requests
def get_smart_results(query):
headers = {"X-API-Key": YOUR_API_KEY}
params = {"query": query, "instructions": instructions}
return requests.get(
"https://chat-api.you.com/smart?query={query}",
params=params,
headers=headers,
).json()