API Playground
Our API Playground offers a hands-on environment to learn how to search, collect, and look up relevant IDs using Coresignal's API. It’s designed to support onboarding, simplify integration, and help you test requests with minimal setup.
You can use the playground to:
Generate API queries using natural language input
Write and edit Elasticsearch query manually
View and adjust the full request structure
Collect and preview sample responses one at a time
Save search results as a List
Copy ready-to-use Elasticsearch query for the request
Get the API key
In the playground, you can also find sample prompts to help you get started. You can edit both the AI-generated query and the original prompt at any time including:
Adding, removing, or updating filters
Modifying record IDs
Previewing different data records
API playground environment
To start using the API playground, enter a natural-language prompt in the dedicated field and press the Generate & run button. The tool then turns it into Search and Collect API requests, so you don’t need query-writing skills. It simplifies exploration and makes it easy to generate custom queries, helping you avoid errors.
Once a request is sent, the tool provides:
The complete search and collect API requests
The total number of matching records and their IDs in our database
Initial sample record for a quick check with the option to view more records
In the ELASTICSEARCH QUERY section, you can see the generated query, which you can edit and copy. The tool automatically detects the entity, but you can select it manually to better match your search intent, such as Employee, Company, or Job.

While the tool returns one sample record, to make sure the results match your query, you can copy a different ID from the records matched list or use the arrows on either side of the Record ID field in Collect to move to another record. Each ID record collection costs from 1 to 20 credits, depending on the selected entity.

Prompt information
For the best search results and to avoid errors, it is important to understand the prompting rules. Below, you can find useful tips, common errors, and how to fix them.
Rules
Here are four main rules for successful prompting:
Follow the structure of the prompt examples provided in the playground.
Keep it short (5-5,000 characters) and refine your search through multiple prompts instead of overcomplicating a single prompt.
Use precise criteria instead of broader adjectives. For example, instead of “biggest” or “top”, indicate a company size, revenue range, exact job role, required experience duration, etc.
Aim to formulate prompts that resemble real data fields and values.
Prompt and other errors
When using the API playground, you may encounter errors. Below is a detailed overview of four common error messages and how to resolve them.
Failed to submit the request
This error message appears when the system cannot process your query as written.
Here’s how you can try to adjust your prompt:
Remove requests for private data. The most common reason for an error is an off-topic request. The AI cannot search for personal contact details, so you should remove any mention of emails or phone numbers from your prompt.
Ensure the prompt is well-formed. A query can fail if it has a malformed or unsupported structure. The best way to fix this is to use one of the prompt examples as a guide to ensure your request is structured correctly.
Avoid using test inputs. Prompts that consist of simple test inputs, typos, or random characters (e.g., “ddkdopqkwd”) are considered unsupported and will cause an error.
Make sure your prompt uses clear, descriptive language. Vague or overly short requests can be misinterpreted, so describe exactly what you're looking for, including key details like industry, location, or role.
Insufficient credits
You’ll see this error message if you don’t have enough credits to generate or update a query. To submit a request, renew or upgrade your plan and try again.
Too many requests
This message appears when you reach the rate limit for your subscription plan. Once you get this message, try again later.
No results
If there are no results in our database, the post response field will display 0. However, if the API playground fails to generate a data collection request, it returns an "Invalid query" message.
That doesn’t necessarily mean that we don’t have such data. Try to modify your prompt following the best practices:
Broaden your search criteria. Too many or overly strict filters are a primary cause of empty results. Start with broader criteria, then narrow the search as needed.
Check for typos and spelling errors. Requests often fail due to simple misspellings in the prompt. Ensure all names and terms are spelled correctly.
Verify that the entity exists. The company or employee you are looking for may be rare, new, or not available in our dataset.
If you have followed the advice above and still get no results, the data you’re looking for likely isn't available in our database. Note that if the search returns 0 results, you are not charged any credits.
Ways of submitting query
Coresignal’s API playground lets you submit your query by selecting a prompt from the examples list, manually, and resubmitting it:
Submitting a query from the prompt list. You can select any of the available prompts from the prompt examples or use them as ideas to formulate your own prompt.
Submitting a query manually. In the ELASTICSEARCH QUERY section, click start from scratch and write the DSL yourself.
Re-submitting query. If you are not fully satisfied with the search results, you can edit both your prompt and Elasticsearch query and resubmit it. This process costs 20 credits for employee and company data and 1 credit for jobs data.
Credits
Generating and sending a request in the API Playground consumes credits. Each prompt, including generating a query, searching, and collecting, costs 1 credit for the multi-source Jobs record and 20 credits for the multi-source Company and Employee records. If you want to collect another ID from the return IDs list, it also costs additional credits. Find more information about credit usage on the Pricing page.
Save as a List
Save any search from the API playground as a list so you can return to its results later without running the search again.
Open the API playground, type your prompt, then click Generate & run. After search results are returned, in the Search section, next to records matched, locate the Save as a list button – click it to save your search as a list. This action costs 20 credits.

After you click Save as a list, a confirmation pop-up appears in the top-right corner of the window. You can see your list by clicking Lists in the pop-up.

Last updated
Was this helpful?