# Wallapop Legacy Item ID API Documentation

Translate a current listing ID to the legacy numeric item ID, so listings can be matched against systems that stored them under the older identifier.

- **Documentation:** [https://scrappa.co/docs/wallapop-api/wallapop_legacy_id](https://scrappa.co/docs/wallapop-api/wallapop_legacy_id)
- **API group:** Wallapop API
- **Endpoint:** `GET https://scrappa.co/api/wallapop/items/{item_id}/legacy-id`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `item_id` | string | Yes | Current listing ID returned by search. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/wallapop/items/{item_id}/legacy-id?item_id=8z88xgy97rz3"
```

## Example response

```json
{
    "success": true,
    "data": {
        "item_id": "8z88xgy97rz3",
        "legacy_item_id": 1307190994
    },
    "meta": {
        "endpoint_family": "item_id_bridge"
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | The requested listing, seller or review does not exist. This response is not billable. |
| 422 | Invalid Arguments | A filter value was rejected, including a sort value the marketplace does not publish. This response is not billable. |
| 502 | Marketplace Unavailable | The marketplace did not answer the request. This response is not billable. |
| 503 | Service Unavailable | The service could not obtain a complete result. This response is not billable. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
