🐾推荐 FEATURED·PurrCat

Guide - 5 min

Embed an AgentPets pet on a website

Add an animated pet widget to a docs page, product launch, or creator profile with a public embed URL.

1

Use the embed route

The public embed page renders a focused pet card that can be placed in an iframe.

<iframe src="https://agentpets.dev/embed/boba" width="320" height="420" title="Boba on AgentPets"></iframe>
2

Keep the canonical link nearby

Embeds are great for product pages, but the canonical pet page should stay the destination for install commands and attribution.

3

Use the API for custom UI

If you need native styling, fetch /api/v1/pets/{slug} and render the sprite, install command, and creator credit yourself.

Useful API surfaces

Public API, badges, and embeds are versioned under stable URLs so README snippets and integrations can keep working as the product evolves.