{
  "openapi": "3.0.1",
  "info": {
    "title": "State & Local Government Bids Feed (Official Open Data)",
    "description": "Open bids, RFPs, RFQs and lettings from official state, county, city and E-Rate open-data portals: NYC, LA region, Delaware, Montgomery County MD, TxDOT, Baton Rouge, and E-Rate Form 470s in every state. One schema. Filter by keyword, state, category and dates.",
    "version": "0.1",
    "x-build-id": "zpMzSE1zPeik5HTmZ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/novadata~state-local-bids-feed/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-novadata-state-local-bids-feed",
        "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/novadata~state-local-bids-feed/runs": {
      "post": {
        "operationId": "runs-sync-novadata-state-local-bids-feed",
        "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/novadata~state-local-bids-feed/run-sync": {
      "post": {
        "operationId": "run-sync-novadata-state-local-bids-feed",
        "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": {
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Official portals to query. Leave empty for all of them.",
            "items": {
              "type": "string",
              "enum": [
                "la_ramp",
                "nyc_city_record",
                "delaware",
                "montgomery_county_md",
                "baton_rouge",
                "txdot_lettings",
                "erate_form470"
              ],
              "enumTitles": [
                "Los Angeles regional (RAMP: City & County of LA, LAUSD, ports)",
                "New York City (City Record Online)",
                "State of Delaware (MyMarketplace open bids)",
                "Montgomery County, MD",
                "City of Baton Rouge / East Baton Rouge Parish, LA",
                "Texas DOT highway lettings (state & local district lets)",
                "E-Rate FCC Form 470 (K-12 schools & libraries, all states)"
              ]
            },
            "default": []
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Keep a bid if any keyword appears in its title, description, agency or category (case-insensitive). Leave empty to keep everything.",
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "Two-letter state codes, e.g. TX, NY. Statewide/local sources outside these states are skipped; E-Rate Form 470s are filtered by the applicant's state. Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Category groups",
            "type": "array",
            "description": "Normalised category group. It comes from the agency's own category where one is published (LA RAMP, NYC, Delaware UNSPSC, Montgomery's construction flag, TxDOT, E-Rate); otherwise it is inferred from the title.",
            "items": {
              "type": "string",
              "enum": [
                "construction",
                "goods",
                "services",
                "professional services",
                "technology",
                "other"
              ]
            }
          },
          "codePrefixes": {
            "title": "Commodity code prefixes",
            "type": "array",
            "description": "Keep only bids whose commodity code starts with one of these, e.g. 43 (UNSPSC IT). Only Delaware publishes codes (UNSPSC); none of these sources publish NAICS, so this filter drops every other source.",
            "items": {
              "type": "string"
            }
          },
          "postedWithinDays": {
            "title": "Posted within (days)",
            "minimum": 0,
            "type": "integer",
            "description": "Only bids posted in the last N days. 0 = no limit. Baton Rouge publishes no posting date and is skipped when this is set."
          },
          "dueAfter": {
            "title": "Due on or after",
            "type": "string",
            "description": "Only bids whose due/closing date is on or after this date. Defaults to today (open bids only)."
          },
          "dueBefore": {
            "title": "Due on or before",
            "type": "string",
            "description": "Only bids due on or before this date."
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many bids in total.",
            "default": 200
          },
          "maxPerSource": {
            "title": "Max results per source",
            "minimum": 0,
            "type": "integer",
            "description": "Cap per source so one large source (E-Rate, TxDOT) doesn't crowd out the rest. Default 25; set 0 for no cap.",
            "default": 25
          },
          "includeDescription": {
            "title": "Include descriptions",
            "type": "boolean",
            "description": "Include long descriptions where published (NYC, E-Rate, TxDOT summary, Baton Rouge notes). Emails and phone numbers are redacted.",
            "default": true
          },
          "includeRaw": {
            "title": "Include raw source row",
            "type": "boolean",
            "description": "Add the source row as returned by the portal (only the non-personal columns this actor requests).",
            "default": false
          },
          "socrataAppToken": {
            "title": "Socrata app token (optional)",
            "type": "string",
            "description": "Optional free Socrata app token for higher rate limits. Not needed for normal use."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}