Have a Question You Want Answered? Ask Us!Head over to the Help Center and search for your question. If you still can’t find what you’re looking for, create a support ticket and we will get it answered for you!
Can I use the Company Search API to enrich data?
The Company Search API ignores the matching logic in our Company Enrichment API. We don’t do any preprocessing (cleaning) of the inputs to the Company Search API, so you’re almost guaranteed to have a lower match rate. What’s more, Company Search API queries and Company Enrichment API queries are structured differently. When you make a Company Enrichment API request, we have a custom-built query that takes the different input parameters and weights them differently, only returning a match in certain cases while using stack ranking in cases where there are multiple matches.Should I use SQL or Elasticsearch for the Company Search API?
Use Elasticsearch when:- You have complicated boolean queries.
- You want to maximize the control that you have over text-based matching (titles, summaries and so forth.)
- You are comfortable writing Elasticsearch queries.
- You are running simple searches with only a few parameters.
- You’re exclusively using ENUM parameters from our data (location, industry, etc.)
- You are comfortable writing SQL queries.
Can I use wildcards in my search query?
Yes, wildcard terms are supported. However, we have a hard limit of 20 wildcards per query. See the relevant sections for more information about the limitations in Elasticsearch and SQL search queries.Why is there a 1MB limit on the API requests and the response body?
The error message that you are receiving has occurred because the query is too large and cURL can’t handle the response. Calling the API with Python should alleviate this issue as Python compresses the extra space within an Elasticsearch query. Additional ways to decrease the query size are to reduce the profile count parameter from100 to 60 for each call and to remove the pretty tag. You can get around this limitation by Using POST Requests.
