Skip to main content

Welcome to Harvest API

Harvest provides a powerful API for retrieving up-to-date documentation, code examples, and usage guides from indexed SDKs, CLIs, and APIs. Our API allows you to query indexed services and retrieve relevant context for building AI assistants, developer tools, and documentation chatbots.

Quick Start

Get started with the Harvest API in minutes:
  1. Get your API key from the Harvest dashboard
  2. Choose your integration method - we support Python, JavaScript, and any language via REST
  3. Query indexed services to retrieve relevant documentation and examples

Core Endpoints

Example Usage

import requests

# List available indexed services
response = requests.get(
    "https://www.goharvest.ai/api/v1/developer/list-indexes",
    headers={"API-Key": "your-api-key"}
)

indexes = response.json()['data']['indexes']
print(f"Available: {[idx['name'] for idx in indexes]}")

# Get context from a specific index
index_id = indexes[0]['index_id']
response = requests.post(
    "https://www.goharvest.ai/api/v1/developer/get-context",
    headers={
        "API-Key": "your-api-key",
        "Content-Type": "application/json"
    },
    json={
        "query": "how to make authenticated POST request",
        "index_id": index_id
    }
)

context = response.json()['data']['context']
print(context)

Next Steps

I