---
title: "data | Client js | Api client"
description: "Documentation for MapTiler Client"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs-beta-4y5.pages.dev/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Variable data`Const`

data: {  
    get: (  
        dataId: string,  
        options?: [GetDataOptions](https://docs-beta-4y5.pages.dev/client-js/api/types/services_data.GetDataOptions/),  
    ) \=> Promise<FeatureCollection<Geometry, { \[name: string\]: any }\>\>;  
} = ...

The **data** namespace contains an asynchronous function to call the [MapTiler Data API](https://docs.maptiler.com/cloud/api/data/). The **Data API** provides a way to retrieve user data in GeoJSON format.

#### Type Declaration

-   ##### get: (  
        dataId: string,  
        options?: [GetDataOptions](https://docs-beta-4y5.pages.dev/client-js/api/types/services_data.GetDataOptions/),  
    ) \=> Promise<FeatureCollection<Geometry, { \[name: string\]: any }\>\>
    

-   Defined in [services/data.ts:49](https://github.com/maptiler/maptiler-client-js/blob/f88659ae276c959a754e4c0f3b5c2aae1f483caa/src/services/data.ts#L49)
