79trust / 100

Pay Agent Pro Api Coingecko Com

by api.aidress.ai in Onchain & crypto

x402 APIPassing, checked 3 h ago

Search onchain DEX pools and token, by contract address, name, or token symbol.

GET
https://api.aidress.ai/pay/agent_pro_api_coingecko_com
Price
$0.01
per call in USDC
Uptime
100%
last 30 days
Response time
651 ms
953 ms slowest 5%
Last check
Passed
3 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed

How to call it

GET https://api.aidress.ai/pay/agent_pro_api_coingecko_com

Each call costs $0.01 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

GET https://api.aidress.ai/pay/agent_pro_api_coingecko_com?include=base_token&network=eth&page=1&query=weth

Parameters

ParameterTypeRequiredDescription
includestringNo
networkstringNo
pageintegerNo
querystringNo

Example response

The provider's example. We can't check it without paying.

Example response, 104 lines
{
  "data": [
    {
      "attributes": {
        "address": "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640",
        "base_token_price_native_currency": "1.0",
        "base_token_price_quote_token": "3662.46",
        "base_token_price_usd": "3653.12491645176",
        "fdv_usd": "11007041041",
        "market_cap_usd": null,
        "name": "WETH / USDC 0.05%",
        "pool_created_at": "2021-12-29T12:35:14Z",
        "price_change_percentage": {
          "h1": "0.51",
          "h24": "7.71",
          "h6": "0.86",
          "m15": "0.21",
          "m30": "0.31",
          "m5": "0"
        },
        "quote_token_price_base_token": "0.00027304",
        "quote_token_price_native_currency": "0.000273040545093221",
        "quote_token_price_usd": "0.998343707926245",
        "reserve_in_usd": "163988541.3812",
        "transactions": {
          "h1": {
            "buyers": 83,
            "buys": 97,
            "sellers": 124,
            "sells": 144
          },
          "h24": {
            "buyers": 1625,
            "buys": 2966,
            "sellers": 2399,
            "sells": 3847
          },
          "m15": {
            "buyers": 19,
            "buys": 19,
            "sellers": 27,
            "sells": 27
          },
          "m30": {
            "buyers": 45,
            "buys": 49,
            "sellers": 57,
            "sells": 61
          },
          "m5": {
            "buyers": 7,
            "buys": 7,
            "sellers": 2,
            "sells": 2
          }
        },
        "volume_usd": {
          "h1": "16798158.0138526",
          "h24": "536545444.904535",
          "h6": "164054610.850188",
          "m15": "2056262.885098",
          "m30": "4081230.098456",
          "m5": "868581.7348314"
        }
      },
      "id": "eth_0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640",
      "relationships": {
        "base_token": {
          "data": {
            "id": "eth_0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
            "type": "token"
          }
        },
        "dex": {
          "data": {
            "id": "uniswap_v3",
            "type": "dex"
          }
        },
        "quote_token": {
          "data": {
            "id": "eth_0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
            "type": "token"
          }
        }
      },
      "type": "pool"
    }
  ],
  "included": [
    {
      "attributes": {
        "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
        "coingecko_coin_id": "weth",
        "decimals": 18,
        "image_url": "https://assets.coingecko.com/coins/images/2518/small/weth.png?1696503332",
        "name": "Wrapped Ether",
        "symbol": "WETH"
      },
      "id": "eth_0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
      "type": "token"
    }
  ]
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.01.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i 'https://api.aidress.ai/pay/agent_pro_api_coingecko_com?include=base_token&network=eth&page=1&query=weth'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - 'https://api.aidress.ai/pay/agent_pro_api_coingecko_com?include=base_token&network=eth&page=1&query=weth' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.01 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.01" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.01 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.aidress.ai%2Fpay%2Fagent_pro_api_coingecko_com
const res = await pay("https://api.aidress.ai/pay/agent_pro_api_coingecko_com?include=base_token&network=eth&page=1&query=weth");
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.01 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.01"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.get("https://api.aidress.ai/pay/agent_pro_api_coingecko_com?include=base_token&network=eth&page=1&query=weth")
    print(res.status_code, res.text)

Security scan

No findings

We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402643 ms$0.01
7 h agoPassed402651 ms$0.01
11 h agoPassed402646 ms$0.01
15 h agoPassed402646 ms$0.01
19 h agoPassed402664 ms$0.01
Show 10 older checks
23 h agoPassed402721 ms$0.01
27 h agoPassed402651 ms$0.01
31 h agoPassed402575 ms$0.01
35 h agoPassed402677 ms$0.01
39 h agoPassed402707 ms$0.01
42 h agoPassed402621 ms$0.01
46 h agoPassed402615 ms$0.01
2 days agoPassed4021.3 s$0.01
2 days agoPassed402756 ms$0.01
2 days agoPassed402953 ms$0.01