# Shadcnregistry — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Search and discover shadcn/ui components across multiple registries. View detailed component information including source code and installation commands, browse component types and creators, bulk retrieve entire component collections, or inspect external registries by URL.

**Category:** Developer Tools | **Website:** [shadcnregistry.com/](https://shadcnregistry.com/) | **Docs:** [parse.bot/marketplace/316999b1-80fd-4333-b501-cf6f8a734600/shadcnregistry-com-api](https://parse.bot/marketplace/316999b1-80fd-4333-b501-cf6f8a734600/shadcnregistry-com-api)

Pay-per-use API proxy for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/credits/shadcnregistry/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## Endpoints

### Get all component types

Retrieve the complete list of component types used across all registries. These types can be passed as the type filter in search_components.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/shadcnregistry/get-all-component-types \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Get all components bulk

Bulk collect full data for all components across registries. This endpoint iterates through all registries and fetches every component's detail. Use with caution.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Max number of registries to process |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/shadcnregistry/get-all-components-bulk \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>"}'
```

### Get all registries

Retrieve all listed shadcn/ui registries from the homepage. Each registry includes name, slug, description, item count, and thumbnail URL. No pagination — the full catalog is returned in a single response.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/shadcnregistry/get-all-registries \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Get component detail

Retrieve full component details including description, install command, source files with content, npm dependencies, and registry dependencies. The component_id is in @namespace/name format (obtainable from get_registry_detail or search_components).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `component_id` | string | Yes | Component ID in @namespace/name format (e.g. '@8bitcn/accordion', '@kokonutui/button') |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/shadcnregistry/get-component-detail \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"component_id":"<string>"}'
```

### Get creators

List all creators producing shadcn/ui related content. Returns creator names and their social links (GitHub, YouTube, X/Twitter).

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/shadcnregistry/get-creators \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Get registry detail

Retrieve registry metadata and the full list of its components by slug. Each component summary includes id, name, and namespace. The component id is in @namespace/name format suitable for use with get_component_detail.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `slug` | string | Yes | Registry slug identifying the registry (e.g. '8bitcn', 'animate-ui', 'aceternity', 'kokonutui', 'magicui') |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/shadcnregistry/get-registry-detail \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"slug":"<string>"}'
```

### Inspect external registry

Fetch and parse an external shadcn/ui registry JSON file by URL. Returns structured metadata including component name, type, description, dependencies, and file contents with source code. The URL should point to a valid shadcn/ui registry JSON endpoint.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | Yes | Full URL to a shadcn/ui registry JSON file (e.g. 'https://8bitcn.com/r/accordion.json', 'https://kokonutui.com/r/switch-button.json') |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/shadcnregistry/inspect-external-registry \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"url":"<string>"}'
```

### Search components

Full-text search for components by keyword across all registries. Optionally filter by component type. Returns matching components with metadata including id, name, description, type, namespace, and source URL.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search keyword to match against component names and descriptions |
| `type` | string | No | Component type filter. Accepted values: 'lib', 'block', 'component', 'ui', 'hook', 'page', 'file', 'theme', 'style' |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/shadcnregistry/search-components \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>","type":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://beta.paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://beta.paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://beta.paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://beta.paywithlocus.com/agent/index.md): every Locus agent page.