{
  "openapi": "3.0.1",
  "info": {
    "title": "Public RFP Rebid Watch Report",
    "description": "Create public RFP snapshot, rebid timing, and proof-gated watch reports from public procurement sources and pasted notices.",
    "version": "0.1",
    "x-build-id": "EjrTafBNHEM0xK70l"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/taroyamada~public-rfp-rebid-watch-report/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-taroyamada-public-rfp-rebid-watch-report",
        "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/taroyamada~public-rfp-rebid-watch-report/runs": {
      "post": {
        "operationId": "runs-sync-taroyamada-public-rfp-rebid-watch-report",
        "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/taroyamada~public-rfp-rebid-watch-report/run-sync": {
      "post": {
        "operationId": "run-sync-taroyamada-public-rfp-rebid-watch-report",
        "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": {
          "reportTier": {
            "title": "Report Tier",
            "enum": [
              "snapshot",
              "rebid_timing"
            ],
            "type": "string",
            "description": "Select the public report value level. Watch summaries are planned and proof-gated, but not selectable during public launch.",
            "default": "snapshot"
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Products, services, agencies, incumbents, NAICS labels, or opportunity terms to score for fit.",
            "default": [
              "software modernization",
              "cybersecurity"
            ],
            "items": {
              "type": "string"
            }
          },
          "agencies": {
            "title": "Agencies",
            "type": "array",
            "description": "Target agencies or bureaus used for scoring and summaries.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "naicsCodes": {
            "title": "NAICS Codes",
            "type": "array",
            "description": "Optional NAICS codes used for scoring and summaries when present in pasted public records or public pages.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "opportunityUrls": {
            "title": "Opportunity URLs",
            "type": "array",
            "description": "Public RFP, solicitation, SAM.gov, Grants.gov, or agency opportunity URLs.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "awardUrls": {
            "title": "Award / Incumbent URLs",
            "type": "array",
            "description": "Public award, USAspending, or incumbent contract pages used for rebid timing evidence.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "publicNoticeText": {
            "title": "Public Notice Text",
            "type": "string",
            "description": "Paste public RFP/award text when you already have it. This avoids fetching and helps first-run success.",
            "default": ""
          },
          "recordsJson": {
            "title": "Records JSON",
            "type": "string",
            "description": "Advanced: paste an array of public notice records from an upstream dataset. sourceDatasetId is supported as an advanced workflow, but first-run examples use pasted text/URLs.",
            "default": ""
          },
          "sourceDatasetId": {
            "title": "Source Dataset ID",
            "type": "string",
            "description": "Advanced: user-owned upstream dataset ID. Used only when available to the run; upstream actor costs remain with the upstream run.",
            "default": ""
          },
          "sinceDays": {
            "title": "Since Days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "How far back to consider records for timing and watch summaries.",
            "default": 365
          },
          "watchWindowDays": {
            "title": "Watch Window Days",
            "minimum": 7,
            "maximum": 1095,
            "type": "integer",
            "description": "Forward-looking window for rebid/watch recommendations.",
            "default": 180
          },
          "maxRecords": {
            "title": "Max Records",
            "minimum": 1,
            "maximum": 250,
            "type": "integer",
            "description": "Maximum source records to analyze.",
            "default": 25
          },
          "maxChargeUsd": {
            "title": "Max Charge USD",
            "minimum": 0,
            "maximum": 500,
            "type": "number",
            "description": "Safety cap. If the selected report tier would exceed this cap, the run returns limit_reached with no charge.",
            "default": 9
          },
          "maxReports": {
            "title": "Max Reports",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Safety limit. V1 emits one report per run.",
            "default": 1
          },
          "delivery": {
            "title": "Delivery Mode",
            "enum": [
              "dataset",
              "webhook",
              "dataset_and_webhook"
            ],
            "type": "string",
            "description": "Write dataset rows, send final payload to webhookUrl, or both.",
            "default": "dataset"
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "HTTPS endpoint required when delivery uses webhook.",
            "default": ""
          },
          "demoMode": {
            "title": "Demo Mode",
            "type": "boolean",
            "description": "Return a no-charge sample report without external requests.",
            "default": false
          },
          "dryRun": {
            "title": "Dry Run",
            "type": "boolean",
            "description": "Set true to validate inputs and return a no-charge preview without external requests or dataset delivery.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}