{
  "openapi": "3.0.1",
  "info": {
    "title": "H1b Visa Eligibility Checker",
    "description": "Get your H1B Visa eligibility score in 2 minutes! - AI Powered Tool\n\nInstant H1B eligibility analysis with AI. Upload resume → Get score, risk factors, lottery odds & action plan. Free for applicants, attorneys get unlimited!",
    "version": "0.0",
    "x-build-id": "1CsVAiMTiUCc4BbFj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/humorous_eccentric~h1b-eligibility-checker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-humorous_eccentric-h1b-eligibility-checker",
        "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/humorous_eccentric~h1b-eligibility-checker/runs": {
      "post": {
        "operationId": "runs-sync-humorous_eccentric-h1b-eligibility-checker",
        "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/humorous_eccentric~h1b-eligibility-checker/run-sync": {
      "post": {
        "operationId": "run-sync-humorous_eccentric-h1b-eligibility-checker",
        "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": [
          "userType",
          "resumeInputMethod",
          "jobTitle",
          "location"
        ],
        "properties": {
          "userType": {
            "title": "I am a/an",
            "enum": [
              "applicant",
              "attorney"
            ],
            "type": "string",
            "description": "🎓 Applicants: Pay-per-use pricing | ⚖️ Attorneys: FREE unlimited access with white-label branding",
            "default": "applicant"
          },
          "resumeInputMethod": {
            "title": "How would you like to provide your resume?",
            "enum": [
              "text",
              "file"
            ],
            "type": "string",
            "description": "Choose the most convenient option for you",
            "default": "text"
          },
          "resumeText": {
            "title": "Resume/CV Content",
            "minLength": 100,
            "maxLength": 50000,
            "type": "string",
            "description": "✍️ Paste your complete resume here. Include:\n• Education (degrees, universities, years)\n• Work Experience (job titles, companies, duration, achievements)\n• Skills (technical and soft skills)\n\n💡 Tip: The more detail you provide, the better our analysis!",
            "default": "Master of Science in Computer Science, Stanford University (2018-2020). Bachelor of Technology, IIT Delhi (2014-2018). Senior Software Engineer at Google (2020-Present). Skills: Python, Java, React, AWS, Docker."
          },
          "resumeFile": {
            "title": "Upload Resume",
            "type": "string",
            "description": "📎 Supported formats: PDF, DOCX\n📏 Maximum size: 10 MB\n⚡ We'll automatically extract and analyze the text"
          },
          "jobTitle": {
            "title": "Target Job Title",
            "minLength": 2,
            "maxLength": 200,
            "type": "string",
            "description": "💼 The position you're applying for on your H1B petition (e.g., Software Engineer, Data Scientist, Marketing Manager, Business Analyst)",
            "default": "Software Engineer"
          },
          "jobDescription": {
            "title": "Job Description (Optional but Recommended)",
            "maxLength": 10000,
            "type": "string",
            "description": "📋 Paste the job description if available. This helps us assess specialty occupation requirements better."
          },
          "location": {
            "title": "Work Location",
            "minLength": 2,
            "maxLength": 100,
            "type": "string",
            "description": "📍 US City and State where you'll be working (e.g., San Francisco, CA or New York, NY)\n\n💡 This is used for prevailing wage calculations",
            "default": "San Francisco, CA"
          },
          "expectedSalary": {
            "title": "Expected Annual Salary (USD) - Optional",
            "minimum": 30000,
            "maximum": 1000000,
            "type": "integer",
            "description": "💰 Your expected annual salary. We'll check if it meets prevailing wage requirements."
          },
          "isPremium": {
            "title": "Unlock Premium Analysis",
            "type": "boolean",
            "description": "🚀 **Premium Features (₹99 / $1.19):**\n\n✅ H1B Lottery Odds Calculator (based on education level)\n✅ Detailed Prevailing Wage Level Analysis (I, II, III, IV)\n✅ Complete Timeline with Key Dates & Deadlines\n✅ Professional Support Letter Template\n✅ Document Preparation Checklists\n✅ Priority Processing Recommendations\n\n🎁 **FREE for Immigration Attorneys!**",
            "default": false
          },
          "includeAlternatives": {
            "title": "Include Alternative Visa Options",
            "type": "boolean",
            "description": "🔄 Get recommendations for other visa categories if H1B isn't suitable (O-1, L-1, E-2, etc.)",
            "default": true
          },
          "attorneyBranding": {
            "title": "White-Label Branding Configuration",
            "maxLength": 2000,
            "type": "string",
            "description": "🏢 **Attorney Feature:** Add your law firm's branding to client reports\n\n📝 Enter your firm details in JSON format:\n```json\n{\n  \"firmName\": \"Your Law Firm Name\",\n  \"contactEmail\": \"contact@yourfirm.com\",\n  \"phone\": \"(555) 123-4567\",\n  \"website\": \"https://yourfirm.com\",\n  \"logo\": \"https://yourfirm.com/logo.png\"\n}\n```\n\n⚠️ Only works when User Type = Attorney"
          },
          "outputFormat": {
            "title": "Report Format",
            "enum": [
              "pdf",
              "html",
              "json"
            ],
            "type": "string",
            "description": "📊 Choose your preferred output format",
            "default": "pdf"
          },
          "language": {
            "title": "Report Language",
            "enum": [
              "en",
              "es",
              "zh",
              "hi"
            ],
            "type": "string",
            "description": "🌍 Language for the eligibility report",
            "default": "en"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}