example-data.com
Menu
Browse docs and collections

Overview

companies / #47

Component variants

Related

Referenced by

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/companies/47" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/companies/47"
);
const company = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/companies.d.ts https://example-data.com/types/companies.d.ts
import type { Company } from "./types/companies";

const res = await fetch(
  "https://example-data.com/api/v1/companies/47"
);
const company = (await res.json()) as Company;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/companies/47"
)
companie = res.json()

Response

{
  "id": 47,
  "name": "Ziemann and Sons",
  "slug": "ziemann-and-sons-47",
  "description": "Robust asymmetric internet solution",
  "industryId": null,
  "headquartersCountryAlpha2": "BE",
  "employeeCount": 38773,
  "foundedYear": 2012,
  "websiteUrl": "https://example.com/companies/ziemann-and-sons",
  "logoUrl": "https://picsum.photos/seed/company-47/200/200",
  "isHiring": false,
  "createdAt": "2016-02-05T22:23:56.305Z"
}