# Sketchfab — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://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 browse 3D models on Sketchfab, including filtering by category, license, animation, and downloadability. Retrieve detailed model metadata, creator profiles, collections, thumbnails, tags, and viewer configuration options.

**Category:** Marketplaces | **Website:** [sketchfab.com/](https://sketchfab.com/) | **Docs:** [parse.bot/marketplace/f5d12913-557f-4780-b7c2-e5864bfc5cd9/sketchfab-com-api](https://parse.bot/marketplace/f5d12913-557f-4780-b7c2-e5864bfc5cd9/sketchfab-com-api)

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

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/sketchfab/`
**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 collection models

List models within a specific Sketchfab collection. Returns paginated results with cursor-based pagination.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `cursor` | string | No | Pagination cursor from a previous response's next_cursor value. |
| `limit` | integer | No | Number of results per page. |
| `uid` | string | Yes | Collection UID from get_collections results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/sketchfab/get-collection-models \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"cursor":"<string>","limit":"<integer>","uid":"<string>"}'
```

### Get collections

List collections created by a Sketchfab user. Returns paginated results with cursor-based pagination.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `cursor` | string | No | Pagination cursor from a previous response's next_cursor value. |
| `limit` | integer | No | Number of results per page. |
| `username` | string | Yes | Username of the user whose collections to list. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/sketchfab/get-collections \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"cursor":"<string>","limit":"<integer>","username":"<string>"}'
```

### Get licenses

List all available license types on Sketchfab. Returns license slugs usable as filter values in search_models.

**Estimated cost:** Metered

_No parameters required._

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

### Get model

Get detailed metadata for a specific 3D model by its UID, including geometry stats, tags, categories, license, thumbnails, and creator information.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `uid` | string | Yes | Model UID (32-character alphanumeric string identifier). |

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

### Get model 3d options

Get 3D viewer configuration options for a model including scene settings, lighting, shading, camera, materials, and environment. The response schema varies per model as some fields are optional.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `uid` | string | Yes | Model UID. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/sketchfab/get-model-3d-options \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"uid":"<string>"}'
```

### Get model comments

Get comments for a specific 3D model. Returns paginated results sorted by creation date descending.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `cursor` | string | No | Pagination cursor from a previous response's next_cursor value. |
| `limit` | integer | No | Number of comments per page. |
| `sort_by` | string | No | Sort order for comments: '-createdAt'. |
| `uid` | string | Yes | Model UID to retrieve comments for. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/sketchfab/get-model-comments \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"cursor":"<string>","limit":"<integer>","sort_by":"<string>","uid":"<string>"}'
```

### Get model thumbnails

Get all thumbnail images for a model at various resolutions.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `uid` | string | Yes | Model UID. |

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

### Get user models

List models uploaded by a specific Sketchfab user. Returns paginated results with cursor-based pagination.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `cursor` | string | No | Pagination cursor from a previous response's next_cursor value. |
| `limit` | integer | No | Number of results per page. |
| `username` | string | Yes | Username of the user whose models to list. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/sketchfab/get-user-models \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"cursor":"<string>","limit":"<integer>","username":"<string>"}'
```

### Get user profile

Get the public profile for a Sketchfab user by their username or UID. Returns biography, skills, follower count, model count, and avatar.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `uid_or_username` | string | Yes | User UID (32-character hex string) or username string. |

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

### List categories

List all available 3D model categories on Sketchfab. Returns the complete list of categories with slugs usable as filter values in search_models.

**Estimated cost:** Metered

_No parameters required._

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

### List tags

List tags on Sketchfab ordered by most recently created. Returns paginated results with cursor-based pagination.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `cursor` | string | No | Pagination cursor from a previous response's next_cursor value. |
| `limit` | integer | No | Number of results per page. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/sketchfab/list-tags \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"cursor":"<string>","limit":"<integer>"}'
```

### Search models

Search for 3D models on Sketchfab with filters including category, license, animation, staff picks, and downloadability. Returns paginated results via cursor-based pagination. Without a query, returns all models in default order.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `animated` | boolean | No | Filter for animated models only. |
| `categories` | string | No | Filter by category slug. |
| `cursor` | string | No | Pagination cursor from a previous response's next_cursor value. |
| `downloadable` | boolean | No | Filter for downloadable models only. |
| `license` | string | No | Filter by license slug. |
| `limit` | integer | No | Number of results per page (max 24). |
| `query` | string | No | Search keyword to filter models by name or description. |
| `sort_by` | string | No | Sort order for results. |
| `staffpicked` | boolean | No | Filter for staff-picked models only. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/sketchfab/search-models \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"animated":"<boolean>","categories":"<string>","cursor":"<string>","downloadable":"<boolean>","license":"<string>","limit":"<integer>","query":"<string>","sort_by":"<string>","staffpicked":"<boolean>"}'
```

## Next steps

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