example-data.com
Menu
Browse docs and collections

Overview

companies / #12

Component variants

Related

References

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 12,
  "name": "Rath, Ledner and Mitchell",
  "slug": "rath-ledner-and-mitchell-12",
  "description": "Phased mission-critical monitoring",
  "industryId": 37,
  "headquartersCountryAlpha2": "AU",
  "employeeCount": 29,
  "foundedYear": 1957,
  "websiteUrl": "https://example.com/companies/rath-ledner-and-mitchell",
  "logoUrl": "https://picsum.photos/seed/company-12/200/200",
  "isHiring": true,
  "createdAt": "2012-01-16T22:57:53.979Z"
}