# Gsmarena — 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 retrieve detailed smartphone specifications, pricing, and user reviews from GSMArena's extensive phone database. Browse devices by brand or keyword and receive fully normalized, structured data for easy comparison and analysis.

**Category:** E-commerce | **Website:** [gsmarena.com/](https://gsmarena.com/) | **Docs:** [parse.bot/marketplace/3f36587a-db8a-4fc3-9aa9-b7d71956b675/gsmarena-com-api](https://parse.bot/marketplace/3f36587a-db8a-4fc3-9aa9-b7d71956b675/gsmarena-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-gsmarena-com-api-3f36587a/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_phone

Get detailed specifications, pricing, and user reviews for a specific phone. Returns normalized data including display, platform, memory, battery, camera, network bands, pricing, and community reviews. The raw spec tables are also included for fields not normalized.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `phone_url` | string | Yes | The filename of the phone details page from list_phones or search_phones results (e.g. 'samsung_galaxy_s24_ultra-12771.php') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-gsmarena-com-api-3f36587a/get_phone \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"phone_url":"<string>"}'
```

### list_brands

Get all mobile phone brands available on GSMArena. Each brand includes its name, URL, internal ID, and total device count. The full list is returned in a single page.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-gsmarena-com-api-3f36587a/list_brands \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### list_phones

List phones for a specific brand with pagination. Returns phone names, detail page URLs, and thumbnail images. Use brand_url from list_brands results. Each page returns up to ~50 phones.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `brand_url` | string | Yes | The filename of the brand page from list_brands results (e.g. 'samsung-phones-9.php') |
| `page` | integer | No | The page number to retrieve |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-gsmarena-com-api-3f36587a/list_phones \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"brand_url":"<string>","page":"<integer>"}'
```

### search_phones

Search for phones by name or keyword across all brands. Returns matching phones with names, detail page URLs, and thumbnail images. Results are not paginated.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | The search keyword (e.g. 'iPhone 16 Pro', 'Pixel 9', 'Galaxy S24') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-gsmarena-com-api-3f36587a/search_phones \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```
