example-data.com
Menu
Browse docs and collections

Overview

companies / #35

Component variants

Related

References

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 35,
  "name": "Kemmer, Davis and Casper",
  "slug": "kemmer-davis-and-casper-35",
  "description": "Immersive systemic toolset",
  "industryId": 15,
  "headquartersCountryAlpha2": "PK",
  "employeeCount": 4337,
  "foundedYear": 2009,
  "websiteUrl": "https://example.com/companies/kemmer-davis-and-casper",
  "logoUrl": "https://picsum.photos/seed/company-35/200/200",
  "isHiring": true,
  "createdAt": "2016-02-16T00:43:19.228Z"
}