Skip to main content
Returns the complete GPSpedia catalog in a single response. This is the primary data-loading action used to populate the main catalog view. Results may be served from an in-memory cache for performance. Endpoint: CATALOG service Action: getCatalogData

Request

No payload required.
action
string
required
Must be "getCatalogData".

Response

status
string
required
Always "success" on success.
source
string
Indicates where the data was loaded from. Either "cache" or "spreadsheet".
data
object

Example

const CATALOG_ENDPOINT = 'https://script.google.com/macros/s/AKfycbxenVjZe9C8-0RiYKLxpGfQtobRzydBke44IM4NdNNjh5VRdlB91Ce9dWvQ2xnDFXk0/exec';

const response = await fetch(CATALOG_ENDPOINT, {
  method: 'POST',
  headers: { 'Content-Type': 'text/plain' },
  body: JSON.stringify({ action: 'getCatalogData', payload: {} }),
  redirect: 'follow'
});

const result = await response.json();
if (result.status === 'success') {
  const { cortes, relay, tutoriales, logos, sortedCategories } = result.data;
  console.log(`Loaded ${cortes.length} cut records from ${result.source}`);

  // Filter to a specific make
  const toyotaCuts = cortes.filter(c => c.marca === 'Toyota');
}

Build docs developers (and LLMs) love