Crunchbase API v3.1 shut down: working replacement

Back to the paste box or back to the graveyard.

Partial replacement

The replacement does not give back everything the old call did. In the registry's own words:

What ended and when

ended 2021-01-29 Crunchbase API v3.1 ended 2021-01-29.

Crunchbase's release history says end of support for API v3.1 was 30 October 2020 and end of life 29 January 2021, after which it is no longer accessible. Crunchbase's Basic getting-started page also says the Basic API is no longer offered (no date given).

Source notice, read 2026-11-23.

Old call and revived code

Organizations (v3.1): GET /v3.1/organizations/{permalink}

The old call

Method
GET
Host
api.crunchbase.com
Path
/v3.1/organizations/{permalink}
Parameters
user_key

paths as commonly called; the release history names the version, not the paths

Example call built from the registry

JavaScript

async function oldCall(permalink, user_key) {
  const res = await fetch(`https://api.crunchbase.com/v3.1/organizations/${permalink}?user_key=${user_key}`, { method: "GET" });
  return res.json();
}

Python

def old_call(permalink, user_key):
    response = requests.get(f"https://api.crunchbase.com/v3.1/organizations/{permalink}?user_key={user_key}")
    return response.json()

curl

curl -X GET "https://api.crunchbase.com/v3.1/organizations/$PERMALINK?user_key=$USER_KEY"

Revived code

Replaces the call with FoxAPIs POST /v1/get_company_snapshot. credits per call: see https://foxapis.com/pricing (not in the catalog snapshot). This call is asynchronous: it answers with a job id and the code polls until the job is done. The key is read from the environment variable FOXAPIS_KEY.

FoxAPIs reference entry for Get company snapshot

Your example call, rewritten in place

JavaScript

// RESURRECT: replaces the Crunchbase API v3.1 "Organizations (v3.1)" call (ended 2021-01-29). It now calls FoxAPIs POST /v1/get_company_snapshot.
// Needs FOXAPIS_KEY in the environment. A free key: https://foxapis.com/trial
// PARTIAL. get_company_snapshot answers with a written company snapshot (async: 202, then poll), not Crunchbase fields. It is returned unchanged and no field table is claimed.
const asResponse = (data, status = 200) => ({ ok: status < 400, status, data, json: async () => data, text: async () => JSON.stringify(data) });
async function waitForJob(jobId, headers) {
  for (let i = 0; i < 90; i += 1) {
    const res = await fetch("https://api.foxapis.com" + "/v1/jobs/" + encodeURIComponent(jobId), { headers });
    if (!res.ok) throw new Error("FoxAPIs job poll answered " + res.status);
    const job = await res.json();
    if (job.status === "done") return job;
    if (job.status === "failed" || job.status === "error") throw new Error("FoxAPIs job " + job.status);
    await new Promise((r) => setTimeout(r, 2000));
  }
  throw new Error("FoxAPIs job did not finish in time; poll " + jobId + " again later");
}
async function resurrectedOrganizations({ domain } = {}) {
  if (!domain) throw new Error("domain is required by FoxAPIs: company website domain (the old call had only a Crunchbase permalink)");
  const key = process.env.FOXAPIS_KEY;
  if (!key) throw new Error("Set FOXAPIS_KEY (free key: https://foxapis.com/trial)");
  const headers = { Authorization: `Bearer ${key}`, "Content-Type": "application/json" };
  const body = {};
  if (domain) body.domain = domain;
  const res = await fetch("https://api.foxapis.com/v1/get_company_snapshot", { method: "POST", headers, body: JSON.stringify(body) });
  if (res.status === 401 || res.status === 403) throw new Error("FoxAPIs rejected the key (status " + res.status + ")");
  if (res.status !== 202 && !res.ok) throw new Error("FoxAPIs answered " + res.status);
  const first = await res.json();
  const job = res.status === 202 ? await waitForJob(first.job_id, headers) : first;
  return job.result ?? null;
}

async function oldCall(permalink, user_key) {
  // RESURRECT: FoxAPIs call (Crunchbase API v3.1 Organizations (v3.1)). The value is shaped like a fetch or axios response: .ok, .status, .data and await .json() work.
  const _resurrected_1 = await resurrectedOrganizations({
    domain: undefined, // TODO: company website domain (the old call had only a Crunchbase permalink)
  });
  const res = _resurrected_1 !== null ? asResponse(_resurrected_1) : asResponse({ detail: "No match found by FoxAPIs" }, 404);
  return res.json();
}

Python

import json
import os
import re
import time
import urllib.error
import urllib.request

# RESURRECT: replaces the Crunchbase API v3.1 "Organizations (v3.1)" call (ended 2021-01-29). It now calls FoxAPIs POST /v1/get_company_snapshot.
# Needs FOXAPIS_KEY in the environment. A free key: https://foxapis.com/trial
# PARTIAL. get_company_snapshot answers with a written company snapshot (async: 202, then poll), not Crunchbase fields. It is returned unchanged and no field table is claimed.


