# Openclipart — 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 discover clipart from OpenClipart, explore collections by tag, and retrieve detailed metadata including artist profiles, engagement metrics, and download URLs. Also exposes site-wide statistics such as total clipart count, artist count, and recent upload activity.

**Category:** Other | **Website:** [openclipart.org/](https://openclipart.org/) | **Docs:** [parse.bot/marketplace/f99942f8-1423-411a-8b1a-8b039fb63e39/openclipart-org-api](https://parse.bot/marketplace/f99942f8-1423-411a-8b1a-8b039fb63e39/openclipart-org-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-openclipart-org-api-f99942f8/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_api_version

Get official API version information from the openclipart.org API endpoint. Returns service name, version string, and status. Useful for verifying connectivity.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-openclipart-org-api-f99942f8/get_api_version \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_artist_profile

Get artist profile statistics and their latest uploaded clipart items. Returns contribution count, total loves received, membership year, and recent uploads. The username can be discovered from clipart detail results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `username` | string | Yes | Artist username (e.g. 'j4p4n', 'AreYouPrepared'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-openclipart-org-api-f99942f8/get_artist_profile \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"username":"<string>"}'
```

### get_clipart_by_tag

Get clipart items associated with a specific tag. Returns paginated results identical in structure to search_clipart but filtered by exact tag. Each page contains up to 32 items.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination. |
| `tag` | string | Yes | Tag to filter by (e.g. 'animal', 'flower', 'car'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-openclipart-org-api-f99942f8/get_clipart_by_tag \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","tag":"<string>"}'
```

### get_clipart_detail

Get full details for a specific clipart item including engagement metrics (love count), tags, author, upload date, and download URLs. The id can be obtained from search_clipart or get_clipart_by_tag results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `id` | string | Yes | Clipart item ID (numeric string, e.g. '355641'). Obtainable from search_clipart or get_clipart_by_tag results. |
| `slug` | string | No | URL slug for the clipart item. Used for URL construction but not required for lookup. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-openclipart-org-api-f99942f8/get_clipart_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"id":"<string>","slug":"<string>"}'
```

### get_engagement_stats

Extract site-wide statistics and recent artist activity from the homepage and Atom feed. Returns total clipart count, total artist count, daily activity metrics, and the latest uploads from the feed. No parameters required; useful for monitoring site health and activity levels.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-openclipart-org-api-f99942f8/get_engagement_stats \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_random_clipart

Retrieve full details for a randomly selected clipart item. Fetches the random page and returns complete detail for one item selected at random. Each call returns a different item.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-openclipart-org-api-f99942f8/get_random_clipart \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### search_clipart

Search for clipart items by keyword using tag-based matching. Returns paginated results with metadata including thumbnails and detail URLs. Results are ordered by recency. Each page contains up to 32 items.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination. |
| `query` | string | Yes | Search keyword matched against tags (e.g. 'cat', 'nature', 'flower'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-openclipart-org-api-f99942f8/search_clipart \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","query":"<string>"}'
```
