Skip to content

Locations

The Locations endpoint provides access to all locations from the Regular Show animated series.

Endpoint

GET /api/location

Query Parameters

ParameterTypeDescription
namestringFilter by location name
slugstringFilter by location slug
categorystringFilter by category (e.g., "Restaurants")
pagenumberPage number (default: 1)
limitnumberResults per page (default: 20)

Get All Locations

bash
GET /api/location

Search Locations by Name

bash
GET /api/location?name=Park

Filter by Category

bash
GET /api/location?category=Restaurants

Get Single Location

GET /api/location/:id

Parameters:

  • id - Location ID or slug
bash
GET /api/location/Park
GET /api/location/33

Location Object

json
{
  "id": 33,
  "name": "Park",
  "slug": "Park",
  "url": "https://regularshow.fandom.com/wiki/Park",
  "thumbnail": "https://static.wikia.nocookie.net/theregularshow/images/...",
  "categories": ["Locations"],
  "description": "The main setting of the show..."
}

Available Categories

  • Locations - General locations
  • Restaurants - Restaurants and food places
  • Schools - Schools and educational places

Example: Get All Restaurants

javascript
async function getRestaurants() {
  const response = await fetch('https://regularshow-api.vercel.app/api/location?category=Restaurants');
  const data = await response.json();
  return data.results;
}

Example: Search Locations

javascript
async function searchLocations(query) {
  const response = await fetch(
    `https://regularshow-api.vercel.app/api/location?name=${query}&limit=20`
  );
  const data = await response.json();
  
  data.results.forEach(location => {
    console.log(`${location.name} - ${location.categories.join(', ')}`);
  });
}

searchLocations('House');

Get Location Image Only

GET /api/location/:id/image
bash
GET /api/location/Park/image

Response:

json
{
  "id": 33,
  "name": "Park",
  "image": "https://static.wikia.nocookie.net/..."
}

Here are some of the key locations in Regular Show:

  • Park - The main park where most episodes take place
  • The House - The characters' residence
  • Benson's Apartment - Benson's living space
  • Cheezers - A popular restaurant
  • Space Tree - The space station from the final season
javascript
async function displayLocationGallery() {
  const response = await fetch('https://regularshow-api.vercel.app/api/location?limit=50');
  const data = await response.json();
  
  const gallery = document.getElementById('gallery');
  
  data.results.forEach(location => {
    const card = document.createElement('div');
    card.innerHTML = `
      <img src="${location.thumbnail}" alt="${location.name}">
      <h3>${location.name}</h3>
    `;
    gallery.appendChild(card);
  });
}

Released under the MIT License.