{
  "openapi": "3.0.1",
  "info": {
    "title": "Safety Consultants Supply — US Directory by State + Specialty",
    "description": "US safety consulting supply directory. Two sources: OSHA's 52 state on-site consultation programs (free gov help) + web search across state × specialty (private firms). ~1,500-2,000 unique firms after dedup. For people routing OSHA-cited demand to safety supply.",
    "version": "1.0",
    "x-build-id": "P532qngReBG2Pj0pf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/belcaidsaad~safety-consultants-supply/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-belcaidsaad-safety-consultants-supply",
        "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/belcaidsaad~safety-consultants-supply/runs": {
      "post": {
        "operationId": "runs-sync-belcaidsaad-safety-consultants-supply",
        "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/belcaidsaad~safety-consultants-supply/run-sync": {
      "post": {
        "operationId": "run-sync-belcaidsaad-safety-consultants-supply",
        "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": {
          "states": {
            "title": "States (full names)",
            "type": "array",
            "description": "Restrict to specific US states. Use full names like 'Texas' or 'California'. Empty = all 50 + DC + territories.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "specialties": {
            "title": "Specialties",
            "type": "array",
            "description": "Restrict to specialties. Choose from: osha-general, trench-safety, process-safety, confined-space, combustible-dust, fire-safety, hazmat-safety, machine-guarding, lockout-tagout, fall-protection, electrical-safety, workplace-safety-remediation, industrial-hygiene, ergonomics. Empty = all 14.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "minFitScore": {
            "title": "Minimum Fit Score",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "Drop rows below this fit score (0–3). 1 = filter pure noise; 0 = keep everything.",
            "default": 1
          },
          "matchingIncidentTypes": {
            "title": "Filter to matching incident types",
            "type": "array",
            "description": "If set, keep only rows whose matching_incident_types include at least one of these.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "maxQueries": {
            "title": "Maximum DDG Web Search Queries",
            "minimum": 10,
            "maximum": 5000,
            "type": "integer",
            "description": "Cap on DuckDuckGo HTML POST queries. State × specialty cross-product is ~1,150 at full breadth.",
            "default": 1200
          },
          "politeDelayMs": {
            "title": "Polite Delay Between Requests (ms)",
            "minimum": 200,
            "maximum": 5000,
            "type": "integer",
            "description": "Throttle between DDG queries and between state-roster fetches. 800ms is comfortable.",
            "default": 800
          },
          "skipOshaDirectory": {
            "title": "Skip OSHA State Consultation Directory",
            "type": "boolean",
            "description": "Skip the 53 free state on-site consultation programs.",
            "default": false
          },
          "skipOtiCenters": {
            "title": "Skip OSHA OTI Education Centers",
            "type": "boolean",
            "description": "Skip the ~26 OSHA-authorized OTI Education Centers (universities/non-profits delivering OSHA 10/30).",
            "default": false
          },
          "skipOtiCourseEnrichment": {
            "title": "Skip OTI Course Enrichment",
            "type": "boolean",
            "description": "Skip the enrichment pass that adds course_titles + extra specialties to existing OTI center rows. Does NOT create new rows.",
            "default": false
          },
          "skipNioshErc": {
            "title": "Skip NIOSH Education and Research Centers",
            "type": "boolean",
            "description": "Skip the 18 NIOSH-funded ERCs (canonical hardcoded list with live URL health check).",
            "default": false
          },
          "skipOshaCAS": {
            "title": "Skip OSHA Compliance Assistance Specialists probe",
            "type": "boolean",
            "description": "Skip the CAS probe. Current state: OSHA's contactus/bystate is JS-AJAX hydrated, so probe surfaces as 'blocked' and emits zero rows. No fabricated CAS records.",
            "default": false
          },
          "skipDdgWebSearch": {
            "title": "Skip DuckDuckGo Web Search",
            "type": "boolean",
            "description": "Skip the web-search wide-net source. Use when DDG is blocked from the runtime and you want the state-roster spine only.",
            "default": false
          },
          "skipStateRosters": {
            "title": "Skip State-Level Consultation Rosters",
            "type": "boolean",
            "description": "Skip the per-state staff/team roster crawl.",
            "default": false
          },
          "skipSamGov": {
            "title": "Skip SAM.gov Entity Source",
            "type": "boolean",
            "description": "Skip the SAM.gov federally-registered EHS/safety consulting firm source. Requires SAM_GOV_API_KEY environment variable. Reports skipped_missing_api_key if absent.",
            "default": false
          },
          "skipUsaSpending": {
            "title": "Skip USA Spending Recipients Source",
            "type": "boolean",
            "description": "Skip the USA Spending federal contract recipients source. Public, no API key. Primary volume source for private safety/EHS consulting firms.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}