Skip to content

API Documentation

Endpoints for executives and subsidiaries.

Glenhouse API Documentation

Introduction

The Glenhouse API provides access to information about Glenhouse executives and subsidiaries. All API endpoints return data in JSON format.

Base URL

https://weareglenhouse.com/api

Endpoints

Get All Executives

GET /executives

Returns a list of all executives at Glenhouse.

Example Response:

[
  {
    "name": "Gregory Pizarro, Jr.",
    "titles": {
      "Glenhouse": "Founder & Chief Executive Officer"
    },
    "imageUrl": "/executives/gregory-pizarro.jpg",
    "slug": "gregory-pizarro-jr",
    "subsidiaries": [
      "Glenhouse"
    ]
  }
]

Get Executive by Slug

GET /executives/{slug}

Returns information about a specific executive.

Example Request:

GET /executives/gregory-pizarro-jr

Get Executives by Subsidiary

GET /executives/subsidiary/{name}

Returns all executives belonging to a specific subsidiary.

Example Request:

GET /executives/subsidiary/Glenhouse%20Media

Get All Subsidiaries

GET /subsidiaries

Returns a list of all subsidiaries.

Example Usage (JavaScript)

// Fetch all executives
fetch('https://weareglenhouse.com/api/executives')
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error('Error:', error));

// Fetch a specific executive
fetch('https://weareglenhouse.com/api/executives/gregory-pizarro-jr')
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error('Error:', error));

// Fetch executives by subsidiary
fetch('https://weareglenhouse.com/api/executives/subsidiary/Glenhouse%20Media')
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error('Error:', error));