---
updatedAt: 2025-02-19T23:48:03.000Z
agentTools:
  projectIndex: https://apidocs.tempestwx.com/llms.txt
---

# Station

<hr></hr>

Get metadata for a specific station owned by the user.

# OpenAPI definition

```json
{
  "openapi": "3.0.2",
  "info": {
    "title": "Tempest Home API",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://swd.weatherflow.com/{basePath}",
      "variables": {
        "basePath": {
          "default": "swd/rest"
        }
      }
    }
  ],
  "components": {
    "schemas": {
      "stationId": {
        "type": "integer",
        "format": "int32",
        "example": 12799
      },
      "deviceID": {
        "type": "integer",
        "format": "int32",
        "example": 60526
      },
      "serialNumber": {
        "type": "string",
        "example": "AR-12345678"
      },
      "locationName": {
        "type": "string",
        "example": "Home"
      },
      "latLon": {
        "type": "number",
        "format": "float"
      },
      "elevation": {
        "type": "number",
        "format": "float",
        "example": 1567.65
      },
      "timezone": {
        "type": "string",
        "example": "America/New_York"
      },
      "timestamp": {
        "type": "number",
        "format": "in32",
        "example": 1495732068
      },
      "timezoneOffset": {
        "type": "number",
        "format": "int32",
        "example": -300
      },
      "Status": {
        "type": "object",
        "properties": {
          "status_code": {
            "type": "integer",
            "format": "int32",
            "example": 0
          },
          "status_message": {
            "type": "string",
            "example": "SUCCESS"
          }
        }
      },
      "StationSet": {
        "type": "object",
        "properties": {
          "stations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Station"
            }
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        }
      },
      "Station": {
        "type": "object",
        "properties": {
          "location_id": {
            "$ref": "#/components/schemas/stationId"
          },
          "station_id": {
            "$ref": "#/components/schemas/stationId"
          },
          "name": {
            "$ref": "#/components/schemas/locationName"
          },
          "public_name": {
            "$ref": "#/components/schemas/locationName"
          },
          "latitude": {
            "$ref": "#/components/schemas/latLon"
          },
          "longitude": {
            "$ref": "#/components/schemas/latLon"
          },
          "timezone": {
            "$ref": "#/components/schemas/timezone"
          },
          "timezone_offset_minutes": {
            "$ref": "#/components/schemas/timezoneOffset"
          },
          "station_meta": {
            "$ref": "#/components/schemas/StationMeta"
          },
          "last_modified_epoch": {
            "$ref": "#/components/schemas/timestamp"
          },
          "created_epoch": {
            "$ref": "#/components/schemas/timestamp"
          },
          "devices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Device"
            }
          },
          "station_items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StationItem"
            }
          },
          "is_local_mode": {
            "type": "boolean"
          }
        }
      },
      "StationMeta": {
        "type": "object",
        "properties": {
          "share_with_wf": {
            "type": "boolean",
            "example": true,
            "default": true
          },
          "share_with_wu": {
            "type": "boolean",
            "example": true,
            "default": true
          },
          "elevation": {
            "$ref": "#/components/schemas/elevation"
          }
        }
      },
      "Device": {
        "type": "object",
        "properties": {
          "device_id": {
            "$ref": "#/components/schemas/deviceID"
          },
          "serial_number": {
            "$ref": "#/components/schemas/serialNumber"
          },
          "device_meta": {
            "$ref": "#/components/schemas/DeviceMeta"
          },
          "device_settings": {
            "$ref": "#/components/schemas/DeviceSettings"
          },
          "device_type": {
            "type": "string",
            "example": "AR",
            "enum": [
              "HB",
              "AR",
              "SK",
              "ST"
            ]
          },
          "hardware_revision": {
            "type": "string",
            "example": "3"
          },
          "firmware_revision": {
            "type": "string",
            "example": "3"
          },
          "notes": {
            "type": "string"
          }
        }
      },
      "StationItem": {
        "type": "object",
        "properties": {
          "location_item_id": {
            "$ref": "#/components/schemas/deviceID"
          },
          "location_id": {
            "$ref": "#/components/schemas/stationId"
          },
          "device_id": {
            "$ref": "#/components/schemas/deviceID"
          },
          "item": {
            "type": "string",
            "example": "air_temperature_humidity"
          },
          "sort": {
            "type": "number",
            "format": "int32"
          },
          "station_id": {
            "$ref": "#/components/schemas/stationId"
          },
          "station_item_id": {
            "$ref": "#/components/schemas/stationId"
          }
        }
      },
      "DeviceMeta": {
        "type": "object",
        "properties": {
          "agl": {
            "type": "number",
            "format": "float",
            "example": 2.2
          },
          "name": {
            "type": "string",
            "example": "Pool Air Device"
          },
          "environment": {
            "type": "string",
            "example": "outdoor",
            "enum": [
              "indoor",
              "outdoor"
            ]
          },
          "wifi_network_name": {
            "type": "string"
          }
        }
      },
      "DeviceSettings": {
        "type": "object",
        "description": "Object containing various optional settings for that device.",
        "properties": {
          "show_precip_final": {
            "type": "boolean"
          }
        }
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "name": "api_key",
        "in": "query"
      }
    }
  },
  "tags": [
    {
      "name": "Metadata"
    }
  ],
  "paths": {
    "/stations/{station_id}": {
      "get": {
        "tags": [
          "Metadata"
        ],
        "description": "<hr></hr>",
        "summary": "Station",
        "operationId": "getStationById",
        "security": [
          {
            "ApiKeyAuth": [
              "user"
            ]
          }
        ],
        "parameters": [
          {
            "name": "station_id",
            "in": "path",
            "description": "ID of Station to return",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StationSet"
                }
              }
            }
          },
          "404": {
            "description": "Station not found"
          }
        }
      }
    }
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ]
}
```