API Reference
Technical documentation for Lyraverse API endpoints and integration.
Base URL
https://api.lyraverse.ioAuthentication
No Authentication Required
Most endpoints are public and don't require authentication.
Rate Limiting
100 requests per minute per IP
1000 requests per hour per IP
Headers included in responses:
X-RateLimit-Limit: 100 X-RateLimit-Remaining: 95 X-RateLimit-Reset: 1638360000
Collections API
Get All Collections
Query Parameters:
limit(number): Number of results (default: 50, max: 1000)offset(number): Pagination offset (default: 0)sortBy(string): Sort field (volume30d, mintedSupply, createdAt)sortOrder(string): Sort order (asc, desc)search(string): Search term for collection names
Response:
Get Collection by Address
Response: Single collection object (same format as above)
Get Collection Phases
Response:
NFTs API
Get NFTs by Collection
Query Parameters:
collection(string, required): Collection contract addresslimit(number): Results per page (default: 20, max: 100)offset(number): Pagination offsetsortBy(string): Sort field (tokenId, price)sortOrder(string): Sort order (asc, desc)
Get NFT Details
Response:
Marketplace API
Get Listed NFTs
Query Parameters:
collection(string): Filter by collectionminPrice(string): Minimum price in weimaxPrice(string): Maximum price in weitraits(array): Filter by traitslimit(number): Results per pageoffset(number): Pagination offset
Get NFT Listing
Transactions API
Get NFT History
Response:
Offers API
Get NFT Offers
Create Offer (POST)
User API
Get User Profile
Get User NFTs
Get User Collections
Analytics API
Collection Stats
Response:
Search API
Global Search
Query Parameters:
q(string, required): Search termtype(string): Filter by type (collection, nft, user)limit(number): Results per page
Error Handling
Standard Error Response
Common Error Codes
VALIDATION_ERROR: Invalid request parametersNOT_FOUND: Resource not foundRATE_LIMITED: Too many requestsSERVER_ERROR: Internal server error
Rate Limiting Headers
All responses include rate limiting information:
SDK and Libraries
JavaScript SDK
Webhooks
Subscribe to real-time events:
NFT sales
New listings
Price changes
Collection updates
Best Practices
Efficient API Usage
Use appropriate
limitandoffsetfor paginationCache responses when possible
Implement exponential backoff for retries
Monitor rate limits
Error Handling
Support
API Issues: [email protected]
Rate Limiting: Contact for increased limits
Integration Help: Developer documentation
Bug Reports: GitHub issues
Happy building with Lyraverse API! 🚀
Last updated
