Golf Ireland Knowledge

Golf Ireland Knowledge · GPT アクション

Open-Meteo Weather

Open-Meteo offers current weather and weather forecast information using latitude and longitude.

  • GET /v1/forecastcurrent weather and 7-day weather forecast for coordinates

    current weather and 7-day weather variables in hourly and daily resolution for given WGS84 latitude and longitude coordinates. Available worldwide.

元の API スキーマ
{
  "openapi": "3.0.0",
  "servers": [
    {
      "url": "https://api.open-meteo.com"
    }
  ],
  "info": {
    "title": "Open-Meteo Weather",
    "description": "Open-Meteo offers current weather and weather forecast information using latitude and longitude.",
    "version": "1.0",
    "contact": {
      "name": "Open-Meteo",
      "url": "https://open-meteo.com",
      "email": "info@open-meteo.com"
    },
    "license": {
      "name": "Attribution 4.0 International (CC BY 4.0)",
      "url": "https://creativecommons.org/licenses/by/4.0/"
    },
    "termsOfService": "https://open-meteo.com/en/features#terms"
  },
  "paths": {
    "/v1/forecast": {
      "get": {
        "tags": [
          "Weather Forecast APIs"
        ],
        "summary": "current weather and 7-day weather forecast for coordinates",
        "description": "current weather and 7-day weather variables in hourly and daily resolution for given WGS84 latitude and longitude coordinates. Available worldwide.",
        "operationId": "getWeather",
        "parameters": [
          {
            "name": "hourly",
            "in": "query",
            "required": false,
            "description": "If an hourly forecast is desired, these are the parameters that will be supplied; recommendation is to include all of them.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "weather_code",
                  "temperature_2m"
                ]
              }
            }
          },
          {
            "name": "daily",
            "in": "query",
            "required": false,
            "description": "If a daily forecast is desired, these are the parameters that will be supplied; recommendation is to include all of them.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "weather_code",
                  "temperature_2m_max",
                  "temperature_2m_min"
                ]
              }
            }
          },
          {
            "name": "latitude",
            "in": "query",
            "required": true,
            "description": "The WGS84 latitude coordinate for the location.",
            "schema": {
              "type": "number",
              "format": "float"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "required": true,
            "description": "The WGS84 longitude coordinate for the location.",
            "schema": {
              "type": "number",
              "format": "float"
            }
          },
          {
            "name": "current_weather",
            "in": "query",
            "description": "A boolean indicating if current weather data should be fetched; results include World Meteorological Organization Codes (WMO) code for the current condition.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "latitude": {
                      "type": "number",
                      "example": 52.52,
                      "description": "WGS84 of the center of the weather grid-cell which was used to generate this forecast. This coordinate might be up to 5 km away."
                    },
                    "longitude": {
                      "type": "number",
                      "example": "13.419.52",
                      "description": "WGS84 of the center of the weather grid-cell which was used to generate this forecast. This coordinate might be up to 5 km away."
                    },
                    "elevation": {
                      "type": "number",
                      "example": 44.812,
                      "description": "The elevation in meters of the selected weather grid-cell. In mountain terrain, it might differ from the location you would expect."
                    },
                    "generationtime_ms": {
                      "type": "number",
                      "example": 2.2119,
                      "description": "Generation time of the weather forecast in milliseconds. This is mainly used for performance monitoring and improvements."
                    },
                    "utc_offset_seconds": {
                      "type": "integer",
                      "example": 3600,
                      "description": "Applied timezone offset from the \u0026timezone= parameter."
                    },
                    "hourly": {
                      "description": "For each selected weather variable, data will be returned as a floating-point array. Additionally, a `time` array will be returned with ISO8601 timestamps."
                    },
                    "hourly_units": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "For each selected weather variable, the unit will be listed here."
                    },
                    "daily": {
                      "description": "For each selected daily weather variable, data will be returned as a floating-point array. Additionally, a `time` array will be returned with ISO8601 timestamps."
                    },
                    "daily_units": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "For each selected daily weather variable, the unit will be listed here."
                    },
                    "current_weather": {
                      "description": "current weather"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

Quotable API Integration

Custom GPT action to fetch quotes from Quotable API.

  • GET /randomGet a random quote
元の API スキーマ
openapi: 3.0.0
info:
  title: Quotable API Integration
  version: 1.0.0
  description: Custom GPT action to fetch quotes from Quotable API.
paths:
  /random:
    get:
      summary: Get a random quote
      operationId: getRandomQuote
      responses:
        '200':
          description: A random quote
          content:
            application/json:
              schema:
                type: object
                properties:
                  _id:
                    type: string
                    description: Unique identifier for the quote
                  content:
                    type: string
                    description: The quote text
                  author:
                    type: string
                    description: The author of the quote
                  tags:
                    type: array
                    items:
                      type: string
                    description: Tags related to the quote
servers:
  - url: https://api.quotable.io

Google Books API

API for interacting with Google Books.

  • GET /volumesSearch for books

    Search for books using keywords.

元の API スキーマ
openapi: 3.0.0
info:
  title: Google Books API
  description: API for interacting with Google Books.
  version: 1.0.0
servers:
  - url: https://www.googleapis.com/books/v1
    description: Google Books API server
paths:
  /volumes:
    get:
      operationId: searchBooks
      summary: Search for books
      description: Search for books using keywords.
      parameters:
        - name: q
          in: query
          required: true
          description: Query string for searching books.
          schema:
            type: string
        - name: maxResults
          in: query
          description: Maximum number of results to return.
          schema:
            type: integer
            format: int32
        - name: startIndex
          in: query
          description: Start index of the results.
          schema:
            type: integer
            format: int32
      responses:
        '200':
          description: A list of books
          content:
            application/json:
              schema: 
                type: object
                properties:
                  kind:
                    type: string
                  totalItems:
                    type: integer
                    format: int32
                  items:
                    type: array
                    items:
                      $ref: '#/components/schemas/Volume'
components:
  schemas:
    Volume:
      type: object
      properties:
        id:
          type: string
        volumeInfo:
          type: object
          properties:
            title:
              type: string
            authors:
              type: array
              items:
                type: string
            publishedDate:
              type: string