CaptureKit

Submit an analysis request

Send a URL and a prompt to the analysis endpoint.

Call GET /v1/analyze with the url parameter. The optional custom_prompt adds your own instructions to the analysis.

import os
import requests

API_KEY = os.environ["CAPTUREKIT_API_KEY"]


def get(path, params):
    response = requests.get(f"https://api.capturekit.dev{path}", headers={"x-api-key": API_KEY}, params=params)
    if not response.ok:
        raise SystemExit(f"Error {response.status_code}: {response.text}")
    return response.json()


PROMPT = "Focus on the value proposition, the target audience and the main features."

result = get("/v1/analyze", {"url": "https://stripe.com", "custom_prompt": PROMPT})
print(result)