{
  "openapi": "3.0.1",
  "info": {
    "title": "Colocation & Data Center Scraper",
    "description": "Scrape colocation and data center facilities from datacenters.com. Browse by country, state, city, or provider, or fetch specific facilities by URL. Get address, coordinates, certifications, power/space specs, provider contact info, and media.",
    "version": "1.0",
    "x-build-id": "dMQWLmHIG6bHngLaI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~colocation-data-center-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-colocation-data-center-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/crawlerbros~colocation-data-center-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-colocation-data-center-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/crawlerbros~colocation-data-center-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-colocation-data-center-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "byCountry",
              "byState",
              "byCity",
              "byProvider",
              "byFacilityUrl"
            ],
            "type": "string",
            "description": "What to fetch.",
            "default": "byCountry"
          },
          "country": {
            "title": "Country (mode=byCountry/byState/byCity)",
            "enum": [
              "united-states",
              "china",
              "germany",
              "united-kingdom",
              "canada",
              "france",
              "india",
              "japan",
              "australia",
              "brazil",
              "netherlands",
              "spain",
              "italy",
              "indonesia",
              "singapore",
              "chile",
              "mexico",
              "hong-kong",
              "russia",
              "south-korea",
              "sweden",
              "switzerland",
              "ireland",
              "malaysia",
              "poland",
              "austria",
              "south-africa",
              "colombia",
              "united-arab-emirates",
              "israel",
              "belgium",
              "norway",
              "vietnam",
              "denmark",
              "finland",
              "peru",
              "thailand",
              "argentina",
              "taiwan",
              "new-zealand",
              "bulgaria",
              "costa-rica",
              "portugal",
              "turkey",
              "greece",
              "philippines"
            ],
            "type": "string",
            "description": "Country to browse. Required for byCountry, byState, and byCity modes.",
            "default": "united-states"
          },
          "state": {
            "title": "State / region (mode=byState/byCity)",
            "type": "string",
            "description": "State, province, or region name, e.g. `Texas`, `Virginia`, `California`, `England`, `Ontario`. Required for byState and byCity modes."
          },
          "city": {
            "title": "City (mode=byCity)",
            "type": "string",
            "description": "City name, e.g. `Dallas`, `Ashburn`, `Frankfurt am Main`. Required for byCity mode."
          },
          "provider": {
            "title": "Provider (mode=byProvider)",
            "enum": [
              "equinix",
              "digital-realty",
              "cyrusone",
              "qts-data-centers",
              "ntt-global-data-centers",
              "flexential",
              "cologix",
              "databank",
              "aligned-data-centers",
              "11-11-systems",
              "centersquare",
              "edged",
              "lumen",
              "ibm",
              "oracle",
              "amazon-aws",
              "microsoft-azure",
              "google",
              "vultr",
              "rackspace",
              "prime-data-centers",
              "365-data-centers",
              "powerhouse-data-centers",
              "skybox-datacenters",
              "overwatch",
              "cloudnium-llc",
              "at-t",
              "facebook",
              "apple-inc"
            ],
            "type": "string",
            "description": "A well-known data center provider / operator. Required for byProvider mode unless `providerOther` is set.",
            "default": "equinix"
          },
          "providerOther": {
            "title": "Provider — other (free text, mode=byProvider)",
            "type": "string",
            "description": "Any other provider/operator name not in the dropdown above (e.g. `Vantage Data Centers`, `Iron Mountain`). Overrides `provider` when set."
          },
          "facilityUrls": {
            "title": "Facility URLs (mode=byFacilityUrl)",
            "type": "array",
            "description": "Direct datacenters.com facility URLs or slugs, e.g. `https://www.datacenters.com/equinix-da1-dallas` or `equinix-da1-dallas`. Required for byFacilityUrl mode.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Hard cap on emitted facility records.",
            "default": 30
          },
          "fetchFullDetails": {
            "title": "Fetch full facility details",
            "type": "boolean",
            "description": "Visit each facility's detail page to extract address components, coordinates, certifications, power/space specs, provider contact info, images, and videos. Disable for faster runs that only need name/provider/address.",
            "default": true
          },
          "facilityType": {
            "title": "Filter: facility type",
            "enum": [
              "",
              "Colocation",
              "IaaS",
              "Internet Exchange",
              "Cloud",
              "Bare Metal",
              "Network",
              "Wholesale"
            ],
            "type": "string",
            "description": "Only include facilities offering this service type. Requires `fetchFullDetails=true`.",
            "default": ""
          },
          "certification": {
            "title": "Filter: certification",
            "enum": [
              "",
              "EU-US",
              "FISMA",
              "HIPAA",
              "ISO 14001",
              "ISO 22301",
              "ISO 23001",
              "ISO 27001",
              "ISO 45001",
              "ISO 50001",
              "ISO 9001",
              "LEED",
              "NIST 800-53",
              "PCI DSS",
              "SOC 1",
              "SOC 1 Type 2",
              "SOC 2 Type 1",
              "SOC 2 Type 2",
              "SSAE 16 Type 1",
              "SSAE 16 Type 2"
            ],
            "type": "string",
            "description": "Only include facilities holding this certification. Requires `fetchFullDetails=true`.",
            "default": ""
          },
          "minTotalPowerMw": {
            "title": "Filter: minimum total power (MW)",
            "minimum": 0,
            "maximum": 1000,
            "type": "number",
            "description": "Only include facilities reporting at least this much total power capacity, in megawatts. Requires `fetchFullDetails=true`."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}