The base url for our API endpoints is https://base.org/api/registry/. The use of Onchain Registry API is governed by the license terms outlined in our Terms & Conditions.
Instructions
- Users of this API can use the
/entriesand/featuredendpoints to display Onchain Registry entries on their own surfaces - If your team would like to use referral codes to point your users to entries, we recommend appending your referral code to the link provided in the
target_urlfield - If your team would like to filter entries based on where they are hosted or by creator, we recommend implementing logic based on the
target_urlandcreator_namefields
Endpoints
GET /entries
This endpoint will display all Onchain Registry entries subject to any query parameters set belowQuery Parameters
| Name | Type | Description |
|---|---|---|
| page | number | The page number (default 1) |
| limit | number | The number of entries per page (default 10) |
| category | array | The category or categories of the entries of interest (Options: Games, Social, Creators, Finance, Media) |
| curation | string | The entry’s level of curation (Options: Featured, Curated, Community) |
Response
JSON
GET /featured
This endpoint will display a single Onchain Registry entry that is being actively featuredResponse
JSON
Entry Schema
| Name | Type | Description |
|---|---|---|
| id | string | Unique entry ID |
| category | string | The category of the entry (Options: Games, Social, Creators, Finance, Media) |
| title | string | The title of the entry |
| short_description | string | Short version of the entry description (max 30 char) |
| full_description | string | Full version of the entry description (max 200 char) |
| image_url | string | URL of the entry’s featured image |
| target_url | string | URL for the entry’s desired user action |
| cta_text | string | This is the type of user action for the entry (Options: Play, Mint, Buy, Trade, Explore) |
| function_signature | string | The function signature associated with the desired user action on the entry’s contract |
| contract_address | string | The contract address associated with the entry |
| token_id | string | The token ID if this is an ERC-1155 |
| token_amount | string | The price of the entry’s desired user action |
| featured | boolean | A true or false based on whether the entry is actively featured |
| creator_name | string | The name of the entry’s creator |
| creator_image_url | string | The logo of the entry’s creator |
| curation | string | The entry’s level of curation Options:
|
| start_ts | string | The UTC timestamp that the entry is open to users |
| expiration_ts | string | The UTC timestamp that the entry is no longer open to users |
| updated_at | string || null | The UTC timestamp that the entry was last updated (null if the entry has not been updated since creation) |
| created_at | string | The UTC timestamp that the entry was created |