API Reference

Technical documentation for Lyraverse API endpoints and integration.

Base URL

https://api.lyraverse.io

Authentication

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 address

  • limit (number): Results per page (default: 20, max: 100)

  • offset (number): Pagination offset

  • sortBy (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 collection

  • minPrice (string): Minimum price in wei

  • maxPrice (string): Maximum price in wei

  • traits (array): Filter by traits

  • limit (number): Results per page

  • offset (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

Query Parameters:

  • q (string, required): Search term

  • type (string): Filter by type (collection, nft, user)

  • limit (number): Results per page

Error Handling

Standard Error Response

Common Error Codes

  • VALIDATION_ERROR: Invalid request parameters

  • NOT_FOUND: Resource not found

  • RATE_LIMITED: Too many requests

  • SERVER_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 limit and offset for pagination

  • Cache 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