How To Call External API Using Google App Script

Поделиться
HTML-код
  • Опубликовано: 23 янв 2025

Комментарии • 45

  • @Amarindaz
    @Amarindaz  3 года назад

    Checkout how to build Email Marketing Tool on google sheets 👉 ruclips.net/video/gy7ypKE6rbg/видео.html

    • @Rama-bb3fl
      @Rama-bb3fl 3 года назад

      How to get json result back to googlesheet

  • @aaronvargas6005
    @aaronvargas6005 4 года назад +2

    Excellent tutorial. Concise and well done. Thank you!~

  • @bernardclabots3575
    @bernardclabots3575 4 года назад +3

    thanks for sharing! What about basic auth?

  • @j.-b.cousinat8907
    @j.-b.cousinat8907 7 лет назад

    This is clear, simple and efficient. Thanks !

  • @theauthenticleads
    @theauthenticleads 5 лет назад +2

    Do you have a video or code where I use specific data from a cell to import as a variable into the url? Then whatever response I get from the api, would go into another column cell?

  • @oldschoolshoe
    @oldschoolshoe 4 года назад +2

    Thank you for the tutorial. I had a quick question. Once the script has been run, you can see the results in the log file. However, how do you get that value in a cell on the google sheets you initially started with? Best regards.

    • @christianfoster1665
      @christianfoster1665 4 года назад

      Use a return statement in the function. The example in the video would be: return data.rates.INR . Then you can call this function by the name in the spreadsheet

    • @oldschoolshoe
      @oldschoolshoe 4 года назад

      @@christianfoster1665 Sorry for the delay. I wasn't sure where to look on YT for a reply. Two things learned. Thank you for the directions. Kind regards. Deen

  • @timsulzer
    @timsulzer 7 лет назад +4

    Great video - thanks for sharing!

  • @rb8058
    @rb8058 2 года назад

    Is json.parse no longer used by GAS in 2023? Tried following this tutorial exactly and get an error that

  • @robertscheier2453
    @robertscheier2453 5 лет назад +2

    Good video. Thanks.

  • @marijnfly
    @marijnfly 6 лет назад

    This video was recorded on a HP computer? Did you ever get rid of the annoying pop-up about the color scheme?

  • @alessandrograzzani5030
    @alessandrograzzani5030 2 года назад

    Hi, excellent tutorial, as always.
    I'm trying to connect google analytics 4 e create a function to take all the value of some metric and dimension in a certain period of time, and put it into a google sheet but I have to admit that i failed.
    The main problem is that i do not understand hot to give the command for the estraction and in the same time put the values in columns in the google sheet. Can you help me?, you will be my hero and i'll share your channel everywhere🙏😂

  • @sohandas1258
    @sohandas1258 6 лет назад +1

    Excellent!

  • @charlesodi9792
    @charlesodi9792 4 года назад

    hey, just want a quick question : how about with bearer token? how will i execute -> header : {'authorization' : 'Bearer ' + }

  • @s3rkanAGA
    @s3rkanAGA 4 года назад

    Hi. I want to write codes about the klines api in binance. The code is like "api.binance.com/api/v3/klines?symbol=BTCUSDT&interval=15m&limit=1" The code will be with 3 variables: Symbol,Interval and Limit. So the url will be the sum of these parameters and constant texts. I couldn't write these code, please could you help me?

  • @Marshallsbest
    @Marshallsbest 5 лет назад +2

    so far so good in terms of content but may I suggest you zoom into your editor to make your code more easily seen and the star of the show

  • @pjseoane
    @pjseoane 6 лет назад

    Very useful video. What if i have to do a refresh every 5 secs for example.
    Trigger allows only 1 minute updates.
    Haow can I generate de array in sheet every 5 or 10 secs?

  • @ukvaishnav
    @ukvaishnav 4 года назад +1

    can you answer similar thing about zoom.

  • @Rexrules1
    @Rexrules1 6 лет назад +2

    What about for API's that require an API key?

    • @Amarindaz
      @Amarindaz  6 лет назад +1

      You can pass that key in URL itself

    • @Rexrules1
      @Rexrules1 6 лет назад +1

      Amarindaz oh wow really? Could you maybe give a quick example in a comment?

  • @keerthigaranjith5403
    @keerthigaranjith5403 3 года назад +1

    Instead of using API URL, can we use API Token?

    • @Amarindaz
      @Amarindaz  3 года назад

      Yes you can

    • @keerthigaranjith5403
      @keerthigaranjith5403 3 года назад +1

      @@Amarindaz can you give some examples or what command we should use in app script?

  • @kfl-appsheet6167
    @kfl-appsheet6167 3 года назад

    my query is how to consume other api when field updated.

  • @sagerbhanushali4496
    @sagerbhanushali4496 6 лет назад

    hi really great video , i have another proble it willbe very great if you help me out in thi "How to export google sheets data to an external application
    "

  • @carlearl3646
    @carlearl3646 7 лет назад

    Hi Amarindaz, thanks for the great videos!
    I have a problem with the method :
    I receive the following when I view the log:
    [18-02-21 22:43:35:734 CET] undefined
    Do you have any idea on how to solve this issue?

    • @Amarindaz
      @Amarindaz  7 лет назад

      +Carl Earl which means you're not getting anything in return.

  • @ArifAhmed-wd1kk
    @ArifAhmed-wd1kk 4 года назад

    How to auto refresh this script on daily basis

  • @davimendespimentel6849
    @davimendespimentel6849 5 лет назад +1

    Great video, but the code could be better clean

  • @reubenspremsamson3046
    @reubenspremsamson3046 4 года назад +1

    Please assist in getting rid of this error:
    ReferenceError: urlFetchApp is not defined (line 3, file "Code")

    • @Amarindaz
      @Amarindaz  4 года назад

      It's case sensitive. Please check

    • @sohailmalik5481
      @sohailmalik5481 4 года назад +3

      It should be like UrlFetchApp and not urlFetchApp

  • @SunilKumar-ln2vr
    @SunilKumar-ln2vr 4 года назад

    I get the auth error 401

  • @yannfontaine1502
    @yannfontaine1502 5 лет назад

    Hi,
    Thnak you for the video, you explain very well.
    However, I guess the API have been changed, when I go to api.fixer.io/latest?base=USD,
    I get "This API endpoint is deprecated and has now been shut down. To keep using the Fixer API, please update your integration"

  • @mohdharoon2623
    @mohdharoon2623 7 лет назад

    Wow great video.
    Can u make a video of mini project with Google app script.

    • @Amarindaz
      @Amarindaz  7 лет назад

      +mohd Haroon sure soon you can expect

  • @sharansaign8093
    @sharansaign8093 7 лет назад

    sir,the way approach was simply good,i have a doubt that .
    how can i run a url whenever there is an update in the data.
    like if the data in row like A3 changes there should be a run of the url:-like io.reteiot.com/api/user/************/############/devansh/on

    • @Amarindaz
      @Amarindaz  7 лет назад

      You can pass the data from the spreadsheet as variable in google apps script. For example :
      api.coinmarketcap.com/v1/ticker/"+sh1.getRange(i, 2).getValue();

  • @mamohammad1
    @mamohammad1 7 лет назад +1

    You didn't show how it looks like in the google sheet!

  • @muraly3523
    @muraly3523 2 года назад +1

    👍🙏

  • @SilverMiraii
    @SilverMiraii 6 лет назад

    Google Apps Script: You do not have permission to call fetch