  queries: queriesType
): Promise<Record<string, unknown>> {
  const url = generateRequestURL(queries);

  const json = (await (await fetch(url)).json()) as response;

  // API's response isn't returned in its entirety by this function.