> ## 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.

# Lists stations paged



## OpenAPI

````yaml en/open-api/mgm-stations-v1.json get /v1/mgm-stations/page/{pageNumber}/size/{pageSize}
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/page/{pageNumber}/size/{pageSize}:
    get:
      tags:
        - MGM Stations Data API
      summary: Lists stations paged
      operationId: getAllStationsPaged
      parameters:
        - name: pageNumber
          in: path
          required: true
          schema:
            type: integer
            format: int32
        - name: pageSize
          in: path
          required: true
          schema:
            type: integer
            format: int32
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StationsPageResponse'
        '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:
    StationsPageResponse:
      type: object
      description: Paged response structure for stations
      properties:
        totalStations:
          type: integer
          format: int64
          description: Total number of stations available
        totalPages:
          type: integer
          format: int32
          description: Total number of pages
        currentPage:
          type: integer
          format: int32
          description: Current page index in pagination
        pageSize:
          type: integer
          format: int32
          description: Number of records per page
        stations:
          type: array
          description: List of stations in this page
          items:
            $ref: '#/components/schemas/Station'
    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
    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

````