example-data.com
Menu
Browse docs and collections

Overview

companies / #57

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 57,
  "name": "Murray, Towne and Miller",
  "slug": "murray-towne-and-miller-57",
  "description": "Optimized systemic orchestration",
  "industryId": 17,
  "headquartersCountryAlpha2": "JP",
  "employeeCount": 16045,
  "foundedYear": 1966,
  "websiteUrl": "https://example.com/companies/murray-towne-and-miller",
  "logoUrl": "https://picsum.photos/seed/company-57/200/200",
  "isHiring": true,
  "createdAt": "2022-03-26T15:14:27.021Z"
}