M

Memoryapi · Market Analyst

by Memoryapi

GETBase

$0.005

per call · USD Coin on Base

Analyst stock ratings and price targets from Finnhub. Consensus recommendations (Strong Buy, Buy, Hold, Sell) with analyst price target distribution.

Endpoint

GET https://market.memoryapi.org/x402/market/analyst

1

Calls / 30d

1

Unique payers / 30d

Aug 28

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://market.memoryapi.org/x402/market/analyst", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://market.memoryapi.org/x402/market/analyst?limit=5&symbol=AAPL" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "consensus": {
    "buy": 18,
    "hold": 8,
    "recommendation": "BUY",
    "sell": 2,
    "strongBuy": 12,
    "strongSell": 0,
    "total": 40
  },
  "history": [],
  "price_target": {
    "high": 210,
    "low": 180,
    "mean": 195.5,
    "median": 195
  },
  "source": "Finnhub",
  "success": true,
  "symbol": "AAPL"
}

Payment details

Pay to0x24facafeb49b4e3facf0b3e69604a2f4640c9bf2
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 Memoryapi & similar services