How to get Apy data via API (no scraping, pay-per-call)

2026-06-12 · GoCreative AI

What is the Apy API?

The Apy API is a pay-per-call endpoint that returns apr to apy (effective annual yield) — 'apr-compoundsperyear'. for fintech and savings agents. It is built for developers and AI agents who need this data on demand without scraping it themselves or signing up for a subscription.

You pay $0.005 per call in USDC on the Base network using the x402 protocol — there is no API key, no signup, and no monthly minimum. An AI agent (or your code) hits the URL, receives an HTTP 402 price quote, pays automatically, and gets clean JSON back.

How to call it

GET https://api.gocreativeai.com/v1/calc/apy/example

First request returns 402 Payment Required with a payment quote. Your x402 client autopays and retries, and you get structured JSON.

Python (x402 SDK)

import httpx
from x402.clients.httpx import x402_payment_required

with httpx.Client() as c:
    c.event_hooks["response"] = [x402_payment_required(
        wallet_private_key="0x_YOUR_BASE_KEY", network="base")]
    data = c.get("https://api.gocreativeai.com/v1/calc/apy/example").json()
    print(data)

Why use a pay-per-call API instead of scraping?

Use it in an AI agent

This endpoint is part of a catalog of 450+ pay-per-call data tools and is exposed through a native MCP server, so Claude, Cursor, and custom agents can call it directly. The full machine-readable catalog is at https://api.gocreativeai.com/.well-known/x402.

Ready to try it? See the endpoint page or browse all endpoints.