example-data.com
Menu
Browse docs and collections

Overview

companies / #4

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 4,
  "name": "Zulauf LLC",
  "slug": "zulauf-llc-4",
  "description": "Profit-focused 24 hour intranet",
  "industryId": 22,
  "headquartersCountryAlpha2": "PL",
  "employeeCount": 30,
  "foundedYear": 2016,
  "websiteUrl": "https://example.com/companies/zulauf-llc",
  "logoUrl": "https://picsum.photos/seed/company-4/200/200",
  "isHiring": true,
  "createdAt": "2023-02-26T15:01:30.827Z"
}