{
  "openapi": "3.0.1",
  "info": {
    "title": "US Apprenticeship Sponsor & Employer Leads Scraper",
    "description": "Scrape 26,000+ US registered apprenticeship program sponsors from official US DOL data: employers, union JATCs, colleges & training providers with contact name, email, phone, address, trade & registration date + lead score. Filter by state, trade, category & new sponsors. B2B leads + monitoring.",
    "version": "0.1",
    "x-build-id": "szdzCSBIe8g3bjsCV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~apprenticeship-sponsor-leads-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-apprenticeship-sponsor-leads-scraper",
        "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/scrapesage~apprenticeship-sponsor-leads-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-apprenticeship-sponsor-leads-scraper",
        "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/scrapesage~apprenticeship-sponsor-leads-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-apprenticeship-sponsor-leads-scraper",
        "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 / territories",
            "type": "array",
            "description": "Keep only sponsors in these USPS state / territory codes (e.g. CA, TX, NY, PR). Leave empty for the whole United States. The source covers all 50 states, DC, Puerto Rico, Guam and other territories.",
            "items": {
              "type": "string"
            }
          },
          "sponsorCategories": {
            "title": "Sponsor categories",
            "type": "array",
            "description": "Keep only these (derived) sponsor categories. 'employer' = direct company sponsor, 'union_jatc' = union joint apprenticeship & training committee, 'educational' = college / technical school, 'government_workforce' = government / workforce agency, 'association_nonprofit' = association / nonprofit intermediary, 'other' = unclassified.",
            "items": {
              "type": "string",
              "enum": [
                "employer",
                "union_jatc",
                "educational",
                "government_workforce",
                "association_nonprofit",
                "other"
              ],
              "enumTitles": [
                "Employer / company",
                "Union JATC",
                "College / technical school",
                "Government / workforce agency",
                "Association / nonprofit",
                "Other"
              ]
            }
          },
          "tradeKeywords": {
            "title": "Trade / occupation keywords",
            "type": "array",
            "description": "Keep only sponsors whose name or derived trade hints match any of these keywords (case-insensitive), e.g. electrical, plumbing, hvac, healthcare, manufacturing, carpentry, welding, it.",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Keep only sponsors in these cities (case-insensitive).",
            "items": {
              "type": "string"
            }
          },
          "counties": {
            "title": "Counties",
            "type": "array",
            "description": "Keep only sponsors in these counties (case-insensitive; the word 'County' is optional).",
            "items": {
              "type": "string"
            }
          },
          "zipCodes": {
            "title": "ZIP codes",
            "type": "array",
            "description": "Keep only sponsors in these 5-digit ZIP codes.",
            "items": {
              "type": "string"
            }
          },
          "nameQuery": {
            "title": "Organization name contains",
            "type": "string",
            "description": "Keep only sponsors whose organization name contains this text (case-insensitive)."
          },
          "newlyRegisteredOnly": {
            "title": "Only newly-registered sponsors (last 12 months)",
            "type": "boolean",
            "description": "Keep only sponsors whose program was registered within the last 365 days — the freshest workforce-investment buying signal.",
            "default": false
          },
          "registeredInLastDays": {
            "title": "Registered in last N days",
            "minimum": 1,
            "type": "integer",
            "description": "Keep only sponsors registered within this many days. Overrides the 12-month flag when set."
          },
          "registeredAfter": {
            "title": "Registered after",
            "type": "string",
            "description": "Keep only sponsors registered on/after this date (YYYY-MM-DD)."
          },
          "registeredBefore": {
            "title": "Registered before",
            "type": "string",
            "description": "Keep only sponsors registered on/before this date (YYYY-MM-DD)."
          },
          "withEmailOnly": {
            "title": "Only sponsors with an email",
            "type": "boolean",
            "description": "Keep only records that have a contact email address.",
            "default": false
          },
          "withPhoneOnly": {
            "title": "Only sponsors with a phone",
            "type": "boolean",
            "description": "Keep only records that have a phone number.",
            "default": false
          },
          "withContactPersonOnly": {
            "title": "Only sponsors with a named contact",
            "type": "boolean",
            "description": "Keep only records that name a contact person.",
            "default": false
          },
          "withWebsiteOnly": {
            "title": "Only sponsors with a website",
            "type": "boolean",
            "description": "Keep only records that have a website URL.",
            "default": false
          },
          "withAnyContactOnly": {
            "title": "Only sponsors with any contact info",
            "type": "boolean",
            "description": "Keep only records that have at least one of email, phone, contact person or website.",
            "default": false
          },
          "minLeadScore": {
            "title": "Minimum lead score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Keep only records whose derived 0-100 lead score is at least this value."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "leadScore",
              "newestRegistered",
              "oldestRegistered",
              "name",
              "state",
              "source"
            ],
            "type": "string",
            "description": "Ordering of the returned records (top N kept by this key).",
            "default": "leadScore"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of sponsor records to return.",
            "default": 1000
          },
          "deduplicateResults": {
            "title": "Deduplicate",
            "type": "boolean",
            "description": "Drop duplicate sponsors that share the same name, city, state and ZIP.",
            "default": true
          },
          "includeRawFields": {
            "title": "Include raw source fields",
            "type": "boolean",
            "description": "Attach the original source row (all 12 columns) under sourceFields on each record.",
            "default": true
          },
          "monitorMode": {
            "title": "Monitoring mode (only new / changed)",
            "type": "boolean",
            "description": "Only return sponsors that are new or whose contact, address or registration date changed since the last run with the same monitor key. Ideal on a Schedule to catch newly-registered apprenticeship sponsors as fresh leads.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Namespace for monitoring mode so independent monitors don't collide. Use a distinct key per saved configuration.",
            "default": "default"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. The source is a public US government file and usually needs no proxy, so leave this off for the fastest run. Enable it only if your network rate-limits the download.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}