Getting Started

The ApeChain NFT API provides real-time access to NFT data on ApeChain. An account is required — create one at apechain.oswiki.xyz to get your API key.

Base URL

https://api.oswiki.xyz/apechain

Authentication

Authentication is a two-step process. First exchange your client key for a Bearer token, then use that token on all API calls. Tokens expire after 30 days.

1

Exchange your key for a Bearer token

POST/api/auth/login
curl https://api.oswiki.xyz/apechain/api/auth/login \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{"email": "[email protected]", "client_key": "your-client-key"}'
2

Use the returned token on all API calls

Authorization: Bearer <token>
3

Bearer tokens expire after 30 days — re-authenticate to get a fresh one.

Quick Example

GET/collections
curl https://api.oswiki.xyz/apechain/api/collections \
  -H "Authorization: Bearer YOUR_BEARER_TOKEN"

Response Format

All responses are JSON with a success boolean. List responses include next_cursor and has_more for pagination. Errors include an error string.

Response
{
  "success": true,
  "data": [ ... ],
  "next_cursor": "eyJpZCI6MTIzfQ==",
  "has_more": true
}

Capabilities

Collections & NFTs

Browse collections, query tokens, filter by attributes

Real-time Activity

Sales and transfers as they happen on-chain

Batch Requests

Query up to 10 wallets or collections in one call

Interactive Docs

Try endpoints directly in the API Reference

Explore API Reference