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

> Browse and retrieve detailed information about used cars listed on Hasznaltauto.hu, including specifications, pricing, and availability. Search through the Hungarian marketplace to find and compare vehicles that match your needs.

**Category:** Automotive | **Website:** [hasznaltauto.hu/](https://hasznaltauto.hu/) | **Docs:** [parse.bot/marketplace/9db2dbf3-077f-4379-a90b-4d66107fb052/hasznaltauto-hu-api](https://parse.bot/marketplace/9db2dbf3-077f-4379-a90b-4d66107fb052/hasznaltauto-hu-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/hasznaltauto/`
**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

### Car details

Extract detailed information for a specific car listing including title, price, technical specifications (in Hungarian), seller name, and location. The returned object contains fixed keys (title, price, seller, location) plus a variable set of specification keys depending on the listing (e.g. Kategória, Szélesség, Üzemanyagtank, Végsebesség). Requires a valid listing URL obtained from list_cars.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | Yes | Full URL of the car listing page on hasznaltauto.hu (e.g. https://www.hasznaltauto.hu/szemelyauto/<make>/<model>/<listing-slug>). |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/hasznaltauto/car-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"url":"<string>"}'
```

### List cars

List used cars (személyautó) currently available on hasznaltauto.hu. Returns paginated results ordered by the site's default sort. Each page contains up to ~100 car summaries. Pagination advances by integer page number; the site does not expose total page count so iteration stops when a page returns fewer items than expected.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination (1-based). |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/hasznaltauto/list-cars \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>"}'
```

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