---
title: Preuzimanje karakteristika objekta
method: GET
weight: 3
section: 'Basics'
---

import {
  EndpointHeader,
  ParamField,
  ParamFields,
  RequestExample,
  ResponseExample,
  CodeGroup,
} from '@/components/api';

<EndpointHeader method="GET" path="/api/v1/stations/:id/characteristics" />

Vraća fizičke karakteristike mernog mesta na osnovu njegovog identifikatora.

<ParamFields title="Parametri putanje">
  <ParamField name="id" type="integer" required>
    Identifikator mernog mesta.
  </ParamField>
</ParamFields>

## Polja odgovora

| Atribut            | Opis                                                     |
| ------------------ | -------------------------------------------------------- |
| `id`               | Identifikator (jedinstveni ključ) mernog mesta u sistemu |
| `gas_boiler`       | Postojanje gasnog kotla                                  |
| `gas_stove`        | Postojanje gasnog šporeta                                |
| `gas_water_heater` | Postojanje gasnog bojlera                                |
| `resident_count`   | Broj ukućana (osoba)                                     |
| `heated_area`      | Grejna površina (m²)                                     |

<RequestExample>
  <CodeGroup labels={["curl", "Node", "Python", "Go", "PHP"]}>
    <Fragment slot="panel-0">

```bash
curl -i \
  --header "access-token: *********************" \
  --header "token-type: Bearer" \
  --header "client: **********************" \
  --header "uid: api-user@example.com" \
  --header "Content-Type: application/json" \
  --request GET \
  "https://api.vadsro.eu/api/v1/stations/3318/characteristics"
```

    </Fragment>
    <Fragment slot="panel-1">

```js
const res = await fetch('https://api.vadsro.eu/api/v1/stations/3318/characteristics', {
  headers: {
    'access-token': '*********************',
    'token-type': 'Bearer',
    client: '**********************',
    uid: 'api-user@example.com',
    'Content-Type': 'application/json',
  },
});
const data = await res.json();
```

    </Fragment>
    <Fragment slot="panel-2">

```python
import requests

res = requests.get(
    "https://api.vadsro.eu/api/v1/stations/3318/characteristics",
    headers={
        "access-token": "*********************",
        "token-type": "Bearer",
        "client": "**********************",
        "uid": "api-user@example.com",
        "Content-Type": "application/json",
    },
)
data = res.json()
```

    </Fragment>
    <Fragment slot="panel-3">

```go
req, _ := http.NewRequest("GET", "https://api.vadsro.eu/api/v1/stations/3318/characteristics", nil)
req.Header.Set("access-token", "*********************")
req.Header.Set("token-type", "Bearer")
req.Header.Set("client", "**********************")
req.Header.Set("uid", "api-user@example.com")
req.Header.Set("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)
```

    </Fragment>
    <Fragment slot="panel-4">

```php
$ch = curl_init("https://api.vadsro.eu/api/v1/stations/3318/characteristics");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "access-token: *********************",
    "token-type: Bearer",
    "client: **********************",
    "uid: api-user@example.com",
    "Content-Type: application/json",
]);
$data = json_decode(curl_exec($ch), true);
```

    </Fragment>

  </CodeGroup>
</RequestExample>

<ResponseExample>

```json
{
  "data": {
    "id": 3318,
    "gas_boiler": "false",
    "gas_stove": "false",
    "gas_water_heater": "true",
    "resident_count": "22",
    "heated_area": null
  }
}
```

</ResponseExample>
