# Access Data via WFS & WMS APIs

If needed you can display data from GRID**it**<span> in another (external) application.</span>

# WFS & WMS (external applications)

You can view layers that are stored in GRID*it* in other systems (e.g. QGIS) using the WMS and WFS APIs.

<p class="callout danger">When using WMS &amp; WFS to view data in another system, layer level access control cannot be enforced.</p>

External mapping tools &amp; applications can access data via standard interfaces from [Open Spatial Consortium](https://en.wikipedia.org/wiki/Open_Geospatial_Consortium "External link: Open Spatial Consortium (opens new window)").

- WFS (Web Feature Service)
- WMS (Web Map Service)

Each application needs to be configured differently. All applications need to configure the endpoint and the API key.

## Information needed (from administrator)

---

#### API endpoint

---

Each project in GRId*it* has its own endpoint. Your project/organization administrator can provide it and it has this format

<table border="1" id="bkmrk-protocol-endpoint-wf" style="border-collapse: collapse; width: 86.3095%; height: 90.375px;"><colgroup><col style="width: 12.6761%;"></col><col style="width: 87.3694%;"></col></colgroup><thead><tr style="height: 30.125px;"><td class="align-center" style="height: 30.125px;">**Protocol**</td><td class="align-center" style="height: 30.125px;">**Endpoint**</td></tr></thead><tbody><tr style="height: 30.125px;"><td style="height: 30.125px;">**WFS**</td><td style="height: 30.125px;">example: [https://api.gridit.nl/api/projects/4928f988-8711-4371-b61b-af6b1834c406/WFS](https://api.gridit.nl/api/projects/4928f988-8711-4371-b61b-af6b1834c406/WFS "Example only")</td></tr><tr style="height: 30.125px;"><td style="height: 30.125px;">**WMS**</td><td style="height: 30.125px;">example: [https://api.gridit.nl/api/projects/4928f988-8711-4371-b61b-af6b1834c406/WMS](https://api.gridit.nl/api/projects/4928f988-8711-4371-b61b-af6b1834c406/WMS "Example only")</td></tr></tbody></table>

#### API key (for security)

---

Each user has an API key that can be provided by the project/organization administrator. The API key grants the same access rights as the user.

The API key must be provided as part of the http attributes

<table border="1" id="bkmrk-attribute-value-x-ap" style="border-collapse: collapse; width: 60.9524%; height: 61px;"><colgroup><col style="width: 22.1208%;"></col><col style="width: 77.9445%;"></col></colgroup><tbody><tr><td class="align-center">**Attribute**</td><td class="align-center">**Value**</td></tr><tr><td>X-API-Key</td><td>API Key (eg: 8c898c89-8c89-8c89-8c89-8c898c898c89)</td></tr></tbody></table>

```
let url = 'https://api.gridit.web/api/projects/B1C9AE8D-15ED-454C-A91D-CA48C310CE74/WFS?service=wfs&version=2.0.0&request=GetFeature& typeNames=namespace:featuretype';
const response = await fetch( url, {
  method: "GET",
  headers: {
    "X-API-Key": "8c898c89-8c89-8c89-8c89-8c898c898c89",
  },
});
```

##### Example in QGIS:

[![qgis-authentication.png](https://wiki.app.gridit.nl/uploads/images/gallery/2026-02/scaled-1680-/qgis-authentication.png)](https://wiki.app.gridit.nl/uploads/images/gallery/2026-02/qgis-authentication.png)