{
  "openapi": "3.0.1",
  "info": {
    "title": "OpenTofu IaC Registry Provider & Module Scraper",
    "description": "Search and extract official OpenTofu IaC Registry providers and reusable cloud modules — including v-prefix normalized semver releases, protocol & OS/arch matrices, GPG signing keys, resource/datasource/function counts, and module input/output schemas with zero API keys or proxies.",
    "version": "1.0",
    "x-build-id": "XPM1hxxG6CrFVUb0u"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/bifrost-data~opentofu-registry-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-bifrost-data-opentofu-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~opentofu-registry-scraper/runs": {
      "post": {
        "operationId": "runs-sync-bifrost-data-opentofu-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~opentofu-registry-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-bifrost-data-opentofu-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": {
          "entity_type": {
            "title": "Registry Entity Mode",
            "enum": [
              "providers",
              "modules",
              "all"
            ],
            "type": "string",
            "description": "Choose 'providers' to audit OpenTofu IaC providers (4,700+ integrations), 'modules' to extract reusable cloud IaC blueprints (30,000+ modules), or 'all' to query both across unified search.",
            "default": "providers"
          },
          "search_queries": {
            "title": "Keyword Search Terms (Optional)",
            "type": "array",
            "description": "Search OpenTofu providers and modules by keyword (e.g., 'aws', 'eks', 'kubernetes', 'cloudflare', 'vpc', 'proxmox'). Leave empty in Providers or Modules mode to stream directly from the catalog index sorted by popularity.",
            "items": {
              "type": "string"
            }
          },
          "exact_coordinates": {
            "title": "Exact Provider or Module Coordinates (Optional)",
            "type": "array",
            "description": "Look up exact providers ('namespace/name', e.g. 'hashicorp/aws', 'hetznercloud/hcloud') or exact modules ('namespace/name/target', e.g. 'terraform-aws-modules/vpc/aws', 'hashicorp/consul/aws').",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "namespaces": {
            "title": "Filter by Publisher / Organization Namespaces (Optional)",
            "type": "array",
            "description": "Restrict results to specific publisher namespaces (e.g., 'opentofu', 'hashicorp', 'cloudflare', 'datadog', 'terraform-aws-modules', 'azure').",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "target_systems": {
            "title": "Filter Modules by Target Cloud / System (Optional)",
            "type": "array",
            "description": "Restrict modules to specific target providers/systems (e.g., 'aws', 'azurerm', 'google', 'kubernetes', 'hcloud'). Applies to module records.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "min_popularity": {
            "title": "Minimum Popularity / Star Score",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Only emit providers or modules with at least this popularity/star score in the OpenTofu Registry.",
            "default": 0
          },
          "published_within_days": {
            "title": "Updated / Released Within Last N Days (Optional Release Radar)",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Only return providers or modules whose latest version was published within the last N days (e.g., 7 for weekly CI dependency audits, 30 for monthly platform reviews). Leave unset for no date cutoff."
          },
          "exclude_blocked": {
            "title": "Exclude Blocked or Empty Shell Entries",
            "type": "boolean",
            "description": "Skip blocked/revoked registry entries and empty repositories with zero published versions ($0 charge).",
            "default": true
          },
          "exclude_forks": {
            "title": "Exclude Forked Providers (Canonical Upstream Only)",
            "type": "boolean",
            "description": "Skip providers marked as a fork ('fork_of') of another upstream provider ($0 charge).",
            "default": false
          },
          "enrich_docs_and_schemas": {
            "title": "Deep Inspect Docs Tree & Module Input/Output Schemas",
            "type": "boolean",
            "description": "Fetch each item's latest version index.json from api.opentofu.org to extract source Git repository URL, SPDX license, provider resource/datasource/function/guide counts, and module input/output/resource/submodule/example counts.",
            "default": true
          },
          "enrich_cli_protocol_and_gpg": {
            "title": "Enrich CLI Protocol Versions, OS/Arch Platforms & GPG Signing Keys",
            "type": "boolean",
            "description": "Query registry.opentofu.org/v1 CLI protocol endpoints to attach supported OpenTofu plugin protocols (5.0/6.0), OS/arch binary matrix, SHA-256 package hash, GPG signing key IDs, module X-Terraform-Get Git source URL, and dependency-cooldown discovered_at timestamp.",
            "default": false
          },
          "max_items": {
            "title": "Max Verified Registry Records",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum verified OpenTofu provider/module 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}