Skip to content
Go To Dashboard

Quick Start

Sapiom wraps your existing HTTP client so any request to a Sapiom service handles payment automatically.

  1. Grab one from the Sapiom Dashboard.

    Terminal window
    export SAPIOM_API_KEY="your_api_key_here"
  2. Terminal window
    npm install @sapiom/fetch
  3. import { createFetch } from "@sapiom/fetch";
    const fetch = createFetch({
    apiKey: process.env.SAPIOM_API_KEY!,
    });
    const response = await fetch(
    "https://linkup.services.sapiom.ai/v1/search?q=latest+AI+news&depth=standard"
    );
    console.log(await response.json());

    That’s it. The SDK handles the payment flow behind the scenes — you just make normal HTTP requests.