spotlight.list
GET/spotlight
What the home page spotlights right now in one language: courses, featured pieces, referral programs and other links, in display order, at most six. With kind, only that kind, at most 24. No key needed.
Parameters
| Parameter | In | Description |
|---|---|---|
locale | query | Required. vi or en. |
kind | query | Optional. course, article, referral or link. For example referral for every live partner offer. |
Request
curl "https://api.modernengineer.dev/spotlight?locale=vi"Response
{
"items": [
{
"id": "0b5c…",
"kind": "article",
"title": "Bắt đầu với Claude Code và ClaudeKit",
"href": "/vi/library/claudekit-beginners-guide",
"blurb": null,
"badge": "Mới",
"readingMinutes": 22,
"external": false,
"price": null
},
{
"id": "7e21…",
"kind": "referral",
"title": "…",
"href": "https://…",
"blurb": "…",
"badge": "-20%",
"readingMinutes": null,
"external": true,
"price": {
"amount": 99,
"listAmount": null,
"currency": "USD",
"percentOff": 20,
"amountOff": null,
"discountedAmount": 79.2,
"tiers": []
}
}
]
}Errors
| Status | Error | When |
|---|---|---|
| 400 | invalid_input | A parameter is missing or invalid, for example a locale other than vi or en. |