Show API usage or code examples with syntax highlighting. Built for developer-facing products that need to demonstrate integration simplicity.
When to use
Developer product with an API or SDK. Show how easy it is to integrate.
When to skip
Non-technical audience, or product has no code interface.
Variant 1 of 2
Single code block or request/response pair. Clean and focused.
Code Sample / default
Generate pages programmatically with our REST API.
curl -X POST https://api.piratepage.cc/generate \
-H "Authorization: Bearer $API_KEY" \
-d '{"productName": "Acme", "whatItIs": "Analytics platform"}'{
"id": "page_abc123",
"sections": [
{ "type": "hero", "content": { "headline": "..." } },
{ "type": "features-grid", "content": { ... } }
]
}Variant 2 of 2
Multi-language switching. Show the same integration in Node.js, Python, cURL, etc.
Code Sample / tabs
import { PiratePage } from 'piratepage';
const page = await PiratePage.generate({
productName: "Acme",
whatItIs: "Analytics for startups",
});
console.log(page.sections);