API Reference

Personalize your application by making benefits available to your users and their specific wallet address. This endpoint includes all benefits gathered from sources coming from Official, Third Party and Community Sources.

Examples

Retrieve benefits for a certain Wallet and certain collection:
Request:

GET https://www.themiracle.io/api/v1/wallet/ethereum/0xB1355446Ca119B5886246C05ee3961613E4D9C6E/benefits ?limit=20 &offset=0 &benefit=play &category=Game Integration &collection=Naka &validFrom=2023-01-01 &validTo=2024-12-01 &contract=0xd774557b647330c91bf44cfeab205095f7e6c367 &contractSlug=nakamigos &expired=0

Explanation:
Parameters Breakdown:

  • limit=20: Return up to 20 benefits.
  • offset=0: Start from the first result.
  • benefit=play: Search for benefits containing "play".
  • category=Game Integration: Filter by the "Game Integration" category.
  • collection=Naka: Filter benefits for the "Naka" collection.
  • validFrom=2023-01-01 and validTo=2024-12-01: Date range filter.
  • contract=0xd774557b647330c91bf44cfeab205095f7e6c367: Filter by specific NFT contract.
  • contractSlug=nakamigos: Filter by contract slug.
  • expired=0: Exclude expired benefits.
Log in to see full request history
Query Params
string

Filter by NFT contract address

collections
array of strings

The collection name. An Array of Collections Names which can take part in this benefit.

collections
string

For EVM collection the contractSlug is the same as on Opensea. For Solana and Ordinals you can find the Slug on MagicEden.

int32

0 excludes expired benefits, 1 includes expired benefits

string

Order of the items are returned in the response. Options are: validFrom, validTo, name

string

Allowed values: ASC or DESC

int32
Defaults to 20

Amount of items returned in response. Default and max limit is 20

string

Search for benefits that match a string in their longtitle. Example: airdrop

string

The category identifier. Supported category filters can be found under the "Supported Category Filters" tab.

string

Filter by valid from date

string

Filter by valid to date

int32
Defaults to 0

Use continuation token to request next offset of items.

Responses

Language
Credentials
Request