# Openclipart — 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 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 for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/credits/openclipart/`
**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 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.beta.paywithlocus.com/api/wrapped/credits/openclipart/get-api-version \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/openclipart/get-artist-profile \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/openclipart/get-clipart-by-tag \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/openclipart/get-clipart-detail \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/openclipart/get-engagement-stats \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/openclipart/get-random-clipart \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/openclipart/search-clipart \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","query":"<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.