example-data.com
Menu
Browse docs and collections

Overview

companies / #36

Component variants

Related

References

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 36,
  "name": "Watsica, Wiza and Braun",
  "slug": "watsica-wiza-and-braun-36",
  "description": "Phased modular knowledge base",
  "industryId": 27,
  "headquartersCountryAlpha2": "PT",
  "employeeCount": 41612,
  "foundedYear": 1993,
  "websiteUrl": "https://example.com/companies/watsica-wiza-and-braun",
  "logoUrl": "https://picsum.photos/seed/company-36/200/200",
  "isHiring": true,
  "createdAt": "2014-05-15T14:29:45.112Z"
}