{
  "openapi": "3.0.1",
  "info": {
    "title": "Federal Bids & Subcontracting Leads by NAICS",
    "description": "For small federal contractors: open SAM.gov bids you can respond to with your set-asides, primes winning in your NAICS codes with their subcontracting plans, teaming partners, contracts ending soon and SBA SubNet posts, in one run. Official data, no API key. Pay per row.",
    "version": "0.0",
    "x-build-id": "NQIUGJeCLi7CmtaHI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/bjgomes~federal-bids-subcontracting-by-naics/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-bjgomes-federal-bids-subcontracting-by-naics",
        "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/bjgomes~federal-bids-subcontracting-by-naics/runs": {
      "post": {
        "operationId": "runs-sync-bjgomes-federal-bids-subcontracting-by-naics",
        "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/bjgomes~federal-bids-subcontracting-by-naics/run-sync": {
      "post": {
        "operationId": "run-sync-bjgomes-federal-bids-subcontracting-by-naics",
        "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": [
          "naicsCodes"
        ],
        "properties": {
          "naicsCodes": {
            "title": "NAICS codes",
            "type": "array",
            "description": "Your NAICS codes: 6 digits for one code (541512), or 4 or 2 digits for a whole group (5415 is all of 5415xx). Up to 20. Open bids, primes, expiring contracts and subcontracting posts are all found by these codes.",
            "items": {
              "type": "string"
            }
          },
          "certifications": {
            "title": "Certifications you hold",
            "type": "array",
            "description": "Decides which set-aside bids you can respond to. Any of these implies small business; SDVOSB implies VOSB; EDWOSB implies WOSB. Leave empty if you hold none: you'll see bids open to everyone. Also used to find teaming partners: firms winning the same set-asides.",
            "items": {
              "type": "string",
              "enum": [
                "small",
                "8a",
                "hubzone",
                "sdvosb",
                "vosb",
                "wosb",
                "edwosb"
              ],
              "enumTitles": [
                "Small business",
                "8(a)",
                "HUBZone",
                "SDVOSB (service-disabled veteran-owned)",
                "VOSB (veteran-owned)",
                "WOSB (women-owned)",
                "EDWOSB (economically disadvantaged women-owned)"
              ]
            },
            "default": []
          },
          "sections": {
            "title": "What to find",
            "type": "array",
            "description": "Open bids from SAM.gov; primes winning in your codes (and teaming partners) from USAspending; contracts ending soon from USAspending (needs award states or agencies); subcontracting posts from SBA SubNet.",
            "items": {
              "type": "string",
              "enum": [
                "opportunities",
                "primes",
                "expiringContracts",
                "subcontractingPosts"
              ],
              "enumTitles": [
                "Open bids (SAM.gov)",
                "Primes and teaming partners (USAspending)",
                "Contracts ending soon (USAspending)",
                "Subcontracting posts (SBA SubNet)"
              ]
            },
            "default": [
              "opportunities",
              "primes",
              "expiringContracts",
              "subcontractingPosts"
            ]
          },
          "setAsideFilter": {
            "title": "Which bids",
            "enum": [
              "eligible",
              "setAsidesOnly",
              "all"
            ],
            "type": "string",
            "description": "'Bids I can respond to': no set-aside, plus the set-asides your certifications qualify for. 'Only set-asides I hold'. 'All bids': every set-aside, each marked eligible or not.",
            "default": "eligible"
          },
          "states": {
            "title": "Place of performance states",
            "type": "array",
            "description": "Two-letter codes (TX, VA, DC). Empty means nationwide, which suits remote work. Most notices (about 65%) give no place of performance; see the next field.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeNoStateListed": {
            "title": "Keep bids with no place of performance",
            "type": "boolean",
            "description": "On: a bid with no place of performance is kept. Off: it's kept only when its contracting office is in one of your states. Only matters with states set.",
            "default": true
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "Which SAM.gov notices count as bids. Sources Sought and Presolicitations are the early ones: answer them to shape the requirement.",
            "items": {
              "type": "string",
              "enum": [
                "solicitation",
                "combined",
                "presolicitation",
                "sourcesSought",
                "specialNotice",
                "award"
              ],
              "enumTitles": [
                "Solicitation",
                "Combined Synopsis/Solicitation",
                "Presolicitation",
                "Sources Sought",
                "Special Notice",
                "Award Notice"
              ]
            },
            "default": [
              "solicitation",
              "combined",
              "presolicitation",
              "sourcesSought"
            ]
          },
          "postedWithinDays": {
            "title": "Posted or amended within (days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Leave out notices not posted or amended in this many days. Closed notices are always left out.",
            "default": 90
          },
          "minDaysToRespond": {
            "title": "Minimum days to respond",
            "minimum": 0,
            "maximum": 90,
            "type": "integer",
            "description": "Leave out bids due in fewer days than this. Notices without a response date are kept.",
            "default": 3
          },
          "keywords": {
            "title": "Also find these words",
            "type": "array",
            "description": "Also include bids and SubNet posts whose title or description has any of these words or phrases (whole words), whatever their NAICS code. About 13% of notices have no NAICS code. Used for primes only when no NAICS codes are given.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Leave out these words",
            "type": "array",
            "description": "Leave out bids and SubNet posts whose title or description has any of these words or phrases (whole words).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludeArchitectEngineer": {
            "title": "Leave out architect-engineer work",
            "type": "boolean",
            "description": "Leave out A-E design work (PSC codes starting with C: building, roof, HVAC and elevator design by licensed architects and engineers, bought on an SF 330). Common under 541330. Applies to bids, primes and expiring contracts.",
            "default": true
          },
          "servicesOnly": {
            "title": "Services only",
            "type": "boolean",
            "description": "Leave out product buys (PSC codes starting with a digit, such as IT equipment). Applies to bids, primes and expiring contracts. Keeps reseller primes out of your teaming list. Leave off if you sell products.",
            "default": false
          },
          "excludeClearanceRequired": {
            "title": "Leave out bids that mention a clearance",
            "type": "boolean",
            "description": "Every bid is flagged when it mentions a security clearance (Secret, TS/SCI, SCIF, polygraph, facility clearance). A CAC or base pass doesn't count. On: flagged bids are left out.",
            "default": false
          },
          "awardStates": {
            "title": "Award states",
            "type": "array",
            "description": "Two-letter codes. Limits primes, teaming partners and expiring contracts to work performed in these states. Empty means nationwide, where the largest primes dominate.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "awardAgencies": {
            "title": "Award agencies",
            "type": "array",
            "description": "Limits primes, teaming partners and expiring contracts to awards from these agencies.",
            "items": {
              "type": "string",
              "enum": [
                "Department of Defense",
                "Department of Veterans Affairs",
                "Department of Homeland Security",
                "Department of Health and Human Services",
                "General Services Administration",
                "Department of Energy",
                "National Aeronautics and Space Administration",
                "Department of Justice",
                "Department of State",
                "Department of the Treasury",
                "Department of Transportation",
                "Department of Agriculture",
                "Department of Commerce",
                "Department of the Interior",
                "Department of Labor",
                "Department of Education",
                "Department of Housing and Urban Development",
                "Environmental Protection Agency",
                "Small Business Administration",
                "Social Security Administration",
                "Office of Personnel Management",
                "Agency for International Development",
                "National Science Foundation"
              ]
            },
            "default": []
          },
          "awardLookbackMonths": {
            "title": "Award lookback (months)",
            "minimum": 3,
            "maximum": 60,
            "type": "integer",
            "description": "Primes are ranked by dollars obligated to them in your codes over this many months.",
            "default": 12
          },
          "maxPrimes": {
            "title": "Maximum primes per list",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many primes to profile, largest first, and as many teaming partners. Each profile is one charged row.",
            "default": 15
          },
          "primeSize": {
            "title": "Prime size",
            "enum": [
              "otherThanSmall",
              "all"
            ],
            "type": "string",
            "description": "'Other than small': large businesses, the ones FAR 19.702 requires to hold a subcontracting plan on contracts over $900,000 ($2 million in construction). 'All': small businesses too.",
            "default": "otherThanSmall"
          },
          "includeSetAsidePeers": {
            "title": "Find teaming partners",
            "type": "boolean",
            "description": "Also list the firms winning the set-asides you hold (SDVOSB set-asides for an SDVOSB, and so on) in your codes. Needs at least one certification.",
            "default": true
          },
          "expiringWithinMonths": {
            "title": "Contracts ending within (months)",
            "minimum": 1,
            "maximum": 36,
            "type": "integer",
            "description": "List contracts in your codes whose current end date falls in the next this many months, largest first: recompetes to prepare for, or incumbents to team with.",
            "default": 12
          },
          "expiringMinAmount": {
            "title": "Minimum contract value (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Leave out expiring contracts below this value. 0 keeps all.",
            "default": 100000
          },
          "maxExpiringContracts": {
            "title": "Maximum expiring contracts",
            "minimum": 1,
            "maximum": 4000,
            "type": "integer",
            "description": "How many expiring contracts to list, largest first. Each is one charged row.",
            "default": 100
          },
          "onlyNew": {
            "title": "Only what's new since the last run",
            "type": "boolean",
            "description": "Every row says whether it's new or updated since the last run of the same NAICS codes and keywords. On: rows you already got are left out, and not charged. Schedule it daily.",
            "default": false
          },
          "maxResultsPerSection": {
            "title": "Maximum rows per section",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "A ceiling on rows from each section. Set a maximum cost per run for a hard ceiling on spend.",
            "default": 500
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}