example-data.com
Menu
Browse docs and collections

Overview

companies / #80

Component variants

Related

References

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 80,
  "name": "Stark - Nicolas",
  "slug": "stark-nicolas-80",
  "description": "Seamless explicit knowledge base",
  "industryId": 6,
  "headquartersCountryAlpha2": "ET",
  "employeeCount": 15754,
  "foundedYear": 1969,
  "websiteUrl": "https://example.com/companies/stark-nicolas",
  "logoUrl": "https://picsum.photos/seed/company-80/200/200",
  "isHiring": false,
  "createdAt": "2024-08-03T14:10:59.232Z"
}