FastNEAR API
The FastNEAR API allows to easily query the NEAR blockchain to get an account’s assets, map keys into account IDs, explore a block’s transactions, etc.Use Cases
Account Assets
Query all assets of an account (including fungible and non-fungible tokens)
Latest Blocks
Query the last block produced
Key Mapping
Map Public Key to Account ID or Full Access Public Key to Account ID
Staking Info
Know a user’s staking pools (validators)
Token Holders
Query the top holders of a token
Examples
- Fungible Tokens
- Non-Fungible Tokens
- All Assets
Query all fungible tokens owned by an account:Response:
FastNEAR Documentation
View complete API documentation and more examples
NearBlocks API
NearBlocks API provides an endpoint to query actions that happened on a NEAR account.Use Cases
Account Balance
Query an account’s current balance
Contract Calls
Query all function calls to a specific contract
Supply Metrics
Get total NEAR supply and circulating supply
Transaction Count
Query the number of total transactions on NEAR
Examples
- Transaction Queries
- Account Info
- Network Stats
Get all transactions where somebody called Filter by specific sender:
create_drop on Keypom:NearBlocks API Documentation
Explore the complete API reference and interactive documentation
Pikespeak API
The Pikespeak API allows you to fetch blockchain events and aggregated analytics on wallets, validators, delegators, money transfers, dApps activity, and more.Use Cases
Account Balances
Query current and historical account balances
Active Wallets
Query the most active wallets by transaction count
Historic Events
Query historic account events and activities
Validator Stats
Get validator and delegator analytics
Examples
- Account Balance
- Hot Wallets
- Historic Events
Check the account balance for Response:
root.near:Pikespeak Documentation
View full API documentation and get your API key
The Graph
The Graph gives developers tools to process blockchain events and make the resulting data easily available via a GraphQL API, known individually as a subgraph.Graph Node is now able to process NEAR events, which means that NEAR developers can now build subgraphs to index their smart contracts.
Key Features
GraphQL API
Query blockchain data using flexible GraphQL queries
Custom Indexing
Define custom data schemas and indexing logic
Decentralized
Run on The Graph’s decentralized network
Multi-Chain
Index data across multiple blockchain networks
How It Works
The Graph NEAR Cookbook
Learn how to build NEAR subgraphs with The Graph
SubQuery
SubQuery is a fast, flexible, and reliable open-source data indexer that provides you with custom APIs for your web3 project across NEAR and many other chains.Key Features
Fast Indexing
High-performance indexing for real-time data access
Custom APIs
Build custom GraphQL APIs tailored to your needs
Multi-Chain
Index data from NEAR and other blockchain networks
Open Source
Fully open-source and community-driven
How It Works
SubQuery NEAR Guide
Get started with SubQuery on NEAR Protocol
Choosing the Right API
- Quick Queries
- Custom Indexing
- Analytics
Best for: Simple queries, prototyping, quick integrationsRecommended APIs:
- FastNEAR - Account assets, token balances
- NearBlocks - Transaction history, account info
- Pikespeak - Analytics and aggregated data
Comparison Table
| Feature | FastNEAR | NearBlocks | Pikespeak | The Graph | SubQuery |
|---|---|---|---|---|---|
| Setup Required | None | None | API Key | Subgraph | Indexer |
| Query Language | REST | REST | REST | GraphQL | GraphQL |
| Real-time Data | Yes | Yes | Yes | Yes | Yes |
| Custom Logic | No | No | No | Yes | Yes |
| Cost | Free | Free | Paid Plans | Free/Paid | Free/Paid |
| Best For | Assets | Transactions | Analytics | Custom | Custom |
Getting Help
NEAR Discord
Join the community for support and discussions
Build an Indexer
Learn to build your own indexer with NEAR Lake
BigQuery Dataset
Query historical data with SQL