example-data.com
Menu
Browse docs and collections

Overview

companies / #58

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 58,
  "name": "Durgan, Nolan and Herzog",
  "slug": "durgan-nolan-and-herzog-58",
  "description": "Progressive responsive policy",
  "industryId": 9,
  "headquartersCountryAlpha2": "BR",
  "employeeCount": 26681,
  "foundedYear": 2022,
  "websiteUrl": "https://example.com/companies/durgan-nolan-and-herzog",
  "logoUrl": "https://picsum.photos/seed/company-58/200/200",
  "isHiring": true,
  "createdAt": "2011-07-14T08:01:34.071Z"
}