It can go really long actually - as many as 4904 characters for the entire Search Regex query.
It can go really long actually - as many as 4904 characters for the entire Search Regex query.

/ faq

How Long Can a Search Regex Be?

📣
As of 1 March 2024, the Proxycurl Search API no longer supports regex, instead we've switched to Boolean search.
Check out the announcement post here.
But this is itself still a great guide about regex.

There is not a maximum length for individual parameters of a search query; rather, there is a maximum length for the entire query. This length is 4094 characters. You may allocate the characters between the fields any way you like, so the fewer parameters you have, and the shorter most of them are, the longer one single regex can be.

To give you a visual idea, here's a query that's about as long as it's allowed to be. Any longer, and it would fail.

import json, os, requests

api_key = os.environ['PROXYCURL_API_KEY']
headers = {'Authorization': 'Bearer ' + api_key}

company_endpoint = 'https://nubela.co/proxycurl/api/search/company'
params = {
    'employee_count_max': '1250',
    'industry': 'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing|Medical Equipment Manufacturing|'
                'Medical Equipment Manufacturing',
    'enrich_profiles': 'enrich',
    'page_size': '1'
}
response = requests.get(company_endpoint, params=params, headers=headers)
print(json.dumps(response.json()))
Steven Goh | CEO
Share:

Subscribe to our newsletter

Get the latest news from Proxycurl

Featured Articles

Here’s what we’ve been up to recently.