# Real-time price & stock check

POST `/product-availability`

This endpoint lets you do a real-time price and stock check of any product in the Agora index.&#x20;

**Headers**

| Header          | Type   | Description   |
| --------------- | ------ | ------------- |
| `Authorization` | string | Bearer token. |

**Request body**

```json
{ 
"variantId":"123", 
"productUrl":"domain",
}
```

**Response**

{% tabs %}
{% tab title="200" %}

```json
{
    "success": true,
    "message": "Variant retrieved successfully",
    "data": {
        "variantId": "variant.id",
        "available": "variant.available",
        "price": "variant.price",
        "inventory_quantity": "variant.inventory_quantity",
        "compare_at_price": "variant.compare_at_price",
      }
}
```

{% endtab %}

{% tab title="400" %}

```json
{
success: false,
message: ‘Variant not found’,
}
```

{% endtab %}
{% endtabs %}
