# Get AIS apparent fishing effort heatmap in PNG format (/docs/examples/tiles/tiles-example1)



**Path parameters**

| Parameter | Value   | Description      |
| --------- | ------- | ---------------- |
| `z/x/y`   | `2/3/1` | Tile coordinates |

**Query parameters**

| Parameter     | Value                                 | Description                                                                                  |
| ------------- | ------------------------------------- | -------------------------------------------------------------------------------------------- |
| `format`      | `PNG`                                 | Tile output format                                                                           |
| `interval`    | `DAY`                                 | Daily temporal resolution                                                                    |
| `datasets[0]` | `public-global-fishing-effort:latest` | AIS apparent fishing effort dataset                                                          |
| `date-range`  | `2020-01-01,2020-01-31`               | Filter to January 2020                                                                       |
| `style`       | `[STYLE] (base64 style blob)`         | Style generated by the [Create a style for PNG tiles](/docs/v3/4wings/generate-png) endpoint |

<Callout type="info">
  Make sure to replace \[STYLE] with the style obtained in the previous [endpoint "Create a style for
  generate PNG tiles"](/docs/v3/4wings/generate-png#create-a-style-for-generate-png-tiles) in the
  'url' field
</Callout>

**Request**

<Tabs items="['cURL', 'JavaScript']">
  <Tab value="cURL">
    ```shell
    # Make sure to replace [TOKEN] with your API Access Token
    curl --location --request GET 'https://gateway.api.globalfishingwatch.org/v3/4wings/tile/heatmap/2/3/1?format=PNG&interval=DAY&datasets[0]=public-global-fishing-effort:latest&date-range=2020-01-01,2020-01-31&style=[STYLE]' \
      -H "Authorization: Bearer [TOKEN]" \
      -o "tile-by-coordinates.PNG"
    ```
  </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/tile/heatmap/2/3/1?format=PNG&interval=DAY&datasets[0]=public-global-fishing-effort:latest&date-range=2020-01-01,2020-01-31&style=[STYLE]',
      { headers: { Authorization: 'Bearer [TOKEN]' } }
    )
    const blob = await res.blob()
    ```
  </Tab>
</Tabs>

**Response**

If the request is successful, in this example the response will be a PNG file <a external="true" href="/our-apis/documentation/assets/tile-by-coordinates.png" target="_blank">similar to this.</a>
