# Fonts Google — 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 thousands of free, open-source fonts with advanced filtering and sorting options to find the perfect typeface for your project. Access detailed metadata for each font including style variants, character sets, and design specifications.

**Category:** Developer Tools | **Website:** [fonts.google.com/?lang=en_Latn](https://fonts.google.com/?lang=en_Latn) | **Docs:** [parse.bot/marketplace/2a6cfc01-3201-4d43-bd33-b211896bad8c/fonts-google-com-api](https://parse.bot/marketplace/2a6cfc01-3201-4d43-bd33-b211896bad8c/fonts-google-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-fonts-google-com-api-2a6cfc01/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_font_details

Get detailed metadata for a specific font family including all variants, variable font axes, classifications, designers, and more. Returns the full record for one font identified by its family name. Case-insensitive lookup; returns stale_input with kind input_not_found if the family does not exist in the catalog.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `family` | string | Yes | Font family name (e.g., 'Roboto', 'Open Sans'). Case-insensitive. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-fonts-google-com-api-2a6cfc01/get_font_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"family":"<string>"}'
```

### search_fonts

Search and filter Google Fonts by name, category, subset, with sorting options. Returns a paginated list of font families matching the criteria. Supports filtering by category (sans-serif, serif, display, handwriting, monospace), language/script subset, and partial family-name matching. Results are sorted server-side before the limit is applied; the total count reflects all matches pre-limit.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category` | string | No | Filter by font category. Empty string returns all categories. |
| `limit` | integer | No | Maximum number of results to return. |
| `query` | string | No | Search query to match against font family names (case-insensitive partial match). |
| `sort` | string | No | Sort order for results. |
| `subset` | string | No | Filter by language/script subset (e.g., latin, cyrillic, greek, japanese, arabic). Empty string returns all subsets. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-fonts-google-com-api-2a6cfc01/search_fonts \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category":"<string>","limit":"<integer>","query":"<string>","sort":"<string>","subset":"<string>"}'
```
