example-data.com
Menu
Browse docs and collections

Overview

companies / #62

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 62,
  "name": "Upton and Sons",
  "slug": "upton-and-sons-62",
  "description": "Adaptive systematic internet solution",
  "industryId": 4,
  "headquartersCountryAlpha2": "BE",
  "employeeCount": 4712,
  "foundedYear": 1991,
  "websiteUrl": "https://example.com/companies/upton-and-sons",
  "logoUrl": "https://picsum.photos/seed/company-62/200/200",
  "isHiring": false,
  "createdAt": "2021-07-18T12:10:35.364Z"
}