{
  "openapi": "3.0.1",
  "info": {
    "title": "US Visa Sponsor Leads - PERM Green Card, H-2A & H-2B",
    "description": "Scrape US employers that sponsor green cards (PERM) and seasonal work visas (H-2A farm & H-2B non-ag) from official DOL OFLC disclosure data: employer name, address, phone, FEIN, NAICS, attorney/agent, job, wage & worksite. B2B immigration-intent leads + lead score + monitoring.",
    "version": "0.1",
    "x-build-id": "JGgpg8y1n5drf7ITO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~us-visa-sponsor-leads-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-us-visa-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~us-visa-sponsor-leads-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-us-visa-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~us-visa-sponsor-leads-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-us-visa-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": {
          "programs": {
            "title": "Visa programs",
            "type": "array",
            "description": "Which DOL OFLC programs to pull. PERM = permanent green-card labor certifications, H-2A = temporary agricultural (farm) work visas, H-2B = temporary non-agricultural seasonal work visas.",
            "items": {
              "type": "string",
              "enum": [
                "PERM",
                "H-2A",
                "H-2B"
              ],
              "enumTitles": [
                "PERM (Green Card / Permanent Labor Certification)",
                "H-2A (Temporary Agricultural / Farm Workers)",
                "H-2B (Temporary Non-Agricultural Seasonal Workers)"
              ]
            },
            "default": [
              "PERM",
              "H-2A",
              "H-2B"
            ]
          },
          "outputMode": {
            "title": "Output mode",
            "enum": [
              "filings",
              "employers"
            ],
            "type": "string",
            "description": "filings = one row per visa filing (richest, with job/wage/worksite). employers = one aggregated sponsor profile per employer (totals, programs used, approval rate, top jobs).",
            "default": "filings"
          },
          "fiscalYears": {
            "title": "Fiscal years",
            "type": "array",
            "description": "Federal fiscal years to pull (e.g. [2025, 2024]). Leave empty for the latest available data. OFLC files run Oct 1 – Sep 30; the latest quarter of each year is used.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "quarter": {
            "title": "Quarter (optional)",
            "type": "string",
            "description": "Force a specific fiscal quarter (1–4). Leave blank to auto-pick the most complete (latest) quarter available. Q4 = full fiscal year."
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "Two-letter state codes (e.g. [\"CA\",\"TX\"]). Matches the worksite OR the employer location. Leave empty for all states.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "certifiedOnly": {
            "title": "Certified filings only",
            "type": "boolean",
            "description": "Keep only certified / approved filings (drop denied & withdrawn). Off by default so you can see every sponsor application.",
            "default": false
          },
          "caseStatuses": {
            "title": "Case statuses",
            "type": "array",
            "description": "Keep only these case statuses (substring match, e.g. [\"Certified\"], [\"Denied\"]). Leave empty for all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "employerNameContains": {
            "title": "Employer name contains",
            "type": "string",
            "description": "Keep only employers whose legal or trade name contains this text (case-insensitive)."
          },
          "jobTitleContains": {
            "title": "Job title contains",
            "type": "string",
            "description": "Keep only filings whose job title or SOC occupation contains this text (e.g. \"software\", \"nurse\", \"landscape\", \"farmworker\")."
          },
          "socCodes": {
            "title": "SOC occupation codes",
            "type": "array",
            "description": "Standard Occupational Classification code prefixes (e.g. [\"15-1252\",\"29-\"]). Leave empty for all occupations.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "naicsCodes": {
            "title": "NAICS industry codes",
            "type": "array",
            "description": "Employer NAICS industry code prefixes (e.g. [\"5415\",\"72\"]). Leave empty for all industries.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "worksiteCities": {
            "title": "Worksite cities",
            "type": "array",
            "description": "Keep only filings whose worksite city is in this list (case-insensitive).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minAnnualWage": {
            "title": "Minimum annual wage (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only filings whose offered or prevailing wage annualizes to at least this amount."
          },
          "minWorkers": {
            "title": "Minimum workers (H-2A/H-2B)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only filings requesting/certifying at least this many workers (applies to H-2A & H-2B)."
          },
          "decisionDateFrom": {
            "title": "Decision date from (YYYY-MM-DD)",
            "type": "string",
            "description": "Keep only filings with a decision date on or after this date."
          },
          "withEmployerPhoneOnly": {
            "title": "Only with employer phone",
            "type": "boolean",
            "description": "Keep only filings that carry an employer phone number.",
            "default": false
          },
          "withEmailOnly": {
            "title": "Only with an email",
            "type": "boolean",
            "description": "Keep only filings that carry an employer-contact or attorney email address.",
            "default": false
          },
          "withFeinOnly": {
            "title": "Only with FEIN",
            "type": "boolean",
            "description": "Keep only filings that carry the employer's Federal Employer Identification Number.",
            "default": false
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "leadScore",
              "wageHigh",
              "workersHigh",
              "recent",
              "employerName",
              "source"
            ],
            "type": "string",
            "description": "Order of results (the top N up to your limit are kept).",
            "default": "leadScore"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of records (filings or employer profiles) to return.",
            "default": 1000
          },
          "includeRawFields": {
            "title": "Include raw source fields",
            "type": "boolean",
            "description": "Attach the complete raw OFLC columns for each filing under `sourceFields` (richest export). Applies to filings mode.",
            "default": true
          },
          "monitorMode": {
            "title": "Monitor mode (only new)",
            "type": "boolean",
            "description": "Remember records seen in previous runs (in a named key-value store) and only emit NEW ones. Ideal for scheduled runs that surface only newly published sponsorships. Works alongside Apify Scheduler.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Names the monitor's memory so different filter setups track separately (e.g. \"ca-perm\", \"h2b-landscaping\").",
            "default": "default"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. The DOL files download cleanly with no proxy; a US residential proxy is used automatically as a fallback if a direct download is blocked.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}