{
  "openapi": "3.0.1",
  "info": {
    "title": "LeadRocks Scraper",
    "description": "Export filtered B2B leads from the LeadRocks dataset by category, state, job title, company, and industry. Free users get 5 sample records; paying users get full filtered results.",
    "version": "1.0",
    "x-build-id": "yDNUeFTWfYfsuI0ix"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rigelbytes~leadrocks-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rigelbytes-leadrocks-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/rigelbytes~leadrocks-scraper/runs": {
      "post": {
        "operationId": "runs-sync-rigelbytes-leadrocks-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/rigelbytes~leadrocks-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-rigelbytes-leadrocks-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": {
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "LeadRocks lead categories to export (e.g. SEO, Trucking, Travel Nurse). Select one or more. If empty, use searchQueries instead.",
            "items": {
              "type": "string",
              "enum": [
                "accountants",
                "acupuncture",
                "airduct_cleaning",
                "angel_investor",
                "architect_designer",
                "audioligist",
                "author",
                "auto_body_shops",
                "auto_detailing",
                "barber",
                "book_keeping",
                "business_coach",
                "cannabis",
                "ceo_marketing_us_11",
                "chiropractor",
                "client_lists",
                "clinic_director",
                "commercial_cleaning",
                "construction",
                "consulting_management",
                "cyber_security",
                "dance_studio",
                "dentist",
                "dermatologist",
                "dispensary",
                "ecommerce",
                "event_manager",
                "event_planner",
                "fashion_brands",
                "fitness_coach",
                "flooring",
                "food_brands",
                "georgia_agency_owners",
                "gold_club",
                "grill",
                "gym_franchise",
                "gyms",
                "healing_coach_melbourne",
                "health_care",
                "health_care_ga_il_ok_al_ut_and_ka",
                "health_care_tn_oh_nv_kn_and_was",
                "health_coach",
                "health_insurance",
                "health_software",
                "healthtech",
                "holistic_dentist",
                "home_improvement_ontario",
                "home_insurance_agent",
                "home_remodeling",
                "hospice_jay_osk",
                "hvac",
                "injury_attorney",
                "insurance_broker",
                "it_business",
                "janitorial_services",
                "jewelry_stores",
                "jewelry_stores_chicago",
                "jewelry_stores_dc",
                "law_firm",
                "law_firm_51_200e",
                "lawn_care",
                "life_coach",
                "life_coaches",
                "life_insurance",
                "linkedin_search_list_1_marketing_ag",
                "logistic_broker",
                "manufacturing",
                "marketing",
                "marketing_agency",
                "marketing_us_1",
                "medical_practice",
                "medspa",
                "metal_company",
                "mortgage_broker",
                "new_jersey_agency_owners",
                "nj_attorneys",
                "non_profit",
                "non_profit_england",
                "nurse_practitioner",
                "nurse_staffing_agency",
                "ohio_business_coaches",
                "online_fitness_coach",
                "pain_management",
                "pediatric_dermatologist",
                "personal_assistant",
                "personal_injury",
                "pest_control",
                "plastic_surgery",
                "plumbing",
                "podcast",
                "podcast_06",
                "podcast_21",
                "podcast_31",
                "podcast_7",
                "podcast_feb_1",
                "pool_cali",
                "power_washing",
                "pr",
                "pr_agency",
                "pressure_washing",
                "real_estate_agent",
                "real_estate_developer",
                "real_estate_investor",
                "realtor",
                "realtors",
                "restaurant",
                "review",
                "roofing",
                "saas",
                "sale_powur",
                "seo",
                "software_devs",
                "solar",
                "staffing_agency",
                "stay_at_home_mom",
                "surveyor_self_employed_alex_f",
                "texas_agency_owners",
                "travel_nurse",
                "trucking",
                "wedding_photographer",
                "window_cleaning",
                "wrap_shops",
                "yoga_studio"
              ],
              "enumTitles": [
                "Accountants",
                "Acupuncture",
                "Airduct Cleaning",
                "Angel Investor",
                "Architect Designer",
                "Audioligist",
                "Author",
                "Auto Body Shops",
                "Auto Detailing",
                "Barber",
                "Book Keeping",
                "Business Coach",
                "Cannabis",
                "Ceo Marketing Us 11",
                "Chiropractor",
                "Client Lists",
                "Clinic Director",
                "Commercial Cleaning",
                "Construction",
                "Consulting Management",
                "Cyber Security",
                "Dance Studio",
                "Dentist",
                "Dermatologist",
                "Dispensary",
                "Ecommerce",
                "Event Manager",
                "Event Planner",
                "Fashion Brands",
                "Fitness Coach",
                "Flooring",
                "Food Brands",
                "Georgia Agency Owners",
                "Gold Club",
                "Grill",
                "Gym Franchise",
                "Gyms",
                "Healing Coach Melbourne",
                "Health Care",
                "Health Care Ga Il Ok Al Ut And Ka",
                "Health Care Tn Oh Nv Kn And Was",
                "Health Coach",
                "Health Insurance",
                "Health Software",
                "Healthtech",
                "Holistic Dentist",
                "Home Improvement Ontario",
                "Home Insurance Agent",
                "Home Remodeling",
                "Hospice Jay Osk",
                "HVAC",
                "Injury Attorney",
                "Insurance Broker",
                "IT Business",
                "Janitorial Services",
                "Jewelry Stores",
                "Jewelry Stores Chicago",
                "Jewelry Stores Dc",
                "Law Firm",
                "Law Firm 51 200E",
                "Lawn Care",
                "Life Coach",
                "Life Coaches",
                "Life Insurance",
                "Linkedin Search List 1 Marketing Ag",
                "Logistic Broker",
                "Manufacturing",
                "Marketing",
                "Marketing Agency",
                "Marketing Us 1",
                "Medical Practice",
                "Medspa",
                "Metal Company",
                "Mortgage Broker",
                "New Jersey Agency Owners",
                "Nj Attorneys",
                "Non Profit",
                "Non Profit England",
                "Nurse Practitioner",
                "Nurse Staffing Agency",
                "Ohio Business Coaches",
                "Online Fitness Coach",
                "Pain Management",
                "Pediatric Dermatologist",
                "Personal Assistant",
                "Personal Injury",
                "Pest Control",
                "Plastic Surgery",
                "Plumbing",
                "Podcast",
                "Podcast 06",
                "Podcast 21",
                "Podcast 31",
                "Podcast 7",
                "Podcast Feb 1",
                "Pool Cali",
                "Power Washing",
                "PR",
                "PR Agency",
                "Pressure Washing",
                "Real Estate Agent",
                "Real Estate Developer",
                "Real Estate Investor",
                "Realtor",
                "Realtors",
                "Restaurant",
                "Review",
                "Roofing",
                "SaaS",
                "Sale Powur",
                "SEO",
                "Software Devs",
                "Solar",
                "Staffing Agency",
                "Stay At Home Mom",
                "Surveyor Self Employed Alex F",
                "Texas Agency Owners",
                "Travel Nurse",
                "Trucking",
                "Wedding Photographer",
                "Window Cleaning",
                "Wrap Shops",
                "Yoga Studio"
              ]
            },
            "default": []
          },
          "searchQueries": {
            "title": "Search Queries",
            "type": "array",
            "description": "Free-text category search matched against category names (e.g. \"seo\", \"trucking\", \"travel nurse\", \"staffing agency\"). Use instead of (or together with) the categories list.",
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "Optional US state filter (abbreviations). Only leads in these states are returned when set.",
            "items": {
              "type": "string",
              "enum": [
                "AL",
                "AK",
                "AZ",
                "AR",
                "CA",
                "CO",
                "CT",
                "DE",
                "FL",
                "GA",
                "HI",
                "ID",
                "IL",
                "IN",
                "IA",
                "KS",
                "KY",
                "LA",
                "ME",
                "MD",
                "MA",
                "MI",
                "MN",
                "MS",
                "MO",
                "MT",
                "NE",
                "NV",
                "NH",
                "NJ",
                "NM",
                "NY",
                "NC",
                "ND",
                "OH",
                "OK",
                "OR",
                "PA",
                "RI",
                "SC",
                "SD",
                "TN",
                "TX",
                "UT",
                "VT",
                "VA",
                "WA",
                "WV",
                "WI",
                "WY"
              ],
              "enumTitles": [
                "Alabama",
                "Alaska",
                "Arizona",
                "Arkansas",
                "California",
                "Colorado",
                "Connecticut",
                "Delaware",
                "Florida",
                "Georgia",
                "Hawaii",
                "Idaho",
                "Illinois",
                "Indiana",
                "Iowa",
                "Kansas",
                "Kentucky",
                "Louisiana",
                "Maine",
                "Maryland",
                "Massachusetts",
                "Michigan",
                "Minnesota",
                "Mississippi",
                "Missouri",
                "Montana",
                "Nebraska",
                "Nevada",
                "New Hampshire",
                "New Jersey",
                "New Mexico",
                "New York",
                "North Carolina",
                "North Dakota",
                "Ohio",
                "Oklahoma",
                "Oregon",
                "Pennsylvania",
                "Rhode Island",
                "South Carolina",
                "South Dakota",
                "Tennessee",
                "Texas",
                "Utah",
                "Vermont",
                "Virginia",
                "Washington",
                "West Virginia",
                "Wisconsin",
                "Wyoming"
              ]
            },
            "default": []
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Optional location substrings matched against the lead Location field (e.g. \"Los Angeles\", \"Miami\", \"United Kingdom\").",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "jobTitles": {
            "title": "Job Titles",
            "type": "array",
            "description": "Optional job-title substrings (e.g. \"Owner\", \"Founder\", \"CEO\").",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "companies": {
            "title": "Companies",
            "type": "array",
            "description": "Optional company-name substrings (e.g. \"Acme\", \"Tipalti\").",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "industries": {
            "title": "Industries",
            "type": "array",
            "description": "Optional industry substrings matched against the Industry field (e.g. \"Software\", \"Healthcare\").",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max Items",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of leads to return (0 = unlimited for paying users). Free Apify plans are capped at 5 records per run.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}