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
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.
Exchange your key for a Bearer token
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"}'Use the returned token on all API calls
Bearer tokens expire after 30 days — re-authenticate to get a fresh one.
Quick Example
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.
{
"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