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, MCP integration, and any language via REST
  3. Query indexed services to retrieve relevant documentation and examples

Integration Options

  • MCP Integration - Add Harvest directly to Cursor, Claude Code, or other MCP-compatible AI assistants for seamless documentation access
  • REST API - Use our REST API with Python, JavaScript, or any HTTP client
  • Code Examples - See working examples in your preferred language

Core Endpoints

Example Usage

import requests

# Search across all indexed documentation
response = requests.post(
    "https://www.goharvest.ai/api/v1/developer/get-context",
    headers={
        "API-Key": "your-api-key",
        "Content-Type": "application/json"
    },
    json={
        "query": "Python requests POST with authentication"
    }
)

chunks = response.json()['data']['context']
print(f"Found {len(chunks)} relevant chunks:")
for chunk in chunks[:3]:
    print(f"Score: {chunk['score']:.2f}")
    print(f"Content: {chunk['content'][:200]}...\n")

Next Steps