{
  "openapi": "3.0.1",
  "info": {
    "title": "B2B Lead List Builder",
    "description": "Search MoltSets for people or companies by job title, seniority, industry, location and company size, and save them as a lead list with graded business emails. Bring your own MoltSets API key.",
    "version": "0.0",
    "x-build-id": "os8tHmgr8X4LspHN0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/moltsets~lead-list-builder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-moltsets-lead-list-builder",
        "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/moltsets~lead-list-builder/runs": {
      "post": {
        "operationId": "runs-sync-moltsets-lead-list-builder",
        "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/moltsets~lead-list-builder/run-sync": {
      "post": {
        "operationId": "run-sync-moltsets-lead-list-builder",
        "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": {
          "apiKey": {
            "title": "MoltSets API key",
            "type": "string",
            "description": "Required. Your MoltSets API key (starts with <code>ms_</code>). No account yet? <a href=\"https://app.moltsets.com/signup?utm_source=apify&utm_medium=actor&utm_campaign=lead-list-builder\" target=\"_blank\">Sign up free</a>, then copy a key from <a href=\"https://app.moltsets.com/dashboard/api_keys\" target=\"_blank\">API keys</a>. MoltSets bills your MoltSets account directly, and only for hits."
          },
          "searchType": {
            "title": "Search for",
            "enum": [
              "people",
              "companies"
            ],
            "type": "string",
            "description": "People returns contacts with their business email and employer. Companies returns accounts with firmographics. Filters that do not apply to the chosen search are ignored, and the log says which.",
            "default": "people"
          },
          "jobTitles": {
            "title": "Job titles",
            "type": "array",
            "description": "Roles to match, for example <code>Head of Marketing</code> or <code>Account Executive</code>. A list matches any of them. One or two word titles need every word; longer titles allow one or two words to differ, so <code>VP of Sales</code> also finds <code>VP, Sales</code>. Extra words are fine: <code>Account Executive</code> matches <code>Senior Account Executive</code>. <b>People search only.</b>",
            "items": {
              "type": "string"
            }
          },
          "seniority": {
            "title": "Seniority",
            "type": "array",
            "description": "Seniority levels to include. <b>People search only.</b>",
            "items": {
              "type": "string",
              "enum": [
                "Intern",
                "Entry",
                "Senior",
                "Manager",
                "Director",
                "VP",
                "Head",
                "C Suite",
                "Owner",
                "Partner"
              ]
            }
          },
          "departments": {
            "title": "Departments",
            "type": "array",
            "description": "Departments to include. <b>People search only.</b>",
            "items": {
              "type": "string",
              "enum": [
                "Operations",
                "Sales",
                "Information Technology",
                "Education",
                "Engineering",
                "Finance",
                "Medical & Health",
                "Marketing",
                "Human Resources",
                "Design",
                "Consulting",
                "Legal"
              ]
            }
          },
          "companyNames": {
            "title": "Company names",
            "type": "array",
            "description": "Employers by name, for example <code>Acme</code> (matches <code>Acme Corporation</code>). Use company domains instead when you have them; they are more precise. <b>People search only.</b>",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Exact city names, for example <code>Austin</code>. Combine with a state or country, since city names repeat. <b>People search only.</b>",
            "items": {
              "type": "string"
            }
          },
          "query": {
            "title": "Keywords",
            "type": "string",
            "description": "People: a person's name, or loose keywords searched across name, title, company and headline (prefer Job titles for roles). Companies: words in the company name."
          },
          "companyDomains": {
            "title": "Company domains",
            "type": "array",
            "description": "Website domains, for example <code>acme.com</code> (URLs work too). People: contacts at these companies. Companies: these exact companies. Up to 100.",
            "items": {
              "type": "string"
            }
          },
          "industries": {
            "title": "Industries",
            "type": "array",
            "description": "Broad industry buckets.",
            "items": {
              "type": "string",
              "enum": [
                "Professional and Business Services",
                "Information Technology",
                "Manufacturing",
                "Retail",
                "Health and Pharmaceuticals",
                "Creative Arts and Entertainment",
                "Construction",
                "Marketing & Advertising",
                "Finance and Banking",
                "Tourism and Hospitality",
                "Non-Profit and Social Services",
                "Food and Beverage",
                "Real Estate",
                "Education",
                "Transportation and Logistics",
                "Media and Publishing",
                "Energy",
                "Government and Public Administration",
                "Automotive",
                "Telecommunications",
                "Agriculture",
                "Utilities"
              ]
            }
          },
          "linkedinIndustries": {
            "title": "LinkedIn industries",
            "type": "array",
            "description": "LinkedIn's own industry labels, exactly as LinkedIn writes them, for example <code>Software Development</code> or <code>Staffing and Recruiting</code>. Finer-grained than Industries.",
            "items": {
              "type": "string"
            }
          },
          "naicsCodes": {
            "title": "NAICS codes",
            "type": "array",
            "description": "NAICS codes at any level, for example <code>54</code> (Professional Services) or <code>511210</code> (Software Publishers).",
            "items": {
              "type": "string"
            }
          },
          "employeeRanges": {
            "title": "Company size",
            "type": "array",
            "description": "Employee count bands. People: contacts at companies of this size.",
            "items": {
              "type": "string",
              "enum": [
                "1-10",
                "11-20",
                "21-50",
                "51-200",
                "201-500",
                "501-1000",
                "1001-5000",
                "5001+"
              ]
            }
          },
          "revenueRanges": {
            "title": "Company revenue",
            "type": "array",
            "description": "Annual revenue bands. People: contacts at companies with this revenue.",
            "items": {
              "type": "string",
              "enum": [
                "Below $500k",
                "$500k - $1M",
                "$1M - $5M",
                "$5M - $10M",
                "$10M - $20M",
                "$20M - $50M",
                "Above $50M"
              ]
            }
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Full English country names, for example <code>United States</code> (not <code>US</code>). Pick from the list or type your own. People: where the person is. Companies: where the company's team is based.",
            "items": {
              "type": "string",
              "enumSuggestedValues": [
                "United States",
                "United Kingdom",
                "Canada",
                "Australia",
                "India",
                "Germany",
                "France",
                "Netherlands",
                "Spain",
                "Italy",
                "Brazil",
                "Mexico",
                "Ireland",
                "Singapore",
                "United Arab Emirates",
                "Sweden",
                "Switzerland",
                "Israel",
                "South Africa",
                "New Zealand"
              ]
            }
          },
          "states": {
            "title": "States or regions",
            "type": "array",
            "description": "State names or abbreviations, for example <code>Texas</code> or <code>TX</code>, <code>Ontario</code> or <code>ON</code>.",
            "items": {
              "type": "string"
            }
          },
          "excludeCompanyDomains": {
            "title": "Exclude company domains",
            "type": "array",
            "description": "Your suppression list: existing customers, competitors, your own domain. Up to 100. Excluded records are never charged.",
            "items": {
              "type": "string"
            }
          },
          "excludeCountries": {
            "title": "Exclude countries",
            "type": "array",
            "description": "Countries to leave out. <b>People search only.</b>",
            "items": {
              "type": "string"
            }
          },
          "excludeStates": {
            "title": "Exclude states or regions",
            "type": "array",
            "description": "States or regions to leave out, for example <code>California</code>. <b>People search only.</b>",
            "items": {
              "type": "string"
            }
          },
          "excludeIndustries": {
            "title": "Exclude industries",
            "type": "array",
            "description": "Industries to leave out. Records with no industry on file are kept.",
            "items": {
              "type": "string",
              "enum": [
                "Professional and Business Services",
                "Information Technology",
                "Manufacturing",
                "Retail",
                "Health and Pharmaceuticals",
                "Creative Arts and Entertainment",
                "Construction",
                "Marketing & Advertising",
                "Finance and Banking",
                "Tourism and Hospitality",
                "Non-Profit and Social Services",
                "Food and Beverage",
                "Real Estate",
                "Education",
                "Transportation and Logistics",
                "Media and Publishing",
                "Energy",
                "Government and Public Administration",
                "Automotive",
                "Telecommunications",
                "Agriculture",
                "Utilities"
              ]
            }
          },
          "excludeSeniority": {
            "title": "Exclude seniority",
            "type": "array",
            "description": "Seniority levels to leave out, for example Intern and Entry. Records with no seniority on file are kept. <b>People search only.</b>",
            "items": {
              "type": "string",
              "enum": [
                "Intern",
                "Entry",
                "Senior",
                "Manager",
                "Director",
                "VP",
                "Head",
                "C Suite",
                "Owner",
                "Partner"
              ]
            }
          },
          "excludeEmployeeRanges": {
            "title": "Exclude company sizes",
            "type": "array",
            "description": "Employee count bands to leave out.",
            "items": {
              "type": "string",
              "enum": [
                "1-10",
                "11-20",
                "21-50",
                "51-200",
                "201-500",
                "501-1000",
                "1001-5000",
                "5001+"
              ]
            }
          },
          "excludeRevenueRanges": {
            "title": "Exclude revenue bands",
            "type": "array",
            "description": "Revenue bands to leave out. <b>Company search only.</b>",
            "items": {
              "type": "string",
              "enum": [
                "Below $500k",
                "$500k - $1M",
                "$1M - $5M",
                "$5M - $10M",
                "$10M - $20M",
                "$20M - $50M",
                "Above $50M"
              ]
            }
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard cap on results saved, and so on tokens spent: each result returned costs 1 token. MoltSets pages through at most 10,000 results per search.",
            "default": 25
          },
          "previewOnly": {
            "title": "Preview only",
            "type": "boolean",
            "description": "Fetch a single result and the total number of matches, to check your filters for 1 token before saving a full list.",
            "default": false
          },
          "maxRetryWaitSecs": {
            "title": "Longest Fair Use wait",
            "minimum": 0,
            "maximum": 3600,
            "type": "integer",
            "description": "If MoltSets asks the run to wait for a Fair Use window up to this long, it waits and carries on. Longer waits stop the run gracefully and keep the results so far.",
            "default": 120
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}