AccuWeather API Tutorial | Weather API Tutorial | For Beginners

Поділитися
Вставка
  • Опубліковано 23 січ 2025

КОМЕНТАРІ • 30

  • @AndysTechTutorials
    @AndysTechTutorials  Рік тому

    Here’s a link to download my Postman collection files that contains all of the API calls that I have made in this video and all my other API tutorial videos for whatever price you want (or download for free by typing $0).
    Once you import these files and populate your environment variables, you can start easily making the same API calls I did in the tutorial: andystechtutorials.gumroad.com/l/sqbuh!

  • @asht7290
    @asht7290 5 місяців тому +1

    Thanks. Just purchased your API tutorial code. Cheers

    • @AndysTechTutorials
      @AndysTechTutorials  5 місяців тому

      Hey @asht7290, thank you so much for the support! I really appreciate it!

  • @sumirandahal76
    @sumirandahal76 Рік тому +1

    Thankyou, I am total new to APIs

  • @ander172
    @ander172 Рік тому +1

    why there is no option to save my city ( location key ) in this weather app ? and using this then for testing other api calls in the weather app :(

    • @AndysTechTutorials
      @AndysTechTutorials  Рік тому

      Hey @ander172, when you say “weather app” are you talking about Postman?

  • @sirkyou399
    @sirkyou399 Рік тому +1

    Thank you for the tutorial. Can you suggest some methods on how to record the API calls in postman?

    • @AndysTechTutorials
      @AndysTechTutorials  Рік тому

      Hey @sirkyou399, you're welcome! Can you clarify what you mean when you say "record api calls in postman"? Do you mean you want to run the same api calls multiple times?

  • @isurujn
    @isurujn 2 роки тому +1

    Thanks for this. I was having trouble figuring out where to get the locationKey. Their docs do a poor job not having reference links to needed info.

  • @engelspielur
    @engelspielur 2 роки тому +1

    Thank you brother, you were very helpfull

    • @AndysTechTutorials
      @AndysTechTutorials  2 роки тому

      Hey Miguel, glad you found it helpful! If you could subscribe to the channel, I would greatly appreciate it!

  • @RavindraKumar-fu7km
    @RavindraKumar-fu7km 7 місяців тому +1

    Bro now there is no any tab of name MY APPs

  • @saiadusumalli9193
    @saiadusumalli9193 Рік тому +1

    Hey awesome video. Can you please explain on how I can find the key for countries?

    • @AndysTechTutorials
      @AndysTechTutorials  Рік тому +1

      Hey @saiadusumalli9193, if you make an api call to dataservice.accuweather.com/locations/v1/regions, you will get back a list of regions and then if you make this api call dataservice.accuweather.com/locations/v1/countries/{{specific_region_here}}?apikey={{api_Key}}, you will get back a list of countries for that specific region!
      Hopefully that helps!

    • @saiadusumalli9193
      @saiadusumalli9193 Рік тому

      @@AndysTechTutorials thank you very much for the reply. Is it possible to get the weather warnings using an api for the entire country? I am only able to use specific locations for the weather warnings but I would like to have all the weather warnings for a specific country.
      Thank you

  • @shibansky
    @shibansky Рік тому

    How did unpaste that JSon code to Wordpress?

  • @koyit4201
    @koyit4201 2 роки тому +1

    How to get the location key dynamically based on user's location?

    • @AndysTechTutorials
      @AndysTechTutorials  2 роки тому

      Hey Koyi, once you have the users location assuming you get their city, you will have to make the api call at 1:50 and pass in the user’s city as the query parameter for q.
      Once you make that api call, you will get back the location key for the users specific city.
      Hopefully that makes sense!

    • @koyit4201
      @koyit4201 2 роки тому +2

      @@AndysTechTutorials thank you for the lightning speed response, I understand that part so I'm trying to build a weather app and when the user opens the app and approved the permission of location tracking, I want to show the current location weather forecast. My question would be how do I pass the user's current device location into the API? Dynamically and not hard coded the city into the API.

    • @AndysTechTutorials
      @AndysTechTutorials  2 роки тому

      I'm not sure I understand your question. Once you get your user's location, you can pass in that value into the api to get the location key. Once you get the location key, you can pass that into the other api to get the weather data for that specific city.
      Hopefully that make sense and if it doesn't I can clarify more.

    • @AndysTechTutorials
      @AndysTechTutorials  2 роки тому +1

      To add on to my previous comment, you would need to make an api call in the programming language that you’re working and dynamically add your users location into the api call.
      For example, if you’re using react, you could use the axios package to make an api call and pass in the users city into the api call by passing in the query parameter of q and giving it the value of your users current city so something like q={usersCity} as part of the api call.

  • @AnitaTadjik
    @AnitaTadjik 2 роки тому

    sehr hilfreich

  • @SFStransit
    @SFStransit Рік тому

    Why do I need to create an app to get an API key? I want my API key

    • @AndysTechTutorials
      @AndysTechTutorials  Рік тому

      Hey @SuburbaniteUrbanite, with the AccuWeather API, you have to create an app to get your own api key

  • @NyxAGO
    @NyxAGO 2 роки тому +1

    Do you know why I can't use the service?
    24 Hours of Hourly Forecasts, I get Unauthorized
    Thx

    • @AndysTechTutorials
      @AndysTechTutorials  2 роки тому

      Hey Edwin, if it says unauthorized, that means your api key is not valid. Did you generate your own api key when making this api call?