G

Glianalabs · Tools Extract

by Glianalabs

POSTBaseSolana

$0.01

per call · USD Coin on Base

GlianaAI - pay-per-call AI, market data and identity APIs, no signup, USDC. This resource: tools/extract. Input: { url, schema, prompt? }. https://ai.glianalabs.com

Endpoint

POST https://api.glianalabs.com/x402/tools/extract

1

Calls / 30d

1

Unique payers / 30d

Aug 13

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://api.glianalabs.com/x402/tools/extract", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "schema": {
      "in_stock": {
        "type": "boolean"
      },
      "price": {
        "description": "listed price",
        "type": "number"
      },
      "title": "the product name"
    },
    "url": "https://example.com/product"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://api.glianalabs.com/x402/tools/extract" \
  -H "Content-Type: application/json" \
  -d '{"schema":{"in_stock":{"type":"boolean"},"price":{"description":"listed price","type":"number"},"title":"the product name"},"url":"https://example.com/product"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "tool": "tools/extract"
}

Payment details

Pay to0x7662e00f8ab4c362166e1ff649ff6c2a638c80ad
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

Pin it to the top of Search & Web and the homepage with a featured placement.

Get featured →

More from Glianalabs & similar services