example-data.com
Menu
Browse docs and collections

Overview

companies / #67

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 67,
  "name": "Price - Rolfson",
  "slug": "price-rolfson-67",
  "description": "Business-focused motivating help-desk",
  "industryId": 2,
  "headquartersCountryAlpha2": "EG",
  "employeeCount": 2782,
  "foundedYear": 1981,
  "websiteUrl": "https://example.com/companies/price-rolfson",
  "logoUrl": "https://picsum.photos/seed/company-67/200/200",
  "isHiring": true,
  "createdAt": "2020-02-03T03:40:19.193Z"
}