H

Hstgr · FNG Fear Greed

by Hstgr

GETBase

$0.0021

per call · USD Coin on Base

Crypto Fear & Greed index: current value and classification plus 7-day history. Always-on, self-healing, verified onchain settlement. Source: Alternative.me.

Endpoint

GET https://srv1553682.hstgr.cloud/fng/api/fear-greed

5

Calls / 30d

4

Unique payers / 30d

Sep 8

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://srv1553682.hstgr.cloud/fng/api/fear-greed", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://srv1553682.hstgr.cloud/fng/api/fear-greed" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "attribution": "Fear & Greed data by Alternative.me",
  "history": [
    {
      "classification": "Fear",
      "timestamp": 1786492800,
      "value": 27
    }
  ],
  "now": {
    "classification": "Fear",
    "timestamp": 1786665600,
    "value": 29
  }
}

Payment details

Pay to0xd32714cc95753d5cd50f56570e98c9d87e7c6dfe
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Other and the homepage with a featured placement.

Get featured →

More from Hstgr & similar services