{
  "openapi": "3.0.1",
  "info": {
    "title": "Clojars Clojure & Enterprise JVM Artifact Scraper",
    "description": "Extract official Clojars Clojure, ClojureScript & JVM artifacts — including download counts, stable vs pre-release SemVer versions, Maven POM licenses, SCM commit tags, direct dependencies, and ready-to-paste deps.edn/Leiningen coordinates with zero API keys.",
    "version": "1.0",
    "x-build-id": "oOYVhifAFn1OtgjaX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/bifrost-data~clojars-jvm-registry-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-bifrost-data-clojars-jvm-registry-scraper",
        "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/bifrost-data~clojars-jvm-registry-scraper/runs": {
      "post": {
        "operationId": "runs-sync-bifrost-data-clojars-jvm-registry-scraper",
        "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/bifrost-data~clojars-jvm-registry-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-bifrost-data-clojars-jvm-registry-scraper",
        "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",
        "properties": {
          "search_queries": {
            "title": "Clojars Search / Lucene Queries (Optional)",
            "type": "array",
            "description": "Search across the Clojars artifact index using keywords or Lucene field syntax (e.g., 'ring', 'openapi', 'kafka', 'jdbc', 'mcp', 'group-id:metosin', '\"json schema\"'). Leave empty if auditing specific groups or exact artifacts.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "groups": {
            "title": "Clojars Group Namespaces (Optional)",
            "type": "array",
            "description": "Fetch all artifacts published under specific Clojars groups via /api/groups/{group}: e.g., 'metosin', 'ring', 'babashka', 'com.taoensso', 'integrant', 'http-kit', 'clj-kondo', 'com.github.seancorfield'.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "exact_artifacts": {
            "title": "Exact Artifact Coordinates or Clojars URLs (Optional)",
            "type": "array",
            "description": "Fetch specific libraries directly by 'group/jar' coordinate, unqualified 'jar' name, Maven 'group:jar', or full https://clojars.org/... URLs (e.g., 'metosin/reitit', 'http-kit/http-kit', 'ring/ring-core', 'https://clojars.org/babashka/fs').",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "min_downloads": {
            "title": "Minimum Total Downloads",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Only emit artifacts with at least this many cumulative downloads on Clojars (rows below threshold are skipped at $0).",
            "default": 0
          },
          "group_namespace_types": {
            "title": "Group Namespace Verification Filter (Optional)",
            "type": "array",
            "description": "Filter by Clojars namespace convention: 'github_verified' (io.github.*, com.github.*), 'clojars_verified' (org.clojars.*, net.clojars.*), 'custom_reverse_domain' (com.*, org.*, io.*, dev.*), or 'legacy_unqualified' (single-segment group like ring, metosin).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "license_filter": {
            "title": "License Substring Filter (Optional)",
            "type": "string",
            "description": "Case-insensitive filter against POM license names/URLs (e.g., 'Eclipse', 'EPL', 'MIT', 'Apache'). Requires Deep Enrich POM Metadata enabled.",
            "default": ""
          },
          "require_scm_url": {
            "title": "Require Git / SCM Repository URL",
            "type": "boolean",
            "description": "Supply-chain provenance filter: only emit artifacts that declare a verifiable source repository URL in Clojars homepage or Maven POM <scm>.",
            "default": false
          },
          "exclude_snapshot_only": {
            "title": "Exclude SNAPSHOT-Only / Unreleased Shells ($0 Skip)",
            "type": "boolean",
            "description": "Automatically skip ephemeral '-SNAPSHOT'-only uploads that have zero non-SNAPSHOT releases ($0 charge).",
            "default": true
          },
          "deep_enrich_artifact": {
            "title": "Deep Enrich Download Telemetry & Version History",
            "type": "boolean",
            "description": "Fetch /api/artifacts/{group}/{jar} concurrently to resolve total downloads, latest stable vs pre-release versions, and per-version download counts.",
            "default": true
          },
          "deep_enrich_pom": {
            "title": "Deep Enrich Maven POM Licenses, SCM SHA & Dependencies",
            "type": "boolean",
            "description": "Fetch the official Maven .pom XML from repo.clojars.org to extract SPDX/POM license declarations, <scm> Git URL & commit tag, and direct compile/runtime dependencies for SBOM audits.",
            "default": true
          },
          "include_test_dependencies": {
            "title": "Include Test/Provided Scope Dependencies in POM List",
            "type": "boolean",
            "description": "When enabled, include Maven dependencies with scope 'test' or 'provided' alongside compile/runtime dependencies.",
            "default": false
          },
          "max_search_pages_per_query": {
            "title": "Max Search Pages Per Query",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "Maximum number of Clojars search result pages (/search?format=json&page=N) to traverse per search query.",
            "default": 3
          },
          "sort_by": {
            "title": "Sort Results By",
            "enum": [
              "downloads_desc",
              "created_at_desc",
              "coordinate_asc"
            ],
            "type": "string",
            "description": "Order verified Clojars artifacts by total downloads (highest adoption first), newest release timestamp, or canonical coordinate (A-Z).",
            "default": "downloads_desc"
          },
          "max_items": {
            "title": "Max Verified Artifact Records",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of verified Clojars JVM artifact records to emit in this run.",
            "default": 50
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}