cURL
curl "https://api.particle.pro/v1/embed/episodes/{episode_id}/code?theme=light&size=regular"{
"embed_html": "<string>",
"script_url": "<string>",
"variant": "clip"
}{
"detail": "Property foo is required but is missing.",
"error_code": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"resolve": {
"message": "<string>",
"action": "<string>",
"endpoint": "<string>",
"method": "<string>",
"url": "<string>"
},
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Embed
Get episode embed code
Returns a paste-ready <particle-podcast-clip> HTML snippet for an existing clip or a custom timestamp range within an episode. Either clip_id or start (with optional end) must be supplied; the two modes are mutually exclusive.
For slices: when end is omitted, it defaults to start + 120 seconds. The embed widget caps slice length at 120 seconds, so any end value beyond start + 120s is silently clamped to start + 120s. End is also clamped to the episode duration. The actual range used is encoded in the returned script_url.
GET
/
v1
/
embed
/
episodes
/
{episode_id}
/
code
cURL
curl "https://api.particle.pro/v1/embed/episodes/{episode_id}/code?theme=light&size=regular"{
"embed_html": "<string>",
"script_url": "<string>",
"variant": "clip"
}{
"detail": "Property foo is required but is missing.",
"error_code": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"resolve": {
"message": "<string>",
"action": "<string>",
"endpoint": "<string>",
"method": "<string>",
"url": "<string>"
},
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Path Parameters
Episode slug or ID
Query Parameters
Clip ID. Mutually exclusive with start/end.
Slice start in seconds. Mutually exclusive with clip_id.
Required range:
x >= 0Slice end in seconds. Optional: when omitted, defaults to start + 120s. The widget caps slices at 120s, so end values further than 120s past start are silently clamped to start + 120s.
Required range:
x >= 0Widget theme
Available options:
light, dark, color-light, color-dark Widget size
Available options:
regular, compact Was this page helpful?