# Monitoring Your Competition

You can track your offers competition and adjust prices accordingly. Use the [`/competitions`](https://docs.driffle.com/driffle-seller-api-legacy/reference/api-reference/competition) endpoint, select `pid` (Driffle Product ID) and the system will return you the list of offers and their prices for the given product.

<mark style="color:green;">`GET`</mark> [/products/{pid}/competitions](https://services.driffle.com/api/seller/legacy/products/%7Bpid%7D/competitions)

**Headers**

| Name          | Value              |
| ------------- | ------------------ |
| Content-Type  | `application/json` |
| Authorization | `Bearer <token>`   |

**Param**

| Name | Type   | Description | Required |
| ---- | ------ | ----------- | -------- |
| pid  | string | Product Id  | Yes      |

**Response**

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

```json
{
  "message": "Default Response",
  "statusCode": 200,
  "pid": 123,
  "competitions": {
    "totalCount": 10,
    "offers": [
      {
        "merchantName": "Merchant A",
        "isInStock": true,
        "canBePurchased": true,
        "belongsToYou": false,
        "price": {
          "amount": 29.99,
          "currency": "USD"
        }
      }
    ]
  }
}
```

{% endtab %}

{% tab title="400" %}

```json
{
    "message": "Bad Request. Wrong/Invalid params format.",
    "statusCode": 400 
}
```

{% endtab %}

{% tab title="401" %}

```json
{
    "message": "UnAuthorized request. Invalid/Expired token",
    "statusCode": 401
}
```

{% endtab %}

{% tab title="403" %}

```json
{
    "message": "Forbidden Request. Action not allowed or Rate Limit exhausted.", 
    "statusCode": 403
}
```

{% endtab %}

{% tab title="500" %}

```json
{
    "message": "Internal Server Error",
    "statusCode": 500
}
```

{% endtab %}
{% endtabs %}

{% openapi src="<https://407468006-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfPzmNpsOZnU4ujov7zQD%2Fuploads%2FUjfAgRPyuc5eqmtLjk9z%2Fswagger3_SAPIv2.1.json?alt=media&token=65081e54-75ac-44a4-b4a9-b01f1706d6cf>" path="/products/{pid}/competitions" method="get" %}
[swagger3\_SAPIv2.1.json](https://407468006-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfPzmNpsOZnU4ujov7zQD%2Fuploads%2FUjfAgRPyuc5eqmtLjk9z%2Fswagger3_SAPIv2.1.json?alt=media\&token=65081e54-75ac-44a4-b4a9-b01f1706d6cf)
{% endopenapi %}
