example-data.com
Menu
Browse docs and collections

Overview

companies / #63

Component variants

Related

References

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 63,
  "name": "Beer - Doyle",
  "slug": "beer-doyle-63",
  "description": "Stand-alone intermediate implementation",
  "industryId": 18,
  "headquartersCountryAlpha2": "PE",
  "employeeCount": 10577,
  "foundedYear": 1996,
  "websiteUrl": "https://example.com/companies/beer-doyle",
  "logoUrl": "https://picsum.photos/seed/company-63/200/200",
  "isHiring": true,
  "createdAt": "2014-01-06T21:07:34.494Z"
}