example-data.com
Menu
Browse docs and collections

Overview

companies / #32

Component variants

Related

References

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 32,
  "name": "Lebsack - Miller",
  "slug": "lebsack-miller-32",
  "description": "Profit-focused intangible time-frame",
  "industryId": 37,
  "headquartersCountryAlpha2": "ZA",
  "employeeCount": 26584,
  "foundedYear": 2009,
  "websiteUrl": "https://example.com/companies/lebsack-miller",
  "logoUrl": "https://picsum.photos/seed/company-32/200/200",
  "isHiring": true,
  "createdAt": "2017-05-11T10:31:19.956Z"
}