{
  "openapi": "3.1.0",
  "info": {
    "title": "Lorem Ipsum API",
    "version": "1.0.0",
    "description": "Words, sentences or paragraphs of Lorem Ipsum on demand for layouts, mockups and test data.\n\nGenerate placeholder text on demand: words, sentences or paragraphs of classic Lorem Ipsum in the quantity you ask for, ready for layouts, mockups, templates and test data.",
    "contact": {
      "name": "Data and APIs",
      "url": "https://dataandapis.com/contact"
    },
    "termsOfService": "https://dataandapis.com/terms-of-service",
    "license": {
      "name": "Data and APIs Terms of Service",
      "url": "https://dataandapis.com/terms-of-service"
    },
    "x-logo": {
      "url": "https://dataandapis.com/images/lorem-ipsum.webp"
    }
  },
  "externalDocs": {
    "description": "Documentation, live tester and pricing",
    "url": "https://dataandapis.com/apis/lorem-ipsum"
  },
  "servers": [
    {
      "url": "https://lorem-ipsum.dataandapis.com"
    }
  ],
  "tags": [
    {
      "name": "Tools",
      "description": "Lorem Ipsum API belongs to the Tools category of the Data and APIs catalog."
    }
  ],
  "paths": {
    "/v1/paragraph": {
      "get": {
        "operationId": "paragraph",
        "summary": "Paragraph",
        "description": "Paragraph endpoint of the Lorem Ipsum API. Costs 1 token per call.",
        "externalDocs": {
          "url": "https://dataandapis.com/apis/lorem-ipsum/paragraph"
        },
        "parameters": [
          {
            "name": "amount",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "2"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "text": "Excepteur excepteur tempor ea nostrud consequat minim nostrud. Dolore proident tempor commodo exercitation pariatur ad. Voluptate est est in id nostrud in sunt deserunt id. Voluptate veniam do sit veniam.\nMollit officia consequat laborum fugiat. Ex quis dolore ullamco ullamco est consequat magna cupidatat ex ut velit magna ullamco. Fugiat reprehenderit ut nulla nulla minim ut. Ad ipsum enim est ad elit proident laboris qui Lorem. Pariatur consequat laboris dolore eu velit ut voluptate velit veniam Lorem ad."
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key"
          },
          "402": {
            "description": "Subscription past due; the response carries a payment_url"
          },
          "429": {
            "description": "Monthly token allowance exhausted"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1/sentence": {
      "get": {
        "operationId": "sentence",
        "summary": "Sentence",
        "description": "Sentence endpoint of the Lorem Ipsum API. Costs 1 token per call.",
        "externalDocs": {
          "url": "https://dataandapis.com/apis/lorem-ipsum/sentence"
        },
        "parameters": [
          {
            "name": "amount",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "2"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "text": "Commodo qui consectetur ad pariatur duis dolore do adipisicing fugiat aliquip ut reprehenderit. Do elit labore excepteur nulla nulla sint ipsum ut."
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key"
          },
          "402": {
            "description": "Subscription past due; the response carries a payment_url"
          },
          "429": {
            "description": "Monthly token allowance exhausted"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1/word": {
      "get": {
        "operationId": "word",
        "summary": "Word",
        "description": "Word endpoint of the Lorem Ipsum API. Costs 1 token per call.",
        "externalDocs": {
          "url": "https://dataandapis.com/apis/lorem-ipsum/word"
        },
        "parameters": [
          {
            "name": "amount",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "5"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "text": "ea qui sunt non sunt"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key"
          },
          "402": {
            "description": "Subscription past due; the response carries a payment_url"
          },
          "429": {
            "description": "Monthly token allowance exhausted"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Api-Key",
        "description": "Create a free key at https://dataandapis.com/sign-up. 500 tokens a month on the Free plan; this API costs 1 token per call."
      }
    }
  },
  "security": [
    {
      "ApiKey": []
    }
  ]
}