# Rhythmverse — 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 rhythm game songs across RhythmVerse by filtering through instruments, genres, and artists to find the perfect charts and stems for your gameplay. Browse available songfiles with detailed filtering options to quickly locate tracks that match your musical preferences and skill level.

**Category:** Music | **Website:** [rhythmverse.co/songfiles/game](https://rhythmverse.co/songfiles/game) | **Docs:** [parse.bot/marketplace/0ccbc24e-bd4e-4f6b-9795-c328eead4a8f/rhythmverse-co-api](https://parse.bot/marketplace/0ccbc24e-bd4e-4f6b-9795-c328eead4a8f/rhythmverse-co-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/rhythmverse/`
**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 filters

Retrieve all available filter options for browsing song files. Returns genres, instruments, audio types, song length ranges, content ratings, game sources, and supported game formats. Use these codes as values for the instrument and genre parameters in search_songfiles.

**Estimated cost:** Metered

_No parameters required._

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

### Search songfiles

Search and filter rhythm game song files. Supports text search across song titles and artists, combined with instrument/genre/artist filters. Returns paginated results sorted by update date or other fields. Each result includes difficulty ratings per instrument, game format, and download page links. The instrument filter narrows to files that include a charted part for that instrument (e.g. guitar returns only songs with guitar charts). Difficulty values range from 0 (not charted) to 7 (devil-tier).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `artist` | string | No | Filter by artist slug (lowercase, hyphenated, e.g. 'linkin-park'). Only works when query is not provided. |
| `genre` | string | No | Filter by genre code. Use codes from get_filters genres list. |
| `instrument` | string | No | Filter by instrument. Use codes from get_filters instruments list. |
| `page` | integer | No | Page number (1-indexed). |
| `query` | string | No | Text search query matching song titles and artists. When provided, the search/live endpoint is used. |
| `records` | integer | No | Number of results per page (max 25). |
| `sort_by` | string | No | Field to sort by. Common values: update_date, release_date, downloads, title, artist. |
| `sort_order` | string | No | Sort direction. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/rhythmverse/search-songfiles \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"artist":"<string>","genre":"<string>","instrument":"<string>","page":"<integer>","query":"<string>","records":"<integer>","sort_by":"<string>","sort_order":"<string>"}'
```

## 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.