---
title: "Data Server"
method: GET
path: "/api/data/dataserver"
tags: ["Weather Data"]
---

# Data Server

`GET /api/data/dataserver`

## Request

- Base URL: `https://aviationweather.gov` (the document declares no server; this is the origin it was published from)
- URL: `https://aviationweather.gov/api/data/dataserver`
- Auth: none declared

Compatibility layer with previous Text Data Service. Station identifiers or a bounding box, as well as a time selection, are required.

## Query parameters

- `requestType` 'retrieve', required
- `dataSource` 'metars' | 'tafs' | 'aircraftreports' | 'airsigmets' | 'gairmets', required
- `stationString` string
- `boundingBox` string
- `startTime` string
- `endTime` string
- `hoursBeforeNow` number
- `format` 'xml' | 'csv'
- `mostRecentForEachStation` 'constraint' | 'postfilter'
- `radialDistance` string

## Response `200`

successful operation

## Other responses

- `400`: Input validation errors

---

[API](https://skmtc.dev/aviationweather/apis/aviationweather-gov-api.md) - [All operations](https://skmtc.dev/aviationweather/apis/aviationweather-gov-api/llms.txt) - [OpenAPI document](https://skmtc.dev/aviationweather/apis/aviationweather-gov-api/revisions/282226ebbe51?raw)
