{
  "openapi": "3.0.3",
  "info": {
    "title": "HelpGuides.io Documentation",
    "version": "1.0.0",
    "description": "API for searching knowledge base articles from docs.helpguides.io"
  },
  "servers": [
    {
      "url": "https://docs.helpguides.io/api/v1/public"
    }
  ],
  "paths": {
    "/search": {
      "get": {
        "summary": "Search Articles",
        "description": "Returns a list of articles matching the given search query.",
        "parameters": [
          {
            "name": "s",
            "in": "query",
            "description": "Search query string",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A list of matching articles",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchResults"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "SearchResults": {
        "type": "object",
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Post"
            }
          }
        }
      },
      "Post": {
        "type": "object",
        "properties": {
          "postuid": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "publish_status": {
            "type": "integer"
          },
          "post_type": {
            "type": "string"
          },
          "excerpt": {
            "type": "string"
          },
          "display_toc": {
            "type": "boolean"
          },
          "has_workingcopy": {
            "type": "boolean"
          },
          "allow_indexing": {
            "type": "boolean"
          },
          "date_updated": {
            "type": "string",
            "format": "date-time"
          },
          "date_created": {
            "type": "string",
            "format": "date-time"
          }
        }
      }
    }
  }
}