Catalog / 21st.dev Community Components

21st.dev Community Components API

21st.dev

Read-only live access to recommended community components listed by 21st.dev. Filtering uses the site's public demos.list JSON endpoint; multiple tag slugs use the source's matching behavior. Results include the installation command rendered by the component detail UI.

  • Other
  • components
  • ui
  • developer-tools
  • 21st.dev
1 endpointDocs updated

Endpoint health

Loading verification…

ComponentsLoading

Connect your agent

Connect through MCP so your agent can find this API, read its docs, and call its endpoints.

Setup guide

Add the server from your terminal.

Claude Code · terminal
claude mcp add --transport http agent-data https://agent-data.motie.dev/mcp

In Claude Code, run /mcp, select agent-data, then Authenticate. Sign in to your agent-data account in the browser.

Then ask your agent to use the 21st.dev Community Components API for your task.

Call it over HTTP

Get an API key

Sign up free, generate an API key, and set it as AGENT_DATA_API_KEY in your environment. Your first 100 calls each month are free.

Lists live recommended components matching any of the supplied 21st.dev tag slugs. The limit is clamped to 1–200. Omit tag_slugs to use the input and prompt-oriented defaults from the request.

Optional parameters 2

Maximum number of components to return; values are clamped to 1–200.

Comma-separated 21st.dev tag slugs. Blank values are ignored.

View call pricing
cURL · Components
curl --request GET --get 'https://3kpkg0jfvk.execute-api.us-east-2.amazonaws.com/prod/34959010-5ff3-410f-ac64-4e2136cbd489/v1/components' \
  --header "Authorization: Bearer $AGENT_DATA_API_KEY"

Endpoints

Inputs and response fields for every endpoint in this API.

GETComponents/v1/components

Lists live recommended components matching any of the supplied 21st.dev tag slugs. The limit is clamped to 1–200. Omit tag_slugs to use the input and prompt-oriented defaults from the request.

Input

limitOptionalQuery · integer, default: 50

Maximum number of components to return; values are clamped to 1–200.

Example: 50

tag_slugsOptionalQuery · string | null

Comma-separated 21st.dev tag slugs. Blank values are ignored.

Example: input,search-bar,search-input,prompt,prompt-input,ai-chat-input,chat-input

Response

has_moreboolean
tag_slugsstring[]
componentsobject[]
components[].authorstring
components[].descriptionstring | null
components[].component_urlstring
components[].component_namestring
components[].install_commandstring
total_countinteger

Don’t see the endpoint you need?

Ask agent-data to add an endpoint or return more fields. Extensions are free and keep existing endpoints working.