# Get SAR vessel detections bins for zoom 2 in a hourly interval (/docs/examples/bins/bins-example2)



**Path parameters**

| Parameter | Value | Description |
| --------- | ----- | ----------- |
| `z`       | `2`   | Zoom level  |

**Query parameters**

| Parameter              | Value                               | Description                        |
| ---------------------- | ----------------------------------- | ---------------------------------- |
| `datasets[0]`          | `public-global-sar-presence:latest` | SAR vessel detections dataset      |
| `temporal-aggregation` | `false`                             | Don't aggregate values across time |
| `num-bins`             | `9`                                 | Number of bins to generate         |
| `interval`             | `HOUR`                              | Hourly temporal resolution         |

**Request**

<Tabs items="['cURL', 'JavaScript']">
  <Tab value="cURL">
    ```shell
    # Make sure to replace [TOKEN] with your API Access Token
    curl --location --globoff 'https://gateway.api.globalfishingwatch.org/v3/4wings/bins/2?datasets[0]=public-global-sar-presence%3Alatest&temporal-aggregation=false&num-bins=9&interval=HOUR' \
      -H "Authorization: Bearer [TOKEN]" \
    ```
  </Tab>

  <Tab value="JavaScript">
    ```js
    // Make sure to replace [TOKEN] with your API Access Token.
    const res = await fetch(
      'https://gateway.api.globalfishingwatch.org/v3/4wings/bins/2?datasets[0]=public-global-sar-presence%3Alatest&temporal-aggregation=false&num-bins=9&interval=HOUR',
      { headers: { Authorization: 'Bearer [TOKEN]' } }
    )
    const data = await res.json()
    ```
  </Tab>
</Tabs>

**Response**

```json
{
  "total": 1,
  "limit": null,
  "offset": null,
  "nextOffset": null,
  "metadata": {},
  "entries": [
    [
      0, 0.6141656839622642, 2.13199378330373, 4.751082251082251, 8.484912146676853,
      13.063675088131609, 28.508133561643834, 45.34335191082803, 58.447841726618705
    ]
  ]
}
```
