There is a public API server that allows developers to access the Avalanche network without having to run a node themselves. The public API server is actually several AvalancheGo nodes behind a load balancer to ensure high availability and high request throughput.
Usage of public API nodes is free and available to everyone without any authentication or authorization. Rate limiting is present, but many of the API calls are cached, and the rate limits are quite high. If your application is running up against the limits, please contact us.
Using the Public API nodes
The public API server is at
https://api.avax.network/ for Avalanche Mainnet and
https://api.avax-test.network/ for Avalanche Testnet. To access a particular API, just append the relevant API endpoint, as documented here. Namely, use the following endpoints for each chain respectively:
For C-Chain API, the URL is
For X-Chain API, the URL is
For P-Chain API, the URL is
The public API server supports all the API endpoints that make sense to be available on a public-facing service, including APIs for the X-Chain, P-Chain, and C-Chain. For a full list of available APIs see here.