Skip to content

feat(crunchbase): add Crunchbase Data API integration - #6875

Merged
waleedlatif1 merged 2 commits into
stagingfrom
feat/crunchbase-integration
Aug 20, 2026
Merged

feat(crunchbase): add Crunchbase Data API integration#6875
waleedlatif1 merged 2 commits into
stagingfrom
feat/crunchbase-integration

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a Crunchbase block backed by 14 tools covering the Data API v4 end to end
  • Dedicated search + lookup for organizations, people, funding rounds, and acquisitions, each with a default field set drawn from the narrowest package that publishes the collection
  • Generic Search Any Collection / Get Any Entity reach the remaining 39 collections, so all 109 documented endpoints are covered without 109 tool files
  • Get Entity Card pages a single related-entity card past the 100-item cap an inline card request stops at
  • Autocomplete, the deleted-entity feed, and fields metadata round out the API surface
  • Adds a crunchbase-errors extractor: Crunchbase answers failures with a bare JSON array, which no existing extractor reads, so an auth or predicate failure would have reported only its HTTP status
  • Replaces the unused placeholder CrunchbaseIcon with the brand mark

Every collection id, field enum, operator enum, request body, and response shape was derived from Crunchbase's published OpenAPI documents rather than inferred — no response schema is guessed.

Type of Change

  • New feature

Testing

Tested manually. 58 unit tests across the block, the tools, and the error extractor; each new test was mutation-verified by reverting its fix and watching it go red. bun run lint, bun run check:audits (30 audits), and bun run type-check all pass.

Note: the live API cannot be exercised without a key — every request returns 401 Unauthorized user_key — so the wire contract is verified against the published specs and unit tests, not a real round trip.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Covers the v4 Data API end to end: dedicated search and lookup operations
for organizations, people, funding rounds, and acquisitions, plus generic
collection-parameterized search and lookup reaching the remaining 39
collections, single-card paging, autocomplete, the deleted-entity feed, and
fields metadata.

Adds a crunchbase-errors extractor: the API answers failures with a bare
JSON array, which no existing extractor reads, so an auth or predicate
failure would have reported only its HTTP status.
@vercel

vercel Bot commented Aug 20, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview Aug 20, 2026 12:23am

Request Review

@cursor

cursor Bot commented Aug 20, 2026

Copy link
Copy Markdown

PR Summary

Cursor Bugbot is generating a summary for commit a9a4438. Configure here.

@greptile-apps

greptile-apps Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

Adds a Crunchbase Data API integration covering search, lookup, card pagination, autocomplete, deleted entities, and field metadata.

  • Registers fourteen Crunchbase tools and exposes them through a workflow block.
  • Adds request validation, response mapping, error extraction, generated tool metadata, documentation, and tests.
  • Updates Crunchbase branding and integration discovery metadata.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
apps/sim/tools/crunchbase/get_entity_card.ts Parses supported array-valued cards, derives pagination cursors, and safely returns an empty page for unknown card shapes.
apps/sim/tools/error-extractors.ts Adds and registers extraction of messages from Crunchbase’s top-level error array.
apps/sim/blocks/blocks/crunchbase.ts Defines the Crunchbase block UI and maps fourteen operations to their registered tools.
apps/sim/tools/crunchbase/crunchbase.test.ts Covers request construction, validation, response mapping, card-shape handling, pagination, and error extraction.
apps/sim/tools/registry.ts Registers all newly added Crunchbase tools for execution.

Reviews (2): Last reviewed commit: "fix(crunchbase): honor card paging limit..." | Re-trigger Greptile

Comment thread apps/sim/tools/crunchbase/get_entity_card.ts Outdated
Comment thread apps/sim/tools/error-extractors.ts
Comment thread apps/sim/tools/crunchbase/get_entity_card.ts
Comment thread apps/sim/tools/crunchbase/get_entity_card.ts
Comment thread apps/sim/tools/crunchbase/get_entity_card.ts
- Cap a card page at the documented 100-item maximum instead of Search's
  1000, which the shared Limit field made easy to carry over
- Always request the card's identifier so a narrowed cardFieldIds cannot
  return a full page with a null cursor and stall a paging loop
- Reject the mutually-exclusive afterId/beforeId pair on the card and
  deleted-entity endpoints, not just on search
- Report an unexpected card shape as empty rather than wrapping the
  envelope as a one-row page
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cursor review

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 3454575. Configure here.

@waleedlatif1
waleedlatif1 merged commit 40aa8ad into staging Aug 20, 2026
23 of 24 checks passed
@waleedlatif1
waleedlatif1 deleted the feat/crunchbase-integration branch August 20, 2026 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant