example-data.com
Menu
Browse docs and collections

Overview

companies / #61

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 61,
  "name": "Romaguera Inc",
  "slug": "romaguera-inc-61",
  "description": "Organized fresh-thinking installation",
  "industryId": 34,
  "headquartersCountryAlpha2": "ZA",
  "employeeCount": 18246,
  "foundedYear": 1950,
  "websiteUrl": "https://example.com/companies/romaguera-inc",
  "logoUrl": "https://picsum.photos/seed/company-61/200/200",
  "isHiring": true,
  "createdAt": "2023-08-03T18:01:34.442Z"
}