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

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/credits/gsmarena/`
**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 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.beta.paywithlocus.com/api/wrapped/credits/gsmarena/get-phone \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/gsmarena/list-brands \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/gsmarena/list-phones \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/gsmarena/search-phones \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"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.