Mood Based Inspirational Quote

Mood Based Inspirational Quote · GPT アクション

ZenQuotes API

An API for fetching inspirational quotes from historical figures.

  • GET /quotesFetch an array of 50 random quotes
  • GET /todayFetch the quote of the day
  • GET /randomFetch a random quote
  • GET /authors/{apiKey}Fetch an array of available authors (API Key Required)
  • GET /quotes/author/{author}/{apiKey}Fetch quotes from a specific author (API Key Required)
元の API スキーマ
{
  "openapi": "3.0.0",
  "info": {
    "title": "ZenQuotes API",
    "version": "1.0.0",
    "description": "An API for fetching inspirational quotes from historical figures."
  },
  "servers": [
    {
      "url": "https://zenquotes.io/api/quotes"
    }
  ],
  "paths": {
    "/quotes": {
      "get": {
        "summary": "Fetch an array of 50 random quotes",
        "operationId": "getRandomQuotes",
        "responses": {
          "200": {
            "description": "An array of quotes",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Quote"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/today": {
      "get": {
        "summary": "Fetch the quote of the day",
        "operationId": "getQuoteOfTheDay",
        "responses": {
          "200": {
            "description": "The quote of the day",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "$ref": "#/components/schemas/Quote"
                }
              }
            }
          }
        }
      }
    },
    "/random": {
      "get": {
        "summary": "Fetch a random quote",
        "operationId": "getRandomQuote",
        "responses": {
          "200": {
            "description": "A random quote",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "$ref": "#/components/schemas/Quote"
                }
              }
            }
          }
        }
      }
    },
    "/authors/{apiKey}": {
      "get": {
        "summary": "Fetch an array of available authors (API Key Required)",
        "operationId": "getAuthors",
        "parameters": [
          {
            "name": "apiKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "An array of authors",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/quotes/author/{author}/{apiKey}": {
      "get": {
        "summary": "Fetch quotes from a specific author (API Key Required)",
        "operationId": "getQuotesByAuthor",
        "parameters": [
          {
            "name": "author",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "apiKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "An array of quotes by the specified author",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Quote"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Quote": {
        "type": "object",
        "properties": {
          "q": {
            "type": "string",
            "description": "The quote text"
          },
          "a": {
            "type": "string",
            "description": "The author of the quote"
          },
          "h": {
            "type": "string",
            "description": "The quote in HTML format"
          }
        }
      }
    }
  }
}