Wanderlust getting error (Unauthorized) request failed

// Foursquare API Info
const clientId = 'ES0J5IKG4AN20QEZ1TZIRZAWZMOM4ZDDRRBJGXDKPQKGJPF1';
const clientSecret = 'EB1MA5ED1I0YTXLUUCSH1JSXKMIUGCKXVXYZ224SULBD5TSD';
const url = 'https://api.foursquare.com/v2/venues/explore?near=';

// OpenWeather Info
const openWeatherKey = '579d9b1735f197a2ef4c1ccf751666a0';
const weatherUrl = 'https://api.openweathermap.org/data/2.5/weather';

// Page Elements
const $input = $('#city');
const $submit = $('#button');
const $destination = $('#destination');
const $container = $('.container');
const $venueDivs = [$("#venue1"), $("#venue2"), $("#venue3"), $("#venue4")];
const $weatherDivs = [$("#weather1"), $("#weather2"), $("#weather3"), $("#weather4")];
const weekDays = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];

// Add AJAX functions here:
const getVenues = async () => {
const city = $input.val();
const urlToFetch = url + city + '&limit=10&client_id=' + clientId + '&client_secret=' + clientSecret + '&v=20180911';
  try{
    const response = await fetch(urlToFetch)
    if (response.ok) {
      //console.log(response)
      const jsonResponse = await response.json();
     // console.log(jsonResponse)
      const venues = jsonResponse.response.groups[0].items.map(item => item.venue);
      //console.log(venues)
      return venues;
    }
    else {
      throw new Error('Request failed!')
    }
  }
  catch(error) {
    //console.log(error.message)
  }
}

const getForecast = async () => {
const urlToFetch = `${weatherUrl}${openWeatherKey}&q=${$input.val()}&days=4&hour=11`;
  try{
    const response = await fetch(urlToFetch);
    if (response.ok) {
      const jsonResponse = await repsonse.json();
      //console.log(jsonResponse);
      const days = jsonResponse.forecast.forcastday
      return days;
    } else {
      throw new Error('Request failed!')
    }
  }
  catch(error) {
    console.log(error.message)
  }
}


// Render functions
const renderVenues = (venues) => {
  $venueDivs.forEach(($venue, index) => {
    // Add your code here:
const venue = venues[index];
    const venueIcon = venue.categories[0].icon;
    const venueImgSrc = `${venueIcon.prefix}bg_64${venueIcon.suffix}`;
    let venueContent = createVenueHTML(venue.name, venue.location, venueImgSrc );
    $venue.append(venueContent);
  });
  $destination.append(`<h2>${venues[0].location.city}</h2>`);
};

const renderForecast = (days) => {
  $weatherDivs.forEach(($day, index) => {
    // Add your code here:
const currentDay = days[index]
    let weatherContent = createWeatherHTML(currentDay);
    $day.append(weatherContent);
  });
}

const executeSearch = () => {
  $venueDivs.forEach(venue => venue.empty());
  $weatherDivs.forEach(day => day.empty());
  $destination.empty();
  $container.css("visibility", "visible");
  getVenues().then(venues => renderVenues(venues));
  getForecast().then(forecast => renderForecast(forecast));
  return false;
}

$submit.click(executeSearch)


hi can some one advise me where i am going wrong really finding this frustrating as i have completed the project but getting the error

my error in developer tools is showing the following

Hello and welcome to the forums!

Double check the URL you’re creating here. It’s not producing one that the OpenWeather API likes because it’s missing the APPID parameter. Step 21 of the project outlines the format you need

hi thanks for the reply