{
  "openapi": "3.0.1",
  "info": {
    "title": "United States Data Center Development Monitor",
    "description": "Bounded, evidence-backed US data center project events from a documented supported source set, with coverage receipts and safe changes.",
    "version": "1.0",
    "x-build-id": "4z1skaRE4lo7N19Vl"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/felixgoldwin~united-states-data-center-development-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-felixgoldwin-united-states-data-center-development-monitor",
        "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/felixgoldwin~united-states-data-center-development-monitor/runs": {
      "post": {
        "operationId": "runs-sync-felixgoldwin-united-states-data-center-development-monitor",
        "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/felixgoldwin~united-states-data-center-development-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-felixgoldwin-united-states-data-center-development-monitor",
        "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": {
          "mode": {
            "title": "Run mode",
            "enum": [
              "snapshot",
              "changes"
            ],
            "type": "string",
            "description": "Snapshot emits current evidence in the bounded source window. Changes compares with an explicit baseline; the Actor wrapper requires named storage and a single writer.",
            "default": "snapshot"
          },
          "sourceIds": {
            "title": "Source identifiers",
            "maxItems": 60,
            "uniqueItems": true,
            "type": "array",
            "description": "Optional allowlist of identifiers in the source registry. Omit to use enabled sources. Disabled sources return coverage receipts without fetching.",
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "US states",
            "maxItems": 60,
            "uniqueItems": true,
            "type": "array",
            "description": "Optional uppercase USPS state abbreviations, including DC. Omit or leave empty for all supported US locations. Unknown locations are not assumed to match a state.",
            "items": {
              "type": "string",
              "pattern": "^[A-Z]{2}$"
            },
            "default": []
          },
          "includeUncertain": {
            "title": "Include uncertain evidence",
            "type": "boolean",
            "description": "Include records carrying uncertainty flags. Disabling this does not make extraction exhaustive.",
            "default": true
          },
          "baselineStoreName": {
            "title": "Named baseline store",
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,62}$",
            "type": "string",
            "description": "Required for Actor changes mode. One writer only; use a dedicated store for each source/filter configuration. Omit for snapshots."
          },
          "baselineKey": {
            "title": "Baseline record key",
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]{0,63}$",
            "type": "string",
            "description": "Record within the explicit baseline store. Local CLI uses --baseline instead.",
            "default": "baseline-v1"
          },
          "singleWriterConfirmed": {
            "title": "One writer is configured",
            "type": "boolean",
            "description": "Required true in Actor changes mode. Confirm only after configuring non-overlapping runs and no other writer for this baseline. The platform key-value store is not a transactional lock.",
            "default": false
          },
          "maxRequests": {
            "title": "Maximum requests",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Global HTTP request budget, including policy checks, redirects and retries.",
            "default": 20
          },
          "maxResults": {
            "title": "Maximum event results",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Global output cap. Truncation is reported and cannot erase prior state.",
            "default": 50
          },
          "maxArticlesPerSource": {
            "title": "Maximum articles per source",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Bounded article or record window per source. Default 25 covers the current newsroom page and recent RSS summaries. Larger public-record windows remain subject to request, result, time and upstream truncation limits.",
            "default": 25
          },
          "timeoutSeconds": {
            "title": "Request timeout",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "Per-request timeout in seconds, subject to the remaining run deadline.",
            "default": 15
          },
          "maxRetries": {
            "title": "Maximum retries",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "Retries per transient request failure within the global budget. Denials are not bypassed.",
            "default": 1
          },
          "minDelaySeconds": {
            "title": "Minimum request delay",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "Minimum delay in seconds between requests to an origin; stricter source rules apply.",
            "default": 2
          },
          "maxRunSeconds": {
            "title": "Maximum runtime",
            "minimum": 5,
            "maximum": 1800,
            "type": "integer",
            "description": "Wall-clock deadline in seconds for source fetching.",
            "default": 60
          },
          "maxResponseBytes": {
            "title": "Maximum response bytes",
            "minimum": 10000,
            "maximum": 5000000,
            "type": "integer",
            "description": "Per-response byte cap. Oversized content creates an explicit coverage failure.",
            "default": 2000000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}