End-to-end Company API workflow examples with requests, responses, extraction steps, and failure handling.
Use this page for complete, ready-to-copy workflow examples that chain multiple Company API calls together. Each workflow shows the request, the expected response, what to extract, and how to handle failures.For individual endpoint examples, see:
Goal: Find US-based software companies and get full profiles for the top matches.Why this workflow: You do not know the exact industry value the Search API expects. Autocomplete discovers it, Search finds matching companies, and Enrich fills in the details.
Extract: Take suggestions[0].value → "Software Development". Use this exact string in your Search filter.If empty: If suggestions is [], your query did not match any indexed values. Try a broader term (e.g., "tech" instead of "software engineering").
Extract: Take companies[].crustdata_company_id values → [12345, 67890, 628895]. Pass these to Enrich.If empty: If companies is [], no companies matched your filters. Broaden your conditions or use Autocomplete to check that your filter values are valid.To get more results: Pass next_cursor as cursor in the next request. Stop paginating when next_cursor is null.
Extract: Each item in results corresponds to one input ID. Access the profile via results[i].matches[0].company_data.If a match is empty: If matches is [] for an identifier, that company was not found. The request still succeeds (200 OK) for the other identifiers.
Workflow 2: Inbound domain → Identify → Search for similar companies
Goal: An inbound lead arrives from retool.com. Find similar companies for prospecting.Why this workflow:Identify resolves the domain to a company record, then Search finds similar companies based on the identified company’s industry and size.
Extract: Take companies[].crustdata_company_id values and pass them to Enrich for full profiles of promising matches.If empty: If companies is [], broaden your filters (e.g., wider headcount range or more industries). Use Autocomplete to verify valid filter values.
Goal: Page through all mid-size US software companies using cursor-based pagination.Why this workflow: Large result sets require pagination. Always include sorts for stable ordering across pages.