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

# Get Weather Icon

> Serves the WEBP icon for the requested condition and day/night variant.



## OpenAPI

````yaml /open-api/en/forecasts_version-1.json get /v1/weather-icons/{dayOrNight}/{iconName}
openapi: 3.1.0
info:
  title: OpenAPI definition
  version: v0
servers:
  - url: https://api.iklim.co
    description: Production server
  - url: https://api-test.iklim.co
    description: Test server
security: []
tags:
  - name: Forecast Service
    description: Manages current, hourly, and daily weather forecast operations
  - name: Weather Icons
    description: Serves WEBP icon assets used by the forecast endpoints
paths:
  /v1/weather-icons/{dayOrNight}/{iconName}:
    get:
      tags:
        - Weather Icons
      summary: Get Weather Icon
      description: Serves the WEBP icon for the requested condition and day/night variant.
      operationId: getIconByName
      parameters:
        - name: dayOrNight
          in: path
          required: true
          schema:
            type: string
            enum:
              - day
              - night
        - name: iconName
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Weather icon returned successfully.
          content:
            image/png:
              schema:
                type: string
                format: binary
        '400':
          description: Bad Request
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/StandardErrorResponse'
        '401':
          description: Unauthorized
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/StandardErrorResponse'
        '403':
          description: Forbidden
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/StandardErrorResponse'
        '404':
          description: Icon with the requested name and day/night variant was not found.
          content:
            image/png:
              schema:
                type: string
                format: binary
        '500':
          description: Internal Server Error During Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardErrorResponse'
              examples:
                Internal Server Error Example:
                  summary: Example response
                  description: Internal Server Error Example
                  value:
                    timestamp: '2025-04-14T16:58:10.414972912'
                    status: 500
                    error: Internal Server Error
                    message: An Error Occurred During Invocation
                    path: /v1/weather-icons/day/sunny
components:
  schemas:
    StandardErrorResponse:
      type: object
      description: Standard API error response structure
      properties:
        timestamp:
          type: string
          format: date-time
          description: Timestamp when the error occurred
          example: YYYY-mm-DDTHH:MM:SS.nnnnnnnnn
        status:
          type: integer
          format: int32
          description: HTTP status code
          example: XXX
        error:
          type: string
          description: Error name or type
          example: Error Name
          minLength: 1
        message:
          type: string
          description: Main error message
          example: Error Message
          minLength: 1
        messages:
          type: array
          description: Additional detailed error messages
          items:
            type: string
        path:
          type: string
          description: Request path that caused the error
          example: /endpoint/uri/here
          minLength: 1
      required:
        - error
        - message
        - path
        - status
        - timestamp

````