# 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. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-sketchfab-com-api-f5d12913/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## 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/parse-sketchfab-com-api-f5d12913/get_collection_models \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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/parse-sketchfab-com-api-f5d12913/get_collections \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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/parse-sketchfab-com-api-f5d12913/get_licenses \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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/parse-sketchfab-com-api-f5d12913/get_model \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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/parse-sketchfab-com-api-f5d12913/get_model_3d_options \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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/parse-sketchfab-com-api-f5d12913/get_model_comments \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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/parse-sketchfab-com-api-f5d12913/get_model_thumbnails \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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/parse-sketchfab-com-api-f5d12913/get_user_models \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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/parse-sketchfab-com-api-f5d12913/get_user_profile \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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/parse-sketchfab-com-api-f5d12913/list_categories \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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/parse-sketchfab-com-api-f5d12913/list_tags \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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/parse-sketchfab-com-api-f5d12913/search_models \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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>"}'
```
