API3 API

Decentralized APIs for Web3 applications

What is API3?

API3 is a decentralized oracle network that provides secure, reliable off-chain data to smart contracts. Unlike traditional oracles, API3 uses first-party oracles operated by API providers themselves, reducing middleman risk.

API3 Airnode

  • First-Party Oracles - Data providers operate their own nodes
  • No Middleman - Direct connection between APIs and smart contracts
  • Gas-Efficient - Optimized for minimal on-chain costs
  • Quantified Security - Transparent security parameters
  • Easy Integration - Simple smart contract interfaces

Using API3 Data Feeds

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@api3/contracts/api3-server-v1.sol";

contract MyContract {
    Api3ServerV1 public api3Server;
    
    function readDataFeed(address _feed) public view returns (
        int256 value,
        uint256 timestamp
    ) {
        (value, timestamp) = api3Server.readDataFeed(_feed);
    }
}

Available Data Feeds

  • Price Feeds - Crypto, forex, commodities
  • Asset Prices - Stocks, ETFs
  • Reference Rates - Benchmark rates
  • Custom Feeds - Request custom data sources

Build with API3

Get decentralized, first-party oracle data for your smart contracts.

API3 → Docs →