{
  "service": "crunchbase",
  "displayName": "Crunchbase",
  "categories": [
    "Data",
    "Marketing"
  ],
  "authTypes": [
    "api_key"
  ],
  "auth": [
    {
      "type": "api_key",
      "label": "API Key",
      "placeholder": "CRUNCHBASE_API_KEY",
      "description": "Crunchbase API key sent with the X-cb-user-key header. API keys are emailed after Crunchbase Data registration; contact api@crunchbase.com if you lose yours: https://data.crunchbase.com/docs/using-the-api.",
      "extraFields": []
    }
  ],
  "homepageUrl": "https://www.crunchbase.com",
  "actions": [
    {
      "id": "crunchbase.autocomplete_entities",
      "service": "crunchbase",
      "name": "autocomplete_entities",
      "description": "Suggest Crunchbase entities that match a text query.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "minLength": 1,
            "description": "Text to search for in Crunchbase identifiers."
          },
          "collectionIds": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "description": "One Crunchbase collection ID such as organizations or people."
            },
            "description": "Crunchbase collections to search. Omit to search all supported identifiers.",
            "minItems": 1
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 25,
            "description": "Number of suggestions to return. Crunchbase defaults to 10 and allows up to 25."
          }
        },
        "additionalProperties": false,
        "required": [
          "query"
        ],
        "description": "Input for requesting Crunchbase autocomplete suggestions."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "entities": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "identifier": {
                  "type": "object",
                  "properties": {
                    "entity_def_id": {
                      "type": "string",
                      "description": "The Crunchbase entity definition ID."
                    },
                    "uuid": {
                      "type": "string",
                      "description": "The Crunchbase entity UUID."
                    },
                    "permalink": {
                      "type": "string",
                      "description": "The Crunchbase permalink slug."
                    },
                    "value": {
                      "type": "string",
                      "description": "The display name for this Crunchbase identifier."
                    },
                    "image_id": {
                      "type": "string",
                      "description": "The Crunchbase image ID when available."
                    }
                  },
                  "additionalProperties": true,
                  "description": "A Crunchbase entity identifier."
                },
                "facet_ids": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "description": "One facet ID."
                  },
                  "description": "The facet IDs attached to this match."
                }
              },
              "additionalProperties": true,
              "description": "One Crunchbase autocomplete match."
            },
            "description": "Autocomplete entities returned by Crunchbase."
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "Raw object returned by the official Crunchbase API."
          }
        },
        "additionalProperties": false,
        "required": [
          "entities",
          "raw"
        ],
        "description": "Crunchbase autocomplete suggestions."
      }
    },
    {
      "id": "crunchbase.get_organization",
      "service": "crunchbase",
      "name": "get_organization",
      "description": "Look up one Crunchbase organization by UUID or permalink.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "entityId": {
            "type": "string",
            "minLength": 1,
            "description": "Crunchbase organization UUID or permalink."
          },
          "fieldIds": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "description": "A Crunchbase organization field ID to include."
            },
            "description": "Organization field IDs to include.",
            "minItems": 1
          },
          "cardIds": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "description": "A Crunchbase organization card ID to include."
            },
            "description": "Organization card IDs to include.",
            "minItems": 1
          }
        },
        "additionalProperties": false,
        "required": [
          "entityId"
        ],
        "description": "Input for looking up one Crunchbase organization."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "organization": {
            "type": "object",
            "properties": {
              "cards": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "Cards included on the organization response."
              },
              "properties": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "Properties included on the organization response."
              }
            },
            "additionalProperties": true,
            "description": "A Crunchbase organization entity."
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "Raw object returned by the official Crunchbase API."
          }
        },
        "additionalProperties": false,
        "required": [
          "organization",
          "raw"
        ],
        "description": "Crunchbase organization lookup response."
      }
    },
    {
      "id": "crunchbase.search_organizations",
      "service": "crunchbase",
      "name": "search_organizations",
      "description": "Search Crunchbase organizations using the official Search API query structure.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "fieldIds": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "description": "A Crunchbase organization field ID to include."
            },
            "description": "Organization field IDs to include in each result.",
            "minItems": 1
          },
          "query": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "description": "The Crunchbase predicate type such as predicate, and, or, not, or collection."
                },
                "field_id": {
                  "type": "string",
                  "description": "The organization field ID this predicate targets."
                },
                "operator_id": {
                  "type": "string",
                  "description": "The Crunchbase operator ID for this predicate."
                },
                "values": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string",
                        "description": "A string predicate value."
                      },
                      {
                        "type": "integer",
                        "description": "An integer predicate value."
                      },
                      {
                        "type": "number",
                        "description": "A numeric predicate value."
                      },
                      {
                        "type": "boolean",
                        "description": "A boolean predicate value."
                      }
                    ],
                    "description": "One Crunchbase predicate value."
                  },
                  "description": "The values applied to this predicate.",
                  "minItems": 1
                }
              },
              "additionalProperties": true,
              "description": "One Crunchbase search predicate or nested query group from the official Search API."
            },
            "description": "Official Crunchbase Search API predicates to apply.",
            "minItems": 1
          },
          "order": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "field_id": {
                  "type": "string",
                  "minLength": 1,
                  "description": "The organization field ID to sort by."
                },
                "sort": {
                  "type": "string",
                  "enum": [
                    "asc",
                    "desc"
                  ],
                  "description": "The sort direction."
                }
              },
              "additionalProperties": false,
              "required": [
                "field_id",
                "sort"
              ],
              "description": "One Crunchbase search ordering rule."
            },
            "description": "Sort rules for the search response.",
            "minItems": 1
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "description": "Number of organizations to return."
          },
          "afterId": {
            "type": "string",
            "minLength": 1,
            "description": "Cursor ID from a previous Crunchbase search response."
          }
        },
        "additionalProperties": false,
        "description": "Input for searching Crunchbase organizations."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer",
            "description": "Number of organizations returned in this response."
          },
          "entities": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "description": "The Crunchbase organization UUID."
                },
                "properties": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "The requested organization fields returned by Crunchbase."
                }
              },
              "additionalProperties": true,
              "description": "One Crunchbase organization search result."
            },
            "description": "Organization search results returned by Crunchbase."
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "Raw object returned by the official Crunchbase API."
          }
        },
        "additionalProperties": false,
        "required": [
          "count",
          "entities",
          "raw"
        ],
        "description": "Crunchbase organization search response."
      }
    }
  ]
}
