View as Markdown

Set Company Lists

POST/v2/companies/lists/set

Sets the lists of a selection of saved companies to exactly list_ids (1-100 company lists): each selected record ends up in those lists and in no other. Select by ids (up to 25,000), or by filters (everything POST /v2/companies/search matches, with the optional sort_by, sort_direction, limit, exclude_ids and extra_ids): exactly one of the two. Answers a job: 200 with the done job when the work ran inline, else 202 with the running job and Location: /v2/jobs/{id} (poll it after Retry-After). One bulk action runs per workspace at a time; an Idempotency-Key makes a retry answer the same job. Uses 1 unit of the jobs rate limit. Free: costs no credits.

Body parameters

  • idsstring[]optional

    companies-v2 company ids (1-25000). Exactly one of ids and filters.

  • filtersobjectoptional

    The filter object POST /v2/companies/search takes: every company it matches. Exactly one of ids and filters.

    Child attributes
    • companyobjectoptional

      Look up specific companies you already know - by our own id (the exact one, as returned by Company Enrich), by exact name, by web domain, or by numeric linkedin_id. The same keys as People Search's company filter, except its linkedin_url (LinkedIn company page), which only People Search takes.

      Child attributes
      • idobjectoptional

        Match by our company id, as returned by this endpoint and by Company Enrich. The exact way to name companies you have already resolved.

        FieldTypeDescription
        includestring[]Only these companies, by id. Max 20000 ids.

        Example: ["64f1a2b3c4d5e6f7a8b9c0d2"]

        excludestring[]Reject these companies (same id values). Max 20000 ids.
      • nameobjectoptional

        Match by company name. Exact, case-insensitive list lookup. A value shaped like a website ("stripe.com", "https://www.stripe.com/about") also matches the company on that domain.

        FieldTypeDescription
        includestring[]Match companies whose value is in this list - any single value qualifies (exact, case-insensitive). Optional - provide include and/or exclude. Max 500 items.
        excludestring[]Reject companies whose value is in this list (exact, case-insensitive). 0-500 items.
      • domainobjectoptional

        Match by web domain - host only, without scheme or www (e.g. "getprospect.com"). Every domain attached to a company is considered, not just the primary one. A domain no company has as its website also matches the company whose employees use it for email (e.g. "sephora.fr" finds Sephora, whose website is inside-sephora.com).

        FieldTypeDescription
        includestring[]Match companies whose value is in this list - any single value qualifies (exact, case-insensitive). Optional - provide include and/or exclude. Max 500 items.
        excludestring[]Reject companies whose value is in this list (exact, case-insensitive). 0-500 items.
      • linkedin_idobjectoptional

        Match by LinkedIn's numeric company id. Company URLs go through Company Enrich first - see id.

        FieldTypeDescription
        includeinteger[]Match these LinkedIn companies. LinkedIn's numeric company id. Company LinkedIn URLs are not accepted here: People Search takes them as company.linkedin_url; elsewhere enrich the company by linkedin_url and put the id it returns in company.id. Max 500 items.

        Example: [162479]

        excludeinteger[]Reject these LinkedIn companies. LinkedIn's numeric company id. Company LinkedIn URLs are not accepted here: People Search takes them as company.linkedin_url; elsewhere enrich the company by linkedin_url and put the id it returns in company.id. Max 500 items.
      Example
      {
        "filters": {
          "company": {
            "domain": {
              "include": [
                "intercom.com",
                "stripe.com"
              ]
            }
          }
        }
      }
    • company_industryobjectoptional

      Industry name, or one of the category GROUP names Industries groups them under - a group matches every industry in that category. Same vocabulary as People Search's own company_industry.

      FieldTypeDescription
      includestring[]Match companies whose value is in this list - any single value qualifies (exact, case-insensitive). Optional - provide include and/or exclude. Max 500 items.
      excludestring[]Reject companies whose value is in this list (exact, case-insensitive). 0-500 items.
      Example
      {
        "filters": {
          "company_industry": {
            "include": [
              "Software & Internet",
              "IT Services & IT Consulting"
            ],
            "exclude": [
              "Staffing & Recruiting"
            ]
          }
        }
      }
    • company_typeobjectoptional

      Company legal/ownership type (see Company types). Values match case-insensitively.

      FieldTypeDescription
      includeenum[]Company types to match (any of).

      Allowed values: Privately Held Public Company Non Profit Self Owned Self Employed Partnership Educational Government Agency Unknown

      excludeenum[]Company types to reject.

      Allowed values: Privately Held Public Company Non Profit Self Owned Self Employed Partnership Educational Government Agency Unknown

      Example
      {
        "filters": {
          "company_type": {
            "include": [
              "Privately Held",
              "Public Company"
            ]
          }
        }
      }
    • company_business_typeobjectoptional

      Audience type (see Business types). Values: B2B, B2C, Nonprofit, Unknown.

      FieldTypeDescription
      includeenum[]Business types to match (any of).

      Allowed values: B2B B2C Nonprofit Unknown

      excludeenum[]Business types to reject.

      Allowed values: B2B B2C Nonprofit Unknown

      Example
      {
        "filters": {
          "company_business_type": {
            "include": [
              "B2B"
            ]
          }
        }
      }
    • company_revenue_streamobjectoptional

      Revenue model (see Revenue streams). Values match case-insensitively.

      FieldTypeDescription
      includeenum[]Revenue streams to match (any of).

      Allowed values: Professional Services Product Sales Grants / Donations Subscriptions / Recurring Project / Contract Work Event / Experience Revenue Transaction Fees Rental / Leasing Advertising Financial Services Licensing / IP Unknown

      excludeenum[]Revenue streams to reject.

      Allowed values: Professional Services Product Sales Grants / Donations Subscriptions / Recurring Project / Contract Work Event / Experience Revenue Transaction Fees Rental / Leasing Advertising Financial Services Licensing / IP Unknown

      Example
      {
        "filters": {
          "company_revenue_stream": {
            "include": [
              "Subscriptions / Recurring",
              "Product Sales"
            ]
          }
        }
      }
    • company_ai_industryobjectoptional

      AI industry of the company (see AI Industries): an industry group or a sub-industry. A group matches all its sub-industries. Casing does not matter, and "&" is read as "and".

      FieldTypeDescription
      includeenum[]AI industries to match (any of). A group matches all its sub-industries; a sub-industry matches only itself.

      Allowed values: Software and IT Healthcare and Life Sciences Finance and Insurance Energy, Utilities and Environmental Services Industrial Manufacturing and Materials Real Estate and Construction Retail and Consumer Channels Transportation and Logistics Professional, Business and Legal Services Education and Training Media, Entertainment and Culture Hospitality, Food and Travel Services Personal and Home Services Agriculture, Forestry and Fisheries Automotive, Aerospace and Defense Manufacturing Non-Profit, Public Sector and Education (Non-Commercial) AI and ML Platforms Agriculture and Forestry Software Blockchain and Web3 Carriers and ISPs Cloud and Infrastructure Software Consumer Software Data and Analytics Software Developer Tools and Platforms Enterprise Software Solutions Financial Services Software Government and Public Sector Software Hardware and Networking Healthcare Software IoT and Embedded Systems Software IT Services and Cybersecurity Manufacturing Software Metaverse, AR/VR and Other Emerging Platforms Quantum Computing Software Real Estate and PropTech Software Retail and Ecommerce Software Security and Identity Software Biotechnology and Pharmaceuticals Digital Health and Telemedicine Hospitals, Clinics and Outpatient Care Medical Devices and Diagnostic Equipment Medical Testing and Clinical Laboratories Mental Health and Rehabilitation Services Pharma Distribution and CRO Services Banking and Lending Capital Markets and Cryptocurrency Cryptocurrency and Blockchain Services Financial Services Platforms Insurance and InsurTech Investment Management and WealthTech Venture Capital and Private Equity Electric Power and Grid Management Nuclear and Advanced Generation Oil and Gas Exploration, Production and Services Renewable Energy and Clean Tech Sustainability Tech and Environmental Consulting Water, Waste and Environmental Management 3D Printing and Advanced Manufacturing Building Materials and Chemicals Consumer Goods and Appliances Electronics and Computer Equipment Food, Beverage and Tobacco Production Industrial Machinery and Equipment Mining, Metals and Natural Resources Architecture, Urban Planning and Green Building Commercial Real Estate Development and Leasing Construction and Civil Engineering Services Property and Facility Management Residential Real Estate Development and Brokerage Specialty Construction Products Automotive Service and Collision Repair Brick-and-Mortar Retail Media and Entertainment Retail Online Commerce and Marketplaces Retail Technology Specialty Auctions and Collectibles Wholesale and Distribution Autonomous Vehicles and Drone Delivery Car and Truck Rental Freight and Cargo Logistics Technology Passenger Transit and Mobility Warehousing, Fulfillment and 3PL Services Accounting, Audit and Financial Advisory Advertising, Marketing and Multimedia Design Defense and Government Services Facilities Management and Commercial Cleaning Human Resources, Staffing and Recruitment Legal Services and Regulatory Compliance Management Consulting and Strategy Consulting Translation, Document and Information Management Corporate Training and Learning and Development E-Learning Platforms and EdTech K-12 and Higher Education Institutions Test Prep, Tutoring and After-School Services Vocational Training and Certification Programs Digital Publishing and Streaming Platforms Film, Television and Broadcasting Gaming, Esports and Interactive Entertainment Live Events, Experiences and Ticketed Attractions Museums, Art Galleries and Cultural Preservation Music, Audio and Podcast Services Sports and Recreation Food and Beverage Services Hospitality and Lodging Travel Agencies and Leisure Services Funeral Homes and Related Services Home Services Personal Care and Wellness Veterinary Care and Pet Services AgriTech and Precision Farming Aquaculture and Fisheries Crop Farming and Livestock Production Farming Equipment and Supplies Forestry, Logging and Wood Products Mining and Extraction Aviation and Aerospace Component Manufacturing Automotive and Rental Retail Commercial Space Innovation Defense Systems and Marine Manufacturing Motor Vehicle and Parts Manufacturing Government Administration and Municipal Services NGOs, Charities and Community Organizations Public Healthcare and Social Services Public/Private Research Institutions and Educational Foundations Student Organizations and Campus Services

      excludeenum[]AI industries to reject. A group rejects all its sub-industries; a sub-industry rejects only itself.

      Allowed values: Software and IT Healthcare and Life Sciences Finance and Insurance Energy, Utilities and Environmental Services Industrial Manufacturing and Materials Real Estate and Construction Retail and Consumer Channels Transportation and Logistics Professional, Business and Legal Services Education and Training Media, Entertainment and Culture Hospitality, Food and Travel Services Personal and Home Services Agriculture, Forestry and Fisheries Automotive, Aerospace and Defense Manufacturing Non-Profit, Public Sector and Education (Non-Commercial) AI and ML Platforms Agriculture and Forestry Software Blockchain and Web3 Carriers and ISPs Cloud and Infrastructure Software Consumer Software Data and Analytics Software Developer Tools and Platforms Enterprise Software Solutions Financial Services Software Government and Public Sector Software Hardware and Networking Healthcare Software IoT and Embedded Systems Software IT Services and Cybersecurity Manufacturing Software Metaverse, AR/VR and Other Emerging Platforms Quantum Computing Software Real Estate and PropTech Software Retail and Ecommerce Software Security and Identity Software Biotechnology and Pharmaceuticals Digital Health and Telemedicine Hospitals, Clinics and Outpatient Care Medical Devices and Diagnostic Equipment Medical Testing and Clinical Laboratories Mental Health and Rehabilitation Services Pharma Distribution and CRO Services Banking and Lending Capital Markets and Cryptocurrency Cryptocurrency and Blockchain Services Financial Services Platforms Insurance and InsurTech Investment Management and WealthTech Venture Capital and Private Equity Electric Power and Grid Management Nuclear and Advanced Generation Oil and Gas Exploration, Production and Services Renewable Energy and Clean Tech Sustainability Tech and Environmental Consulting Water, Waste and Environmental Management 3D Printing and Advanced Manufacturing Building Materials and Chemicals Consumer Goods and Appliances Electronics and Computer Equipment Food, Beverage and Tobacco Production Industrial Machinery and Equipment Mining, Metals and Natural Resources Architecture, Urban Planning and Green Building Commercial Real Estate Development and Leasing Construction and Civil Engineering Services Property and Facility Management Residential Real Estate Development and Brokerage Specialty Construction Products Automotive Service and Collision Repair Brick-and-Mortar Retail Media and Entertainment Retail Online Commerce and Marketplaces Retail Technology Specialty Auctions and Collectibles Wholesale and Distribution Autonomous Vehicles and Drone Delivery Car and Truck Rental Freight and Cargo Logistics Technology Passenger Transit and Mobility Warehousing, Fulfillment and 3PL Services Accounting, Audit and Financial Advisory Advertising, Marketing and Multimedia Design Defense and Government Services Facilities Management and Commercial Cleaning Human Resources, Staffing and Recruitment Legal Services and Regulatory Compliance Management Consulting and Strategy Consulting Translation, Document and Information Management Corporate Training and Learning and Development E-Learning Platforms and EdTech K-12 and Higher Education Institutions Test Prep, Tutoring and After-School Services Vocational Training and Certification Programs Digital Publishing and Streaming Platforms Film, Television and Broadcasting Gaming, Esports and Interactive Entertainment Live Events, Experiences and Ticketed Attractions Museums, Art Galleries and Cultural Preservation Music, Audio and Podcast Services Sports and Recreation Food and Beverage Services Hospitality and Lodging Travel Agencies and Leisure Services Funeral Homes and Related Services Home Services Personal Care and Wellness Veterinary Care and Pet Services AgriTech and Precision Farming Aquaculture and Fisheries Crop Farming and Livestock Production Farming Equipment and Supplies Forestry, Logging and Wood Products Mining and Extraction Aviation and Aerospace Component Manufacturing Automotive and Rental Retail Commercial Space Innovation Defense Systems and Marine Manufacturing Motor Vehicle and Parts Manufacturing Government Administration and Municipal Services NGOs, Charities and Community Organizations Public Healthcare and Social Services Public/Private Research Institutions and Educational Foundations Student Organizations and Campus Services

      Example
      {
        "filters": {
          "company_ai_industry": {
            "include": [
              "Finance and Insurance"
            ],
            "exclude": [
              "Banking and Lending"
            ]
          }
        }
      }
    • company_countryobjectoptional

      Country as ISO-3166-1 alpha-2 codes (see Countries). Matches any office location by default; set headquarters_only: true to match the registered headquarters country only.

      FieldTypeDescription
      includestring[]Match companies whose value is in this list - any single value qualifies (exact, case-insensitive). Optional - provide include and/or exclude. Max 500 items.
      excludestring[]Reject companies whose value is in this list (exact, case-insensitive). 0-500 items.
      headquarters_onlybooleanWhen true, match the company headquarters country only. When false (default), any office country we have resolved counts, headquarters included: includes widen (a company with an office there matches) and excludes tighten symmetrically (a company with an office there is rejected). default: false.
      Example
      {
        "filters": {
          "company_country": {
            "include": [
              "US",
              "CA"
            ],
            "headquarters_only": true
          }
        }
      }
    • company_locationobjectoptional

      Company location as unified location strings - a country ("United States"), a state ("Texas, United States"), a city ("San Francisco, California, United States") or a region ("EMEA"). Same format and vocabulary as People Search's company_location and person_location. Any resolved office counts by default; see headquarters_only. Use company_country instead when you already hold ISO-3166-1 alpha-2 codes.

      FieldTypeDescription
      includestring[]Match these locations (any of). Unified strings like "United States", "Texas, United States", "San Francisco, California, United States" - or a region like "EMEA", "APAC", "Europe", "Latin America", which expands to its member countries (full list with member countries: GET /v2/enums/regions). Max 100 items, each 2-200 chars. Any value that does not resolve fails the whole request with 400 (invalid_value, naming it in invalid_values), even beside values that do: nothing is silently dropped. Look values up with POST /v2/search/suggest (type location).
      excludestring[]Reject these locations (same unified-string format; a region minus a country works: include ["Europe"], exclude ["Germany"]). Max 100 items, each 2-200 chars. A value that does not resolve is skipped, so check the spelling: a misspelled exclude ("Germny") leaves that place in the results.
      headquarters_onlybooleanWhen true, match the company headquarters location only. When false (default), any office location we have resolved counts, headquarters included: includes widen (a company with an office there matches) and excludes tighten symmetrically (a company with an office there is rejected). default: false.
      Example
      {
        "filters": {
          "company_location": {
            "include": [
              "San Francisco, California, United States"
            ],
            "headquarters_only": true
          }
        }
      }
    • company_headcount_rangeenum[]optional

      Bucketed headcount range (see Employee ranges). 1-8 buckets.

      Example
      {
        "filters": {
          "company_headcount_range": [
            "51-200",
            "201-500"
          ]
        }
      }
    • company_headcount_customobjectoptional

      Raw headcount range. min/max are inclusive; either may be omitted.

      FieldTypeDescription
      minnumberLower bound (inclusive). Optional.
      maxnumberUpper bound (inclusive). Must be >= min. Optional.
      Example
      {
        "filters": {
          "company_headcount_custom": {
            "min": 100,
            "max": 5000
          }
        }
      }
    • company_foundedobjectoptional

      Founded year range. min/max are inclusive; either may be omitted.

      FieldTypeDescription
      minnumberLower bound (inclusive). Optional.
      maxnumberUpper bound (inclusive). Must be >= min. Optional.
      Example
      {
        "filters": {
          "company_founded": {
            "min": 2010,
            "max": 2020
          }
        }
      }
    • company_headcount_by_departmentobject[]optional

      Headcount of the company by department, optionally within one country or state. Rows AND together; each row is a department plus min and/or max people (a max also matches companies with nobody in the department). 1-10 rows.

      FieldTypeDescription
      departmentenumrequiredDepartment group ("Sales") or sub-department ("Sales Operations"); see Departments. Casing does not matter.

      Example: "Product Development"

      locationstringCount only people located in this ONE location, which must resolve to a country or a state ("Germany", "California, United States"). A city or a multi-country region answers 400. Omit for anywhere. 2-200 chars.

      Example: "California, United States"

      minintegerAt least this many people (inclusive). Integer 0-1,000,000.

      Example: 10

      maxintegerAt most this many people (inclusive). Integer 0-1,000,000, at least min. Companies with no people in the department count as 0 and match.

      Example: 20

      Example
      {
        "filters": {
          "company_headcount_by_department": [
            {
              "department": "Product Development",
              "location": "California, United States",
              "min": 10,
              "max": 20
            }
          ]
        }
      }
    • company_naicsobjectoptional

      NAICS codes (numeric). Matches when any of the company's codes is in the list.

      FieldTypeDescription
      includenumber[]Match companies whose value is in this list - any single value qualifies. Optional - provide include and/or exclude. Max 500 items.
      excludenumber[]Reject companies whose value is in this list. 0-500 items.
      Example
      {
        "filters": {
          "company_naics": {
            "include": [
              541511,
              541512
            ]
          }
        }
      }
    • company_technologiesobjectoptional

      Web technologies detected on the company website, by id: the value of a POST /v2/search/suggest row with type: technology and kind: technology. Websites are rescanned every 30 days.

      FieldTypeDescription
      includestring[]Technology ids to match. match_mode: ANY (default): a company using any of them qualifies; ALL: it must use every one. Max 500.

      Example: ["3421"]

      excludestring[]Reject companies using any of these technology ids. Max 500.
      match_modeenumHow include combines: ANY (default) - at least one; ALL - every one, on the same company. default: "ANY".

      Allowed values: ANY ALL

      Example
      {
        "filters": {
          "company_technologies": {
            "include": [
              "3421"
            ],
            "match_mode": "ANY"
          }
        }
      }
    • company_technology_categoriesobjectoptional

      Technology categories (CMS, Ecommerce, Analytics, ...), by id: the value of a suggest row with kind: category. A category matches a company using any technology in it.

      FieldTypeDescription
      includestring[]Category ids to match (any of). Max 200.

      Example: ["1"]

      excludestring[]Reject companies using any technology in these category ids. Max 200.
      Example
      {
        "filters": {
          "company_technology_categories": {
            "include": [
              "1"
            ]
          }
        }
      }
    • company_keywordsobjectoptional

      Free-text keyword match across selected source fields (see Keyword sources). When this filter is active, results are ranked by relevance first.

      FieldTypeDescription
      includestring[]requiredPhrases to search for. 1-20 items, 3-100 chars each. Matched as phrases: a multi-word entry like "email finder" requires those words adjacent and in order within one of the selected source fields, not merely present somewhere in it.
      excludestring[]Phrases that disqualify a company. 0-20 items. Matched as phrases, same as include.
      include_allbooleanWhen true, every phrase in include must match; otherwise any single match qualifies. default: false.
      sourcesenum[]Restrict matching to these source fields (see Keyword sources). Omit to use the default source set - see this company_keywords filter's own description above for what that is.
      Example
      {
        "filters": {
          "company_keywords": {
            "include": [
              "customer support",
              "help desk"
            ],
            "include_all": true,
            "sources": [
              "specialties"
            ]
          }
        }
      }
    • listsobjectoptional

      Your workspace's company lists: read a list's companies (include), hide those already filed (exclude), or scope to saved / not saved companies (saved). Scoped to companies you saved (include, or saved any / without_list), the search spends no search rate-limit units. metadata.lists_filter reports the scope that ran.

      FieldTypeDescription
      savedenumany = only companies your workspace saved, in a list or not; none = only companies your workspace has not saved; without_list = only companies your workspace saved but did not file into any list.

      Allowed values: any none without_list

      includestring[]Only companies your workspace filed into these company list ids (GET /v2/lists?type=companies). Max 100.
      excludestring[]Hide companies your workspace filed into these company list ids. Max 100.
      Example
      {
        "filters": {
          "lists": {
            "include": [
              "66f1a2b3c4d5e6f7a8b9c0d1"
            ]
          }
        }
      }
  • sort_byenumoptional

    With filters: which companies are "the first limit".

    Allowed values: company_name company_employee_count company_industry company_country company_founded company_saved_at

  • sort_directionenumoptional

    Ignored without sort_by.

    Allowed values: asc desc

  • limitnumberoptionalmin: 1max: 25000

    With filters: how many companies at most.

  • exclude_idsstring[]optional

    With filters: company ids taken out of the match.

  • extra_idsstring[]optional

    With filters: hand-ticked company ids outside the match, added to it.

  • list_idsstring[]required

    The company lists the selection ends up in, exactly (1-100).

Responses

  • 200 Done inline: the done job.
  • 202 Queued: the running job; poll Location.
  • 400 Invalid body or Idempotency-Key (VALIDATION_ERROR with payload.code); neither or both of ids and filters; or a list in list_ids is not a live list of that type in this workspace (VALIDATION_ERROR).
  • 401 Missing, unknown or inactive credentials (UNAUTHORIZED).
  • 409 Another bulk action of the workspace is still running (CONFLICT, payload.code: bulk_action_running with its job_id; poll it, then retry); or the Idempotency-Key was used for another request (idempotency_key_reused), or its first request is still running inline (idempotency_in_progress, with Retry-After).
  • 429 Over the jobs rate limit (RATE_LIMIT); wait Retry-After seconds.
  • 500 Unexpected server error.

For error handling see Errors. Response objects are described in Person object and Company object.