# PubFi Agents

> Agent-readable guide for using public PubFi Discovery and Gateway resources.

Source: public site content, product metadata, checked-in public Discovery data, and OpenAPI files in this repository.
Format: text/markdown; charset=utf-8
Scope: public docs at docs.pubfi.ai, public Discovery exports, public OpenAPI schemas, and auth-required gateway examples.
Private-data rule: dashboard routes, account usage, API keys, billing state, provider credentials, and supplier procurement records are not exposed here.

## Start Here
- [PubFi public docs](https://docs.pubfi.ai): public. Public documentation for PubFi concepts, quickstarts, runtime boundaries, agent setup, examples, and claim-safety rules.
- [Agents guide](https://pubfi.ai/agents.md): public. Markdown guide for agents using PubFi public docs, OpenAPI schemas, capability routes, and auth-required gateway routes.
- [LLMs index](https://pubfi.ai/llms.txt): public. Concise index of public PubFi pages, documentation, Discovery exports, and integration resources.
- [PubFi Discovery full export](https://pubfi.ai/llms-full.txt): public. Expanded Discovery export generated from checked-in public catalog records and publication gates.
- [PubFi Discovery directory Markdown](https://pubfi.ai/discovery.md): public. Agent-readable Markdown mirror for the canonical crypto data API directory and non-brand query-to-page map.
- [Discovery capability-card JSON](https://pubfi.ai/discovery/agent-capabilities.json): public. Discovery source capability cards with input schemas, normalized envelopes, provenance, and freshness metadata.
- [PubFi Runtime OpenAPI](https://api.pubfi.ai/openapi.json): public. OpenAPI 3.1 schema for PubFi runtime HTTP routes, including capability, gateway, account, credit, usage, and MCP surfaces.
- [PubFi Discovery](https://pubfi.ai/discovery): public. Public crypto API directory with provider, chain, category, capability, commercial, and claim-safe status metadata.

## API Auth
- Capability runtime route pattern: `/v1/capabilities/{capability_id}`. Supported v1 ids: `wallet.token_balances`, `wallet.account_balance`, `market.token_price`, and `governance.proposals`.
- Preferred repeated-use surface: call PubFi capability routes when one matches the task; inspect `meta.provenance.gateway_route` only as selected-provider provenance.
- Lower-level gateway route pattern: auth-required `/v1/gateway/{provider}/{network}/{endpoint...}`.
- Accepted auth headers: Authorization: Bearer <PubFi API key> or X-PubFi-Api-Key: <PubFi API key>.
- Live capability and gateway calls require a PubFi API key when they execute an upstream provider route.
- Capability runtime responses use `pubfi.capability.response.v1` normalized envelopes with request id, provenance, freshness, route metadata, upstream metadata when observed, and explicit warnings for degraded or fixture-backed responses.
- Runtime OpenAPI describes executable PubFi HTTP routes, including `/v1/capabilities`, `/v1/gateway`, account, credit, usage, and MCP surfaces.
- Upstream provider credentials, supplier payment details, billing state, and procurement approval state stay server-side.
- Dashboard pages are authenticated account UI and are not public agent-readable data sources.

## Public OpenAPI And Docs
- [Gateway quickstart](https://docs.pubfi.ai/getting-started/quickstart): public. PubFi API-key authentication, gateway headers, route shape, credits, and response contract.
- [Provider gateway examples](https://docs.pubfi.ai/reference/provider-gateway-examples): public. Public-safe provider gateway route-shape examples for lower-level adapter inspection.
- [PubFi Runtime OpenAPI](https://api.pubfi.ai/openapi.json): public. OpenAPI 3.1 schema for executable PubFi HTTP routes, request bodies, response schemas, auth requirements, and route-level details.
- [DeGov OpenAPI](https://pubfi.ai/openapi/degov-openapi.json): public. OpenAPI 3.1 schema for DeGov gateway routes. Gateway calls require a PubFi API key.
- [DeGov API reference guide](https://docs.pubfi.ai/reference/provider-gateway-examples#degov-gateway-example): public. API reference guide for DeGov gateway use. Gateway calls are auth-required.
- [Subscan OpenAPI](https://pubfi.ai/openapi/subscan-openapi.json): public. OpenAPI 3.1 schema for Subscan gateway routes. Gateway calls require a PubFi API key.
- [Subscan API reference guide](https://docs.pubfi.ai/reference/provider-gateway-examples): public. API reference guide for Subscan gateway use. Gateway calls are auth-required.

## Capability Runtime Examples
- Wallet token balances: `wallet.token_balances` is a supported v1 contract, currently `contract_ready`/`not_callable`; do not use it as a live gateway-execution route yet.
- Account balance: `POST /v1/capabilities/wallet.account_balance` with `wallet_address`, `network`, and optional `chain`; current live path is Subscan-backed and requires PubFi API-key auth.
- Account-balance gateway provenance route: /v1/gateway/subscan/polkadot/api/v2/scan/accounts. Prefer the capability route above for repeated agent calls.
- Market price: `GET /v1/capabilities/market.token_price?asset_id=polkadot:dot&quote_currency=USD`; currently fixture-backed and marked `contract_ready`.
- Governance proposals: `GET /v1/capabilities/governance.proposals?chain=polkadot&network=global&governance_system=degov_dao_directory`; currently fixture-backed and marked `contract_ready`.
- Do not convert provider paths into durable public tool names; provider identity belongs in response provenance.

## Current Gateway Examples
### Subscan API

Subscan API gives your app or agent a reliable way to read chain activity and account state across 70+ chains, including Polkadot, Kusama, Moonbeam, Midnight, and more, so you can ship user-facing crypto features without building core indexing first.

- Access: auth-required gateway calls.
- Product route example: /v1/gateway/subscan/polkadot/api/scan/account/tokens
- Product page: https://pubfi.ai/products/subscan-api
- Product docs: https://support.subscan.io/doc-362600
- PubFi docs: https://docs.pubfi.ai/reference/provider-gateway-examples
- OpenAPI schema: https://pubfi.ai/openapi/subscan-openapi.json

Recommended for product integration. Call the PubFi gateway with your own PubFi API key, and keep usage tracking unified in the dashboard.

```bash
curl --location 'https://api.pubfi.ai/v1/gateway/subscan/polkadot/api/scan/account/tokens' \
  --header 'Authorization: Bearer <PubFi API key>' \
  --header 'Content-Type: application/json' \
  --data '{
    "address": "<Polkadot account address>"
  }'
```

### DeGov API

DeGov API helps your product explain what is happening in a DAO and who is driving outcomes, making governance easier to monitor, analyze, and automate.

- Access: auth-required gateway calls.
- Product route example: /v1/gateway/degov/global/v1/daos
- Product page: https://pubfi.ai/products/degov-api
- Product docs: https://agent-api.degov.ai/v1/meta/pricing
- PubFi docs: https://docs.pubfi.ai/reference/provider-gateway-examples#degov-gateway-example
- OpenAPI schema: https://pubfi.ai/openapi/degov-openapi.json

Use the PubFi gateway route with the fixed `global` network segment for DeGov endpoints. Upstream x-degov-api-token auth stays server-side.

```bash
curl --location 'https://api.pubfi.ai/v1/gateway/degov/global/v1/daos' \
  --header 'Authorization: Bearer <PubFi API key>'
```

### World Bank Population Indicator API

Generated generic HTTP adapter with public certification evidence.

- Access: auth-required gateway calls.
- Gateway route pattern: /v1/gateway/worldbank/global/{endpoint...}
- Network convention: The network segment is fixed to global for this generated generic adapter.
- Example route: /v1/gateway/worldbank/global/v2/country/all/indicator/SP.POP.TOTL
- Upstream docs: https://datahelpdesk.worldbank.org/knowledgebase/articles/898581-api-basic-call-structures
- PubFi docs: https://docs.pubfi.ai/reference/provider-gateway-examples
- OpenAPI schema: not published for this generic adapter.

```bash
curl --location 'https://api.pubfi.ai/v1/gateway/worldbank/global/v2/country/all/indicator/SP.POP.TOTL' \
  --header 'Authorization: Bearer <PubFi API key>'
```

## Discovery Gateway Readiness
- Discovery direct gateway examples are gated by the gateway readiness catalog and the current claim-safe effective availability, not by provider existence or category membership.
- Non-routeable Discovery sources use request, procurement, or demand-signal guidance and must not receive inferred PubFi gateway call examples.
- Routeable Discovery sources with examples: none.
- Discovery sources with documented routes that need re-verification before live use: Subscan API.
- Non-routeable Discovery sources without direct gateway examples: DotLake API, SubSquid, SubQuery Network, Polkassembly, OnFinality, Alchemy, Infura, QuickNode, Ankr, Chainstack, Blockdaemon, GetBlock, NOWNodes, Pokt Network, Blast API, CoinGecko API, CoinMarketCap API, CryptoCompare, Kaiko, Amberdata, Moralis, Covalent, Bitquery, Dune API, Zerion API, The Graph, DeFiLlama, Helius, Shyft, Hello Moon, Crypto APIs, Tatum, Coinbase API, dRPC, MetaMask API, Tenderly, Scorechain API, Blockscout API, Blocknative API, Polkadot API, NodeReal API, Dwellir API, Nansen API, Api3 API, Mempool API, OKX API, Solana API, Etherscan API, CoinAPI API, CoinDesk API, Crypto.com API, Blockchain API, Dex API, Arbitrum API, Chainupcloud API, CoinStats API, Eco API, Google API, Postman API, Stellar API, Chainbase API, Glassnode API, OpenSea API, TRM Labs API, Avalanche Builder Hub API, IPFS API, Allium API, Reown API, SimpleHash API, Unmarshal API, Pinata API, Santiment API, thirdweb API, 1inch Business API, AMLBot API, Apify API, Bitcoin API, BNB Chain API, Chainlink API, Cloudflare API, Cosmos Network API, Flashbots API, GoldRush API, MDN Web Docs API, Microsoft Learn API, Stakingrewards API, DIA API, Moonbeam API, Nft API, Optimism API, Oracle API, Readthedocs API, Stakely API, Uniswap API, Venly API, Vezgo API, Whale Alert API, ZKsync API, DappRadar API, ChainScore Labs API, NFTScan API, Chainnodes API, Coin Metrics API, Elliptic API, Flipside Crypto API, Magic Eden API, 1inch API, Privy API, Rarible API, Reservoir NFT API, Alpaca API, Apollo GraphQL API, Aptos API, Avacloud API, Blockapi API, Bridge API, Bridgeapi API, Cardano API, Chain API, Chaingateway API, Chaingpt API, Cosmos API, CryptAPI API, Cryptocurrency Alerting API, Docs API, Eigenphi API, Fordefi API, Gemini API, Gitbook API, Cryptoquant API, DevTeam.Space API, GraphQL API, Kaia API, Kaleido API, Lightspark API, Moesif API, Nuance API, OpenZeppelin API, P2P.Org API, Polkadot Wiki API, Polygon API, Qulix API, Range API, Request Network API, Sanctions.Io API, SEI Docs API, StealthEX API, Storacha API, Stripe API, Sumsub API, Syndica API, Tokenview API, Snapshot API, Solscan API.

No Discovery source currently has a direct PubFi gateway example.
## Discovery Export Status
- Public Discovery detail records in the expanded export: 132.
- Public demand-led Discovery records in the expanded export: 7.
- Raw claim-safe status counts: evaluation_comparison_only: 1, integration_requested: 1, public_source_profile: 130.
- Effective agent availability counts: evaluation_comparison_only: 1, integration_requested: 1, public_source_profile: 130.
- Effective callable/tooling records: 0.
- Discovery detail pages enter the expanded export and Markdown mirror set when the canonical public page is indexable and readiness_flags.llms_export_ready is true.
- Raw claim-safe statuses are preserved for provenance. Effective agent availability decides whether agents should treat a route as actionable.
- Degraded pages can remain public and machine-readable, but agents must reverify before live use even when the raw status names gateway, x402, or MCP availability.
- [DotLake API Markdown detail](https://pubfi.ai/discovery/api/dotlake-api.md): public. Public Discovery detail for DotLake API. Raw claim-safe status: public_source_profile. Effective agent availability: public_source_profile.
- [SubSquid Markdown detail](https://pubfi.ai/discovery/api/subsquid.md): public. Public Discovery detail for SubSquid. Raw claim-safe status: public_source_profile. Effective agent availability: public_source_profile.
- [SubQuery Network Markdown detail](https://pubfi.ai/discovery/api/subquery.md): public. Public Discovery detail for SubQuery Network. Raw claim-safe status: public_source_profile. Effective agent availability: public_source_profile.
- [Polkassembly Markdown detail](https://pubfi.ai/discovery/api/polkassembly.md): public. Public Discovery detail for Polkassembly. Raw claim-safe status: public_source_profile. Effective agent availability: public_source_profile.
- [Ankr Markdown detail](https://pubfi.ai/discovery/api/ankr.md): public. Public Discovery detail for Ankr. Raw claim-safe status: public_source_profile. Effective agent availability: public_source_profile.
- [Crypto Data API Directory For AI Agents Markdown detail](https://pubfi.ai/discovery/topic/crypto-data-api-for-ai-agents.md): public. Public Discovery demand-led page. Availability status: Request integration.
- [CoinGecko Alternatives for Crypto Data APIs Markdown detail](https://pubfi.ai/discovery/topic/coingecko-alternatives.md): public. Public Discovery demand-led page. Availability status: Indexed-only.
- [MCP Crypto Data API Directory For AI Agents Markdown detail](https://pubfi.ai/discovery/topic/mcp-crypto-data-api.md): public. Public Discovery demand-led page. Availability status: Roadmap signal.
- [x402 Crypto Data API Directory For AI Agents Markdown detail](https://pubfi.ai/discovery/topic/x402-crypto-data-api.md): public. Public Discovery demand-led page. Availability status: Request integration.
- [Polkadot Governance API Source Fit Markdown detail](https://pubfi.ai/discovery/topic/polkadot-governance-api.md): public. Public Discovery demand-led page. Availability status: Request integration.
- [Wallet Labels API Directory For AI Agents Markdown detail](https://pubfi.ai/discovery/topic/wallet-labels-api.md): public. Public Discovery demand-led page. Availability status: Indexed-only.
- [TypeScript Crypto Data API Directory For Developers Markdown detail](https://pubfi.ai/discovery/topic/typescript-crypto-data-api.md): public. Public Discovery demand-led page. Availability status: Request integration.

## Discovery Machine-Native Demand
- Agent data API guide: use https://pubfi.ai/discovery/topic/crypto-data-api-for-ai-agents for AI-agent crypto data source selection across market-data sources such as CoinGecko, CoinMarketCap, CoinAPI, and Kaiko; indexed, wallet, portfolio, governance, and DeFi sources such as The Graph, Bitquery, Chainbase, Subscan, Nansen, Zerion, and DefiLlama; RPC sources such as dRPC; and related MCP/x402 evidence by coverage, auth model, pricing posture, provenance, freshness evidence, contract surface, claim-safe status, and current PubFi availability.
- Wallet labels API guide: use https://pubfi.ai/discovery/topic/wallet-labels-api for wallet-label and entity-intelligence source selection by separating wallet or portfolio sources such as Moralis and Zerion from entity-intelligence, holder, analytics, and indexed data sources such as Nansen, Allium, and Chainbase, plus compliance-oriented sources such as Scorechain. Treat source inclusion as Discovery evidence, not as a universal PubFi wallet-label gateway or regulated risk-decision claim.
- MCP crypto data guide: use https://pubfi.ai/discovery/topic/mcp-crypto-data-api, provider Markdown mirrors, and this guide for MCP crypto data source selection by comparing hosted endpoint versus documented server shape, visible tools, auth, supported data families, official provider evidence, GitHub example boundaries, and read/write or payment limits; PubFi's public MCP materials describe generic route-tool boundaries; provider-specific crypto MCP tools and payment-requiring MCP data tools are outside this public guide unless separate runtime verification proves them.
- x402 crypto data guide: use https://pubfi.ai/discovery/topic/x402-crypto-data-api for x402 crypto data source selection by comparing HTTP 402 challenge shape, payment amount and asset, supported network, signing or payment-proof step, endpoint family, final data response, rate-limit caveat, marketplace metadata, and agent spending boundary; CoinGecko and CoinMarketCap are market-data x402 evidence anchors, Coinbase Bazaar and x402.org are marketplace/protocol anchors, and PubFi does not publish a payment endpoint, payment requirement, facilitator URL, asset/network allowlist, or supplier payment execution flow today.
- TypeScript crypto data API guide: use https://pubfi.ai/discovery/topic/typescript-crypto-data-api for TypeScript, curl, and server-side crypto data examples by choosing the source class before writing code: market-data APIs such as CoinGecko, CoinMarketCap, CoinAPI, and CryptoCompare; indexed or query APIs such as The Graph and Bitquery; and RPC infrastructure such as QuickNode and Chainstack. Keep provider keys server-side, use redacted example credentials, validate endpoint family and response shape with curl, and treat PubFi routeability as source-specific rather than implied by source inclusion.
- Future demand-led Discovery pages or protocol-specific manifests should only appear when their public route, export, crawler, and claim-safe availability labels are defined from the same source records as the canonical Discovery pages.

## Discovery Directory Topic Map
- Directory root: https://pubfi.ai/discovery is the canonical PubFi entry for `crypto data API directory`, `web3 data discovery engine`, `best crypto data API`, and related non-brand source-fit queries. Markdown mirror: https://pubfi.ai/discovery.md. Use it to compare market-data APIs, on-chain indexes, wallet and portfolio labels, governance data, RPC infrastructure, MCP tooling evidence, and x402 payment-readiness by coverage, auth, pricing posture, provenance, freshness evidence, contract shape, claim-safe status, and current PubFi availability. Copy-ready answer: start with the workflow, use market data for prices and token metadata, indexers for chain history, wallet sources for address context, RPC for raw reads, MCP for tool discovery, and x402 only when payment terms and spend limits are explicit; use the topic pages when the prompt narrows to AI-agent, MCP, x402, wallet-label, TypeScript, governance, or provider-comparison intent.
- crypto data API for AI agents: https://pubfi.ai/discovery/topic/crypto-data-api-for-ai-agents; Markdown https://pubfi.ai/discovery/topic/crypto-data-api-for-ai-agents.md; intent family MCP/agent-native crypto data APIs; related prompts crypto data API for AI agents; blockchain data API for AI agents; best crypto data API for autonomous AI agents; what crypto data API should an AI agent use; crypto data API directory for AI agents; availability Request integration
- CoinGecko alternatives: https://pubfi.ai/discovery/topic/coingecko-alternatives; Markdown https://pubfi.ai/discovery/topic/coingecko-alternatives.md; intent family Crypto market data API alternatives; related prompts CoinGecko alternatives; CoinGecko API alternatives; CoinGecko alternatives for developers; CoinGecko alternatives for AI agents; availability Indexed-only
- MCP crypto data API: https://pubfi.ai/discovery/topic/mcp-crypto-data-api; Markdown https://pubfi.ai/discovery/topic/mcp-crypto-data-api.md; intent family MCP/agent-native crypto data APIs; related prompts MCP crypto data API; crypto data MCP server; which MCP servers expose crypto market data; what is a good MCP crypto data API; good MCP crypto data API; availability Roadmap signal
- x402 crypto data API: https://pubfi.ai/discovery/topic/x402-crypto-data-api; Markdown https://pubfi.ai/discovery/topic/x402-crypto-data-api.md; intent family x402 crypto data APIs; related prompts x402 crypto data API; x402 API marketplace for AI agents; which crypto data APIs support x402 payments; which crypto data APIs support x402 payments for AI agents; what x402 data APIs can agents use; availability Request integration
- Polkadot governance API: https://pubfi.ai/discovery/topic/polkadot-governance-api; Markdown https://pubfi.ai/discovery/topic/polkadot-governance-api.md; intent family Polkadot governance APIs; related prompts Polkadot governance API; best Polkadot governance API; what API can I use for Polkadot governance data; best way for an agent to query Polkadot governance; Polkadot OpenGov API; availability Request integration
- wallet labels API: https://pubfi.ai/discovery/topic/wallet-labels-api; Markdown https://pubfi.ai/discovery/topic/wallet-labels-api.md; intent family Wallet labels and entity intelligence APIs; related prompts wallet labels API; cross-chain wallet labels API; best wallet labels API; address labels API for AI agents; blockchain address labels API; availability Indexed-only
- TypeScript crypto data API: https://pubfi.ai/discovery/topic/typescript-crypto-data-api; Markdown https://pubfi.ai/discovery/topic/typescript-crypto-data-api.md; intent family Developer implementation crypto data APIs; related prompts TypeScript crypto data API; curl crypto data API; crypto data API TypeScript example; Node.js crypto data API; server-side crypto data API example; availability Request integration
- Topic-map boundary: these links identify canonical public pages for agent-readable Discovery; page publication is not proof of ranking, indexing, traffic, or citation outcomes.

## Internal Publication Boundary
- Non-public operational evidence, crawler samples, recommendations, and issue outboxes stay out of public agent exports.
- Public agent exports may reference published Discovery routes, but not non-public operational evidence, database rows, or local spool files unless a later human-directed publication path explicitly publishes them.

## MCP And Machine Payment Status
- PubFi publishes a hosted MCP discovery manifest at `/.well-known/mcp.json` for the Streamable HTTP endpoint `https://mcp.pubfi.ai`.
- Hosted MCP uses the same six generic PubFi route tools as the OpenAPI surface. Handshake/introspection methods are public, including `initialize`, `notifications/initialized`, `ping`, `tools/list`, `resources/list`, `resources/templates/list`, and `prompts/list`; `tools/call` requires a PubFi API key.
- Hosted MCP route intelligence reports deterministic baseline with Qwen3 shadow/input-supplied status only; production route-time Qwen3/reranker authority is not enabled.
- This file does not publish a x402 payment endpoint, payment requirement, facilitator URL, asset/network allowlist, or payable MCP tool.
- A future x402 or payable MCP surface should appear here only after the public product can support it and the payment route is real.

## Contact
- [Contact PubFi](mailto:hello@pubfi.ai): Contact PubFi for API access, product questions, deployment planning, or custom backend collaboration.
