<prompt> Ngola mohlala oa khoutu e bitsang API.nan  <response>: Instruction in English: Write an example of code that calls an API. . Response in English: pythonimport requestsurl Defining the parameters for the GET requestparameters api_key: YOUR_API_KEY, format : json, date: 2021-08-04 Making the GET request to the APIresponse requests.geturl, paramsparameters Checking if the response is successfulif response.status_code requests.codes.ok: data response.json Processing the data as neededelse: printSomething went wrong:, response.status_code . Response in Sesotho: python likopo tsa ho kenya url Ho hlalosa liparamente tsa liparamente tsa kopo ea GET api_key: YOUR_API_KEY, format : json, date : 2021-08-04 Ho etsa kopo ea GET ho karabo ea API requests.geturl, paramsparameters Ho hlahloba hore na karabo e atlehile haeba response.status_code requests.codes.ok: data response.json Ho sebetsana le data kamoo ho hlokahalang: hatisaHo na le phoso:, response.status_code 