# Wish Related Products API Documentation

<p><strong>Wish Related Products API Documentation</strong> Get the similar-product rail for a 24-hex Wish id from search or detail. Each item carries an id that can be passed unchanged to the product endpoint, plus title, image and price where Wish ships them. The answer also carries the next offset and the feed end flag. An empty rail is a successful response but costs no credit. Failed requests are never charged. 1 credit per answer with data.</p>

- **Documentation:** [https://scrappa.co/docs/wish-api/wish_related](https://scrappa.co/docs/wish-api/wish_related)
- **API group:** Wish API
- **Endpoint:** `GET https://scrappa.co/api/wish/related`

## 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 |
| --- | --- | --- | --- |
| `product_id` | string | Yes | The 24-hex id from Wish search or product detail. |

## Example response

```json
{
    "data": {
        "products": [
            {
                "url": "https://www.wish.com/product/60a48c2a96ec0c86416500d0",
                "price": {
                    "amount": 177.77,
                    "currency": "USD"
                },
                "title": "Redmi smartphone",
                "rating": 2.33,
                "image_url": "https://cdn.example.test/related-large.jpg",
                "product_id": "60a48c2a96ec0c86416500d0",
                "review_count": 3
            }
        ],
        "feed_ended": false,
        "product_id": "68b46c0356ea5dba05e9f755",
        "next_offset": 30
    },
    "meta": {
        "billable": true,
        "endpoint_family": "related"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | The product id is missing or not a 24-hex id. |

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