class ResurrectedResponse:
    """Looks like a requests response: .json(), .status_code, .ok, .text, .raise_for_status()."""

    def __init__(self, data, status_code=200):
        self._data = data
        self.status_code = status_code
        self.ok = status_code < 400
        self.text = json.dumps(data)

    def json(self):
        return self._data

    def raise_for_status(self):
        if not self.ok:
            raise RuntimeError("FoxAPIs answered %s" % self.status_code)


def _foxapis(method, path, headers, body=None):
    data = json.dumps(body).encode() if body is not None else None
    req = urllib.request.Request("https://api.foxapis.com" + path, data=data, method=method, headers=headers)
    try:
        with urllib.request.urlopen(req, timeout=120) as r:
            raw = r.read().decode() or "null"
            return r.status, json.loads(raw)
    except urllib.error.HTTPError as e:
        return e.code, None


def _wait_for_job(job_id, headers):
    for _ in range(90):
        status, job = _foxapis("GET", "/v1/jobs/" + job_id, headers)
        if status >= 400:
            raise RuntimeError("FoxAPIs job poll answered %s" % status)
        if job.get("status") == "done":
            return job
        if job.get("status") in ("failed", "error"):
            raise RuntimeError("FoxAPIs job " + job["status"])
        time.sleep(2)
    raise RuntimeError("FoxAPIs job did not finish in time; poll " + job_id + " again later")


def resurrected_organizations(domain=None):
    if not domain:
        raise ValueError("domain is required by FoxAPIs: company website domain (the old call had only a Crunchbase permalink)")
    key = os.environ.get("FOXAPIS_KEY")
    if not key:
        raise RuntimeError("Set FOXAPIS_KEY (free key: https://foxapis.com/trial)")
    headers = {"Authorization": "Bearer " + key, "Content-Type": "application/json", "User-Agent": "resurrect/0.1"}
    body = {}
    if domain:
        body["domain"] = domain
    status, data = _foxapis("POST", "/v1/get_company_snapshot", headers, body)
    if status in (401, 403):
        raise RuntimeError("FoxAPIs rejected the key (status %s)" % status)
    if status not in (200, 202):
        raise RuntimeError("FoxAPIs answered %s" % status)
    job = _wait_for_job(data["job_id"], headers) if status == 202 else data
    return job.get("result")

def old_call(permalink, user_key):
    _resurrected_1 = resurrected_organizations(
        domain=None,  # TODO: company website domain (the old call had only a Crunchbase permalink)
    )
    response = ResurrectedResponse(_resurrected_1, 200) if _resurrected_1 is not None else ResurrectedResponse({"detail": "No match found by FoxAPIs"}, 404)
    return response.json()

curl

# RESURRECT: replaces the Crunchbase API v3.1 "Organizations (v3.1)" call (ended 2021-01-29). It now calls FoxAPIs POST /v1/get_company_snapshot.
# Needs FOXAPIS_KEY in the environment. A free key: https://foxapis.com/trial
# This call answers 202 with a job_id. Poll GET https://api.foxapis.com/v1/jobs/<job_id> with the same header until status is done.
curl -X POST https://api.foxapis.com/v1/get_company_snapshot \
  -H "Authorization: Bearer $FOXAPIS_KEY" \
  -H "Content-Type: application/json" \
  -d '{"domain":"TODO: company website domain (the old call had only a Crunchbase permalink)"}'

Standalone code

JavaScript

import { pathToFileURL } from "node:url";

// RESURRECT: replaces the Crunchbase API v3.1 "Organizations (v3.1)" call (ended 2021-01-29). It now calls FoxAPIs POST /v1/get_company_snapshot.
// Needs FOXAPIS_KEY in the environment. A free key: https://foxapis.com/trial
// PARTIAL. get_company_snapshot answers with a written company snapshot (async: 202, then poll), not Crunchbase fields. It is returned unchanged and no field table is claimed.
const asResponse = (data, status = 200) => ({ ok: status < 400, status, data, json: async () => data, text: async () => JSON.stringify(data) });
async function waitForJob(jobId, headers) {
  for (let i = 0; i < 90; i += 1) {
    const res = await fetch("https://api.foxapis.com" + "/v1/jobs/" + encodeURIComponent(jobId), { headers });
    if (!res.ok) throw new Error("FoxAPIs job poll answered " + res.status);
    const job = await res.json();
    if (job.status === "done") return job;
    if (job.status === "failed" || job.status === "error") throw new Error("FoxAPIs job " + job.status);
    await new Promise((r) => setTimeout(r, 2000));
  }
  throw new Error("FoxAPIs job did not finish in time; poll " + jobId + " again later");
}
export async function resurrectedOrganizations({ domain } = {}) {
  if (!domain) throw new Error("domain is required by FoxAPIs: company website domain (the old call had only a Crunchbase permalink)");
  const key = process.env.FOXAPIS_KEY;
  if (!key) throw new Error("Set FOXAPIS_KEY (free key: https://foxapis.com/trial)");
  const headers = { Authorization: `Bearer ${key}`, "Content-Type": "application/json" };
  const body = {};
  if (domain) body.domain = domain;
  const res = await fetch("https://api.foxapis.com/v1/get_company_snapshot", { method: "POST", headers, body: JSON.stringify(body) });
  if (res.status === 401 || res.status === 403) throw new Error("FoxAPIs rejected the key (status " + res.status + ")");
  if (res.status !== 202 && !res.ok) throw new Error("FoxAPIs answered " + res.status);
  const first = await res.json();
  const job = res.status === 202 ? await waitForJob(first.job_id, headers) : first;
  return job.result ?? null;
}

if (process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href) {
  const arg = process.argv[2] ? JSON.parse(process.argv[2]) : {};
  console.log(JSON.stringify(await resurrectedOrganizations(arg), null, 2));
}

Python

import json
import os
import re
import time
import urllib.error
import urllib.request

# RESURRECT: replaces the Crunchbase API v3.1 "Organizations (v3.1)" call (ended 2021-01-29). It now calls FoxAPIs POST /v1/get_company_snapshot.
# Needs FOXAPIS_KEY in the environment. A free key: https://foxapis.com/trial
# PARTIAL. get_company_snapshot answers with a written company snapshot (async: 202, then poll), not Crunchbase fields. It is returned unchanged and no field table is claimed.


class ResurrectedResponse:
    """Looks like a requests response: .json(), .status_code, .ok, .text, .raise_for_status()."""

    def __init__(self, data, status_code=200):
        self._data = data
        self.status_code = status_code
        self.ok = status_code < 400
        self.text = json.dumps(data)

    def json(self):
        return self._data

    def raise_for_status(self):
        if not self.ok:
            raise RuntimeError("FoxAPIs answered %s" % self.status_code)


def _foxapis(method, path, headers, body=None):
    data = json.dumps(body).encode() if body is not None else None
    req = urllib.request.Request("https://api.foxapis.com" + path, data=data, method=method, headers=headers)
    try:
        with urllib.request.urlopen(req, timeout=120) as r:
            raw = r.read().decode() or "null"
            return r.status, json.loads(raw)
    except urllib.error.HTTPError as e:
        return e.code, None


def _wait_for_job(job_id, headers):
    for _ in range(90):
        status, job = _foxapis("GET", "/v1/jobs/" + job_id, headers)
        if status >= 400:
            raise RuntimeError("FoxAPIs job poll answered %s" % status)
        if job.get("status") == "done":
            return job
        if job.get("status") in ("failed", "error"):
            raise RuntimeError("FoxAPIs job " + job["status"])
        time.sleep(2)
    raise RuntimeError("FoxAPIs job did not finish in time; poll " + job_id + " again later")


def resurrected_organizations(domain=None):
    if not domain:
        raise ValueError("domain is required by FoxAPIs: company website domain (the old call had only a Crunchbase permalink)")
    key = os.environ.get("FOXAPIS_KEY")
    if not key:
        raise RuntimeError("Set FOXAPIS_KEY (free key: https://foxapis.com/trial)")
    headers = {"Authorization": "Bearer " + key, "Content-Type": "application/json", "User-Agent": "resurrect/0.1"}
    body = {}
    if domain:
        body["domain"] = domain
    status, data = _foxapis("POST", "/v1/get_company_snapshot", headers, body)
    if status in (401, 403):
        raise RuntimeError("FoxAPIs rejected the key (status %s)" % status)
    if status not in (200, 202):
        raise RuntimeError("FoxAPIs answered %s" % status)
    job = _wait_for_job(data["job_id"], headers) if status == 202 else data
    return job.get("result")

if __name__ == "__main__":
    import sys

    arg = json.loads(sys.argv[1]) if len(sys.argv) > 1 else {}
    print(json.dumps(resurrected_organizations(**arg), indent=2))

Notes from the rewrite engine

  • Crunchbase API v3.1 Organizations (v3.1): PARTIAL. get_company_snapshot answers with a written company snapshot (async: 202, then poll), not Crunchbase fields. It is returned unchanged and no field table is claimed.
  • Crunchbase API v3.1 Organizations (v3.1): FoxAPIs needs domain; the old call did not have it, so a TODO placeholder was inserted. company website domain (the old call had only a Crunchbase permalink).

Fields that come back, and fields that do not

Organizations (v3.1)

PARTIAL. get_company_snapshot answers with a written company snapshot (async: 202, then poll), not Crunchbase fields. It is returned unchanged and no field table is claimed.

Compat route: Mapped, but no compat route has been built.

Try it

There is no sample button on this page, because no compat route with a recorded sample exists for it.