{
  "openapi": "3.0.1",
  "info": {
    "title": "OMNIA Partners Contracts Scraper",
    "description": "Export OMNIA Partners, NCPA and US Communities cooperative contracts to CSV, Excel or JSON: suppliers, lead agencies, expiration dates, categories and contract PDFs. Filter by program, industry or category and find contracts expiring soon (upcoming rebids).",
    "version": "0.1",
    "x-build-id": "RxzFrWAiNZTLCoWH6"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gallant_illustration~omnia-partners-scrapper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gallant_illustration-omnia-partners-scrapper",
        "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/gallant_illustration~omnia-partners-scrapper/runs": {
      "post": {
        "operationId": "runs-sync-gallant_illustration-omnia-partners-scrapper",
        "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/gallant_illustration~omnia-partners-scrapper/run-sync": {
      "post": {
        "operationId": "run-sync-gallant_illustration-omnia-partners-scrapper",
        "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": {
          "query": {
            "title": "Search query",
            "type": "string",
            "description": "Leave empty to scrape the whole registry. Full-text search over contract title and description; combined with all other filters (AND)."
          },
          "industries": {
            "title": "Industries",
            "type": "array",
            "description": "Leave empty for no restriction. Filtered server-side by OMNIA. With several values selected, a contract matches if it belongs to at least one of them (OR).",
            "items": {
              "type": "string",
              "enum": [
                "government",
                "higher_ed",
                "k12",
                "nonprofit",
                "business_commercial",
                "private_equity",
                "real_estate"
              ],
              "enumTitles": [
                "Government",
                "Higher Education",
                "K-12",
                "Nonprofit",
                "Business & Commercial",
                "Private Equity",
                "Real Estate"
              ]
            }
          },
          "contractSectors": {
            "title": "Contract sector",
            "type": "array",
            "description": "Leave empty for no restriction. Public = public-sector contracts, Private = private-sector contracts. Several values are combined with OR.",
            "items": {
              "type": "string",
              "enum": [
                "Public",
                "Private"
              ],
              "enumTitles": [
                "Public",
                "Private"
              ]
            }
          },
          "sourcingEntities": {
            "title": "Sourcing entity (cooperative)",
            "type": "array",
            "description": "Leave empty for no restriction. The cooperative or program the contract was awarded through. Several values are combined with OR.",
            "items": {
              "type": "string",
              "enum": [
                "OMNIA Public Sector",
                "OMNIA Private Sector",
                "NCPA",
                "US Communities",
                "BA",
                "Prime Advantage",
                "National IPA",
                "Premier"
              ],
              "enumTitles": [
                "OMNIA Public Sector",
                "OMNIA Private Sector",
                "NCPA",
                "US Communities",
                "BA",
                "Prime Advantage",
                "National IPA",
                "Premier"
              ]
            }
          },
          "verticals": {
            "title": "Vertical",
            "type": "array",
            "description": "Leave empty for no restriction. Several values are combined with OR.",
            "items": {
              "type": "string",
              "enum": [
                "Facilities, Logistics & Production",
                "IT & Telecom",
                "Corporate Services",
                "Business & Educational",
                "Construction, Architecture & Engineering",
                "Furniture",
                "Food and Nutrition",
                "Undefined"
              ],
              "enumTitles": [
                "Facilities, Logistics & Production",
                "IT & Telecom",
                "Corporate Services",
                "Business & Educational",
                "Construction, Architecture & Engineering",
                "Furniture",
                "Food and Nutrition",
                "Undefined"
              ]
            }
          },
          "awardStructures": {
            "title": "Award structure",
            "type": "array",
            "description": "Leave empty for no restriction. Single-Award = one supplier, Multi-Award = several suppliers. Several values are combined with OR.",
            "items": {
              "type": "string",
              "enum": [
                "Single-Award",
                "Multi-Award"
              ],
              "enumTitles": [
                "Single-Award",
                "Multi-Award"
              ]
            }
          },
          "subcategories": {
            "title": "Subcategories",
            "type": "array",
            "description": "Leave empty for no restriction. Exact, case-sensitive match against an OMNIA subcategory, e.g. \"Software\". Values are not validated by the schema, so a typo matches nothing. Several values are combined with OR.",
            "items": {
              "type": "string"
            }
          },
          "leadAgencies": {
            "title": "Lead agency",
            "type": "array",
            "description": "Leave empty for no restriction. Exact, case-sensitive match against the agency name, e.g. \"Region 4 Education Service Center\". Several values are combined with OR.",
            "items": {
              "type": "string"
            }
          },
          "stateAdoptedStates": {
            "title": "States (state adoption)",
            "type": "array",
            "description": "Leave empty for no restriction. Two-letter US state codes, exact case-sensitive match, e.g. \"UT\". Several values are combined with OR.",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Leave empty for no restriction. Filtered by the Actor after all pages are fetched (not server-side by OMNIA). Several values are combined with OR.",
            "items": {
              "type": "string",
              "enum": [
                "Apparel",
                "Business & Professional Services",
                "Computers & Accessories",
                "Construction & Facilities Services",
                "Construction & Hardware",
                "Education & Training Services",
                "Electronics & Accessories",
                "Facilities & MRO",
                "Fleet Services",
                "Food & Beverage",
                "Food & Nutrition Services",
                "Foodservice & Breakroom",
                "Furniture & Furnishings",
                "Industrial & Manufacturing",
                "Industrial & Manufacturing Services",
                "Information Technology Services",
                "Janitorial & Cleaning",
                "Medical & Laboratory",
                "Medical & Laboratory Services",
                "Office Supplies",
                "Parks & Recreation",
                "Public & Community Services",
                "Safety & Security",
                "School Supplies"
              ]
            }
          },
          "newOnly": {
            "title": "New contracts only",
            "type": "boolean",
            "description": "Off by default, meaning no restriction (it does NOT mean \"old contracts only\"). Turn on to keep only contracts that OMNIA marks as new.",
            "default": false
          },
          "stateAdoptedOnly": {
            "title": "State-adopted only",
            "type": "boolean",
            "description": "Off by default, meaning no restriction. Turn on to keep only contracts adopted by at least one state.",
            "default": false
          },
          "expiresWithinDays": {
            "title": "Expires within N days",
            "minimum": 0,
            "type": "integer",
            "description": "Leave empty for no restriction. Keeps only contracts with a known expiration date that is at most this many days away (0 = expires today or has already expired)."
          },
          "maxItems": {
            "title": "Max contracts",
            "minimum": 1,
            "type": "integer",
            "description": "Caps the number of contracts delivered. Applied last, after all filters."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}