{
  "openapi": "3.1.0",
  "info": {
    "title": "DuckDuckGo Search (Node)",
    "summary": "DuckDuckGo search via Node TS. Same role as go-search-duck.",
    "description": "Express service. Accepts a URL to a DuckDuckGo HTML page or a search query.",
    "version": "1.0.0",
    "contact": {
      "name": "baditaflorin",
      "url": "https://github.com/baditaflorin/node-search-duck"
    }
  },
  "servers": [
    {
      "url": "https://node-search-duck.0exec.com",
      "description": "Production"
    }
  ],
  "tags": [
    {
      "name": "search"
    },
    {
      "name": "scraping"
    }
  ],
  "paths": {
    "/": {
      "get": {
        "summary": "Search via DuckDuckGo",
        "responses": {
          "200": {
            "description": "application/json"
          },
          "400": {
            "description": "Bad request \u2014 missing/invalid params"
          },
          "500": {
            "description": "Server error"
          }
        },
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "required": false,
            "description": "Pre-built DuckDuckGo URL to fetch",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "output",
            "in": "query",
            "required": false,
            "description": "json (default) | xml",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "final",
            "in": "query",
            "required": false,
            "description": "true to return final formatted output",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/.deploy/version.json": {
      "get": {
        "summary": "Deploy metadata (gateway-served)",
        "responses": {
          "200": {
            "description": "JSON with service, commit, build_date"
          }
        },
        "tags": [
          "meta"
        ]
      }
    },
    "/_gw_health": {
      "get": {
        "summary": "Gateway-level liveness (always 200 if gateway up)",
        "responses": {
          "200": {
            "description": "ok"
          }
        },
        "tags": [
          "meta"
        ]
      }
    },
    "/openapi.json": {
      "get": {
        "summary": "This OpenAPI document",
        "responses": {
          "200": {
            "description": "OpenAPI 3.1 spec"
          }
        },
        "tags": [
          "meta"
        ]
      }
    },
    "/llms.txt": {
      "get": {
        "summary": "LLM-friendly plain-text description of this service",
        "responses": {
          "200": {
            "description": "text/plain"
          }
        },
        "tags": [
          "meta"
        ]
      }
    }
  },
  "components": {}
}
