# Search prices

<mark style="color:blue;">`GET`</mark> `us-central1-appgregator.cloudfunctions.net/stripe/prices/search/`

#### Query Parameters

| Name                                               | Type    | Description                  |
| -------------------------------------------------- | ------- | ---------------------------- |
| name<mark style="color:red;">\*</mark>             | String  | ft-4                         |
| connection\_name<mark style="color:red;">\*</mark> | String  | stripe-1                     |
| limit                                              | Integer | 1                            |
| query<mark style="color:red;">\*</mark>            | String  | active:'true'                |
| page                                               | String  | WzE2NzU4NDEwMjMuNTEwODkyXQ== |

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

```javascript
{
    "object": "search_result",
    "data": [
        {
            "id": "price_1MYluwIyq0PiFIhUg3U1E3bH",
            "object": "price",
            "active": true,
            "billing_scheme": "per_unit",
            "created": 1675756122,
            "currency": "usd",
            "custom_unit_amount": null,
            "livemode": false,
            "lookup_key": null,
            "metadata": {},
            "nickname": null,
            "product": "008",
            "recurring": null,
            "tax_behavior": "unspecified",
            "tiers_mode": null,
            "transform_quantity": null,
            "type": "one_time",
            "unit_amount": 100,
            "unit_amount_decimal": "100"
        }
    ],
    "has_more": true,
    "next_page": "WzE2NzU3NTYxMjIuODYwOTY3Nl0=",
    "url": "/v1/prices/search"
}
```

{% endtab %}
{% endtabs %}

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

```sh
curl --location --request GET 'https://us-central1-appgregator.cloudfunctions.net/stripe/prices/search?name=ft-4&connection_name=stripe-1&limit=1&query=active:'\''true'\''&page=WzE2NzU4NDEwMjMuNTEwODkyXQ==' \
--header 'x-api-key: XXX'
```

{% endtab %}

{% tab title="NodeJs - Axios" %}

```javascript
var axios = require('axios');

var config = {
  method: 'get',
  url: 'https://us-central1-appgregator.cloudfunctions.net/stripe/prices/search?name=ft-4&connection_name=stripe-1&limit=1&query=active:\'true\'&page=WzE2NzU4NDEwMjMuNTEwODkyXQ==',
  headers: { 
    'x-api-key': 'XXX'
  }
};

axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});

```

{% endtab %}

{% tab title="PHP - cURL" %}

```php
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://us-central1-appgregator.cloudfunctions.net/stripe/prices/search?name=ft-4&connection_name=stripe-1&limit=1&query=active:\'true\'&page=WzE2NzU4NDEwMjMuNTEwODkyXQ==',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'x-api-key: XXX'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

```

{% endtab %}
{% endtabs %}
