> ## Documentation Index
> Fetch the complete documentation index at: https://api-docs.tarla.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Find Single Station By ID



## OpenAPI

````yaml en/open-api/mgm-stations-v1.json get /v1/mgm-stations/by/id/{stationId}
openapi: 3.1.0
info:
  title: OpenAPI definition
  version: v0
servers:
  - url: https://risk-api.tarla.io
    description: Production server
  - url: https://risk-api-test.tarla.io
    description: Test server
security: []
tags:
  - name: MGM Stations Data API
    description: >-
      This web service provides daily precipitation sum, maximum and minimum
      weather temperatures, and minimum ground surface temperature values from
      MGM
paths:
  /v1/mgm-stations/by/id/{stationId}:
    get:
      tags:
        - MGM Stations Data API
      summary: Find Single Station By ID
      operationId: getStationById
      parameters:
        - name: stationId
          in: path
          required: true
          schema:
            type: integer
            format: int32
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Station'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardErrorResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardErrorResponse'
components:
  schemas:
    Station:
      type: object
      description: Represents a weather station with its location and name
      properties:
        stationId:
          type: integer
          format: int32
          description: Unique identifier of the weather station
        stationName:
          type: string
          description: Name of the weather station
        latitude:
          type: number
          format: double
          description: Latitude coordinate of the station
        longitude:
          type: number
          format: double
          description: Longitude coordinate of the station
        city:
          type: string
          description: City where the station is located
        district:
          type: string
          description: District where the station is located
    StandardErrorResponse:
      type: object
      description: Standard API error response structure
      properties:
        timestamp:
          type: string
          format: date-time
          description: Timestamp when the error occurred
        status:
          type: integer
          format: int32
          description: HTTP status code
        error:
          type: string
          description: Error name or type
        message:
          type: string
          description: Main error message
        messages:
          type: array
          description: Additional detailed error messages
          items:
            type: string
        path:
          type: string
          description: Request path that caused the error

````