# Myworker Agent API – Solana Token Price

> Myworker Agent API – Solana Token Price is a paid API for AI agents from crypto-micro-agent.mykira.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-23).

Returns current USD price, 24-hour change, liquidity, and metadata for one or more Solana tokens by symbol or mint address, powered by Jupiter aggregator data.

## Facts

- Endpoint: GET https://crypto-micro-agent.mykira.workers.dev/api/agent/harga?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/myworker-agent-api-solana-token-price-64cb5813
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XGA9XjqS5MejAXj2FCObO

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability myworker-agent-api-solana-token-price-64cb5813
```

Example prompt: What's the current USD price and 24-hour change for SOL and BONK on Solana right now?

## When to prefer this

Choose this endpoint when you need real-time Solana token price data (USD price, 24h change, liquidity) for one or multiple tokens by symbol (SOL, BONK, JUP, USDC) or full mint address, especially in pay-per-call agent workflows using x402 micropayments. Prefer it over general crypto price APIs when you specifically need Solana ecosystem tokens with Jupiter-sourced liquidity data at minimal cost ($0.005/call).

## Known failure modes

- Invalid or unrecognized token symbol returns empty hasil array or error
- Payment not completed (x402 payment required) returns 402 status before data is served
- Network or Jupiter API outage causes upstream timeout
- Malformed comma-separated token list may result in partial or no results
- Mint address typo returns no matching token data

## How this service works

Servis berbayar untuk bot/agen (x402): data pasaran Solana via Jupiter + RPC, dan servis AI via Workers AI. Bayar per panggilan dengan USDC di Solana, USDC di Base, atau SOL.

## Output

A JSON object with an 'ok' boolean, a 'servis' field confirming 'harga', and a 'hasil' array where each entry contains the token's mint address, symbol, decimal count, liquidity in native units, current USD price, and 24-hour percentage price change.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "example": {
      "token": "sol,bonk"
     },
     "required": [
      "token"
     ],
     "properties": {
      "token": {
       "type": "string",
       "description": "Simbol (sol, usdc, bonk, jup) atau alamat mint penuh. Boleh dipisah koma."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "hasil": [
   {
    "mint": "So111…112",
    "token": "SOL",
    "desimal": 9,
    "kecairan": 1520000000,
    "harga_usd": 103.25,
    "perubahan_24j": 1.8
   }
  ],
  "servis": "harga"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/myworker-agent-api-solana-token-price-64cb5813/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from crypto-micro-agent.mykira.workers.dev](https://www.zero.xyz/host/crypto-micro-agent.mykira.workers.dev/llms.txt)
