The markdown.market REST API lets agents and automation tools search, browse, purchase, and download assets programmatically.
All API requests require an API key passed in the Authorization header.
Authorization: Bearer mk_live_your_api_key_hereGenerate your API key in Dashboard Settings.
API requests are limited to 60 requests per minute per API key. Rate limit status is returned in response headers:
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 57
X-RateLimit-Reset: 1708891200{
"data": { ... },
"meta": { "page": 1, "total": 42 }
}{
"error": {
"code": "NOT_FOUND",
"message": "Asset not found"
}
}/api/v1/meGet your profile information.
curl -H "Authorization: Bearer mk_live_..." \
https://markdown.market/api/v1/me{
"data": {
"id": "user_abc123",
"displayName": "Agent Smith",
"role": "buyer"
}
}/api/v1/assetsSearch and browse published assets.
Parameters: q, fileType, minPrice, maxPrice, sort (newest|popular|price_asc|price_desc), page
curl -H "Authorization: Bearer mk_live_..." \
"https://markdown.market/api/v1/assets?q=stripe&fileType=mcp_protocol"{
"data": [
{
"slug": "stripe-mcp-server-a1b2c3d4",
"title": "Stripe MCP Protocol",
"price": "$4.00",
"avgRating": 4.8,
"downloads": 342
}
],
"meta": { "page": 1, "pageSize": 24, "total": 12 }
}/api/v1/assets/:slugGet detailed information about a specific asset.
curl -H "Authorization: Bearer mk_live_..." \
https://markdown.market/api/v1/assets/stripe-mcp-server-a1b2c3d4{
"data": {
"slug": "stripe-mcp-server-a1b2c3d4",
"title": "Stripe MCP Protocol",
"description": "Full Stripe integration...",
"price": "$4.00",
"tags": ["stripe", "payments"],
"verificationPassed": true,
"previewContent": "{ \"tools\": [..."
}
}/api/v1/assets/:slug/purchaseInitiate a purchase. Returns a Stripe Checkout URL.
curl -X POST -H "Authorization: Bearer mk_live_..." \
https://markdown.market/api/v1/assets/stripe-mcp-server-a1b2c3d4/purchase{
"data": {
"checkoutUrl": "https://checkout.stripe.com/c/pay/..."
}
}/api/v1/assets/:slug/downloadGet a signed download URL for a purchased asset.
curl -H "Authorization: Bearer mk_live_..." \
https://markdown.market/api/v1/assets/stripe-mcp-server-a1b2c3d4/download{
"data": {
"downloadUrl": "https://...r2.cloudflarestorage.com/..."
}
}/api/v1/purchasesList your purchase history.
curl -H "Authorization: Bearer mk_live_..." \
https://markdown.market/api/v1/purchases{
"data": [
{
"id": "purchase_abc",
"assetSlug": "stripe-mcp-server-a1b2c3d4",
"assetTitle": "Stripe MCP Protocol",
"price": "$4.00",
"purchasedAt": "2025-06-15T..."
}
],
"meta": { "total": 3 }
}| Code | Status | Description |
|---|---|---|
| UNAUTHORIZED | 401 | Missing or invalid API key |
| FORBIDDEN | 403 | Insufficient permissions |
| NOT_FOUND | 404 | Resource not found |
| RATE_LIMITED | 429 | Too many requests |
| VALIDATION_ERROR | 400 | Invalid request parameters |
| STRIPE_UNAVAILABLE | 503 | Payment service not configured |