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

> Access data from ifixit.com.

**Category:** Other | **Website:** [www.ifixit.com/](https://www.ifixit.com/) | **Docs:** [parse.bot/marketplace/37a52ec3-4097-4d23-97cb-51f13d15457e/ifixit-com-api](https://parse.bot/marketplace/37a52ec3-4097-4d23-97cb-51f13d15457e/ifixit-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-ifixit-com-api-37a52ec3/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_category

Retrieve device category information including description, available repair guides, child categories, and ancestor hierarchy. Use to browse iFixit's device taxonomy or list all guides for a specific device model.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category` | string | Yes | Device category name (e.g. 'iPhone 12', 'MacBook Pro 15" Retina Display Mid 2015'). Obtainable from search_guides results or get_category children. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-ifixit-com-api-37a52ec3/get_category \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category":"<string>"}'
```

### get_guide

Retrieve complete repair guide details including all step-by-step instructions, required tools, replacement parts, author info, and media. Each step contains ordered instructions with bullet types indicating warnings, notes, and regular text.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `guide_id` | string | Yes | Numeric guide ID from iFixit (e.g. '140588' for iPhone 12 Battery Replacement). Obtainable from search_guides results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-ifixit-com-api-37a52ec3/get_guide \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"guide_id":"<string>"}'
```

### search_guides

Full-text search across iFixit's public repair guide library. Returns guide summaries matching the query. Results are auto-iterated; each item carries enough metadata (difficulty, category, subject) to decide whether to fetch the full guide.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Maximum number of results to return per page. |
| `offset` | integer | No | Number of results to skip for pagination. |
| `query` | string | Yes | Search query for finding repair guides (e.g. 'iPhone battery replacement', 'MacBook screen'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-ifixit-com-api-37a52ec3/search_guides \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","offset":"<integer>","query":"<string>"}'
```
