example-data.com
Menu
Browse docs and collections

Overview

companies / #45

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/companies/45"
);
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/45"
);
const company = (await res.json()) as Company;

Python example

import requests

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

Response

{
  "id": 45,
  "name": "Barrows, Stanton and Kling",
  "slug": "barrows-stanton-and-kling-45",
  "description": "Extended hybrid strategy",
  "industryId": 9,
  "headquartersCountryAlpha2": "DE",
  "employeeCount": 49632,
  "foundedYear": 1996,
  "websiteUrl": "https://example.com/companies/barrows-stanton-and-kling",
  "logoUrl": "https://picsum.photos/seed/company-45/200/200",
  "isHiring": false,
  "createdAt": "2023-12-24T07:42:13.156Z"
}