# Styles

## Get vector dataset style

> Returns a style definition corresponding to the latest visualization settings used in\
> the Earthscale app for the dataset version.\
> \
> If \`map\_id\` is provided, only visualization settings from that specific map are\
> returned. Returns 204 (No Content) if the dataset version is not in that map or has\
> no visualization settings.

```json
{"openapi":"3.1.0","info":{"title":"Earthscale Tiles API v1","version":"1.0.0"},"servers":[{"url":"/v1"}],"paths":{"/vector/{dataset_version_id}/style":{"get":{"tags":["Styles"],"summary":"Get vector dataset style","description":"Returns a style definition corresponding to the latest visualization settings used in\nthe Earthscale app for the dataset version.\n\nIf `map_id` is provided, only visualization settings from that specific map are\nreturned. Returns 204 (No Content) if the dataset version is not in that map or has\nno visualization settings.","operationId":"Vector_Style_vector__dataset_version_id__style_get","parameters":[{"name":"dataset_version_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"UUID of the dataset version to query. Each dataset can have multiple versions representing different states of the data over time","title":"Dataset Version Id"},"description":"UUID of the dataset version to query. Each dataset can have multiple versions representing different states of the data over time"},{"name":"api_key","in":"query","required":true,"schema":{"type":"string","description":"Earthscale API key used to authenticate requests and determine which datasets you have access to. API keys can be managed in the [Earthscale Web App](https://app.earthscale.ai) under the user menu (top-right) -> 'API Settings'","title":"Api Key"},"description":"Earthscale API key used to authenticate requests and determine which datasets you have access to. API keys can be managed in the [Earthscale Web App](https://app.earthscale.ai) under the user menu (top-right) -> 'API Settings'"},{"name":"format","in":"query","required":false,"schema":{"const":"mapbox","type":"string","description":"Style specification format. 'mapbox' returns a MapLibre/Mapbox GL style JSON with sources and layers configured for this dataset","default":"mapbox","title":"Format"},"description":"Style specification format. 'mapbox' returns a MapLibre/Mapbox GL style JSON with sources and layers configured for this dataset"},{"name":"map_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Restrict to visualization settings from a specific Earthscale map. If omitted, returns the most recently used style for this dataset globally","title":"Map Id"},"description":"Restrict to visualization settings from a specific Earthscale map. If omitted, returns the most recently used style for this dataset globally"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.earthscale.ai/http-api/fast-tiler-http-api/styles.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
