Moonborn — API · marketplace
Fetch a listing detail (description + moderation flags for owners)
GET/v1/marketplace/listings/{id}scope · Bearer (API key or session JWT)
Path parameters
| Field | Type | Description |
|---|---|---|
| idreq | string | Listing id (e.g. `lst_*`). |
Responses
200OK
Body
| Field | Type | Description |
|---|---|---|
| listingIdreq | string | |
| slugreq | string | |
| orgIdreq | string | |
| personaIdreq | string | |
| titlereq | string | |
| summaryreq | string | |
| licensereq | string · "cc_by" | "cc_by_sa" | "cc_by_nc" | "cc_by_nd" | "commercial" | "proprietary" | |
| priceUsdMicrosreq | number | |
| statusreq | string · "draft" | "in_review" | "published" | "unpublished" | "removed" | |
| ratingsAvgreq | number | |
| ratingsCountreq | number | |
| installsreq | number | |
| forksreq | number | |
| tagsreq | string[] | |
| publishedAtreq | string | |
| updatedAtreq | string | |
| descriptionreq | string | |
| moderationFlags | string[] |
401Unauthenticated
Body
| Field | Type | Description |
|---|---|---|
| errorreq | object | |
| error.codereq | string | |
| error.messagereq | string |
404Listing not found / not visible
Body
| Field | Type | Description |
|---|---|---|
| errorreq | object | |
| error.codereq | string | |
| error.messagereq | string |
Examples
cURL
curl -X GET https://api.moonborn.co/v1/marketplace/listings/<id> \ -H "Authorization: Bearer $MOONBORN_API_KEY"
TypeScript
import Moonborn from '@moonborn/sdk';
const client = new Moonborn({ apiKey: process.env.MOONBORN_API_KEY });
const result = await client.marketplace.getListing({
id: '<id>',
});Python
import os
from moonborn import Moonborn
client = Moonborn(api_key=os.environ["MOONBORN_API_KEY"])
result = client.marketplace.get_listing(
id="<id>",
)