example-data.com
Menu
Browse docs and collections

Overview

companies / #71

Component variants

Related

References

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 71,
  "name": "Littel, Rodriguez and McDermott",
  "slug": "littel-rodriguez-and-mcdermott-71",
  "description": "Secured static service-desk",
  "industryId": 19,
  "headquartersCountryAlpha2": "GB",
  "employeeCount": 34009,
  "foundedYear": 1998,
  "websiteUrl": "https://example.com/companies/littel-rodriguez-and-mcdermott",
  "logoUrl": "https://picsum.photos/seed/company-71/200/200",
  "isHiring": true,
  "createdAt": "2016-04-15T14:37:18.469Z"
}