{
  "openapi": "3.0.1",
  "info": {
    "title": "Bugzilla REST Extractor",
    "description": "Point at any Bugzilla server (Mozilla, Red Hat, LibreOffice, Eclipse, Gentoo) and get one structured row per bug: summary, status, resolution, product, component, priority, severity, reporter, timestamps, keywords. Also lists products and server version.",
    "version": "0.1",
    "x-build-id": "EVsmASWdlW6lZfB2T"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/datamule~bugzilla-rest-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-datamule-bugzilla-rest-extractor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/datamule~bugzilla-rest-extractor/runs": {
      "post": {
        "operationId": "runs-sync-datamule-bugzilla-rest-extractor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/datamule~bugzilla-rest-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-datamule-bugzilla-rest-extractor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "sources"
        ],
        "properties": {
          "sources": {
            "title": "Bugzilla server URL(s)",
            "type": "array",
            "description": "One or more Bugzilla server base URLs. Bugzilla ships a native REST API with anonymous read, so ONE actor works against any install: https://bugzilla.redhat.com (Red Hat), https://bugs.eclipse.org/bugs (Eclipse — note the /bugs mount), https://bugs.documentfoundation.org (LibreOffice), https://bugzilla.mozilla.org (Mozilla), https://bugs.gentoo.org (Gentoo), or any self-hosted / project instance. Paste the server root as given (the /rest/... path is appended for you). When several are listed, each is queried in turn and a source that is unreachable or behind an anti-bot wall is skipped with a warning.",
            "default": [
              "https://bugs.eclipse.org/bugs"
            ],
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "bugs",
              "products",
              "version"
            ],
            "type": "string",
            "description": "What to extract. products (safe default): one row per selectable product. bugs: one row per bug from /rest/bug — REQUIRES at least one filter (Product, Component, Quick search, or Changed after), because an unbounded bug query is rejected by Bugzilla servers. products: one row per product from /rest/product?type=selectable (name, classification, milestones) — a cheap way to discover valid Product names to feed back into bugs mode. version: one row per server from /rest/version (a reachability + server-version probe).",
            "default": "products"
          },
          "product": {
            "title": "Product (bugs mode)",
            "type": "string",
            "description": "BUGS MODE filter. Restrict to a Bugzilla product, e.g. Fedora on bugzilla.redhat.com, JDT on bugs.eclipse.org, Firefox on bugzilla.mozilla.org. A comma-separated list (LibreOffice,Impress) matches any of them. Run products mode first to list valid product names. This is one of the filters that satisfies the 'at least one filter' requirement."
          },
          "component": {
            "title": "Component (bugs mode)",
            "type": "string",
            "description": "BUGS MODE filter. Restrict to a component within the product(s), e.g. Core, UI. A comma-separated list matches any. Combine with Product to narrow further. Satisfies the 'at least one filter' requirement on its own."
          },
          "status": {
            "title": "Status (bugs mode)",
            "type": "string",
            "description": "BUGS MODE filter. Restrict to one or more bug statuses, e.g. NEW, ASSIGNED, RESOLVED, CLOSED. A comma-separated list matches any. NOTE: status is a NARROWING filter only — it does NOT by itself bound the query, so pair it with Product / Component / Quick search / Changed after."
          },
          "quicksearch": {
            "title": "Quick search (bugs mode)",
            "type": "string",
            "description": "BUGS MODE. A Bugzilla quicksearch expression (the same mini-language as the tracker's search box), e.g. crash tab or ALL login. Matches summaries and metadata across the server. Satisfies the 'at least one filter' requirement on its own; combine with Product to scope it."
          },
          "changedAfter": {
            "title": "Changed after (bugs mode)",
            "type": "string",
            "description": "BUGS MODE filter. Only return bugs changed at or after this time — an absolute date/datetime (2026-01-01 or 2026-01-01T00:00:00Z) or a Bugzilla relative token (-7d, -1w, -3m). Great for incremental / recently-active harvests. Satisfies the 'at least one filter' requirement on its own."
          },
          "maxRecords": {
            "title": "Max records (global cap)",
            "minimum": 1,
            "type": "integer",
            "description": "A GLOBAL cap on the number of rows to emit across ALL sources (each row is one bug/product/server and one billable event). Pagination stops as soon as the cap is reached, so a small value is a cheap, deterministic sample. Leave empty to fetch every matching bug — a broad product query on a large server (Red Hat's Fedora alone has 700k+ bugs) can return very many rows.",
            "default": 20
          },
          "apiKey": {
            "title": "Bugzilla API key",
            "type": "string",
            "description": "Optional Bugzilla API key for reading restricted products or raising rate limits (sent as the X-BUGZILLA-API-KEY header). NOT required for the public bug corpus on any of the listed servers. Never logged."
          },
          "extraHeaders": {
            "title": "Extra request headers",
            "type": "object",
            "description": "Optional extra HTTP headers as a JSON object, e.g. {\"x-api-key\": \"...\"} for a gated / gateway-fronted instance. Not required for the public servers. Header values are never logged."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}