+ Reply to Thread
Results 1 to 4 of 4

Google spreadsheet- collect data from web with json api

  1. #1
    Registered User
    Join Date
    09-18-2021
    Location
    Sweden
    MS-Off Ver
    Google Spreadsheets/2010
    Posts
    59

    Google spreadsheet- collect data from web with json api

    Is it possible to get data from web that use json api?
    i mean i can make a script with json in the spreadsheet and get my results from a special website?(with permission from that site ofcourse)

    i want to make my spreadsheet fully automatic

  2. #2
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,150

    Re: Google spreadsheet- collect data from web with json api

    Without knowing the details, the general answer is; yes.....

    You can get the JSon data into your Google Sheets by a script, if you can access the JSon data on the web.

  3. #3
    Registered User
    Join Date
    09-18-2021
    Location
    Sweden
    MS-Off Ver
    Google Spreadsheets/2010
    Posts
    59

    Re: Google spreadsheet- collect data from web with json api

    Yes, before i try write the script i will ask for permission to get the data i need. Thank you!

  4. #4
    Registered User
    Join Date
    09-21-2022
    Location
    [email protected]
    MS-Off Ver
    Office 2019 for Windows
    Posts
    6

    Re: Google spreadsheet- collect data from web with json api

    Part I
    Use a free ImportJSON Script
    1. Open a Google Sheet

    Open a new or existing Google Sheet.

    Tip: You can go to sheets.new in your browser if you want to create a new Google Sheet

    2. Open Script Editor

    In your Google sheet, in the menu at the top, click Extensions > Apps Script

    3. In the script editor, remove the placeholder content

    If there is any placeholder code typed into the script editor, you can remove it.

    4. Copy and paste an open-source script

    Go to: gist.github

    Copy all of the code for ?import_json_appsscript.js? and paste the code into the script editor of your Google Sheet.

    This is a free, open-source script someone created to import JSON into a Google Sheet.

    5. Save and name the script

    After you copy and paste all of the script into the script editor, click the save button and name your project.
    You can name the project anything you want, but naming it something like ?ImportJSON? will make it easy to remember.

    6. Go back to your Google Sheet

    After saving your project in the script editor, you can now close the script editor tab in your browser and go back to your Google Sheet.

    Now, in any cell of your Google Sheet, start typing ?=import? (without the quotation marks) and you will see ?ImportJSON? pop-up as an option. This is the script you saved in the script editor.

    Click on the ?ImportJSON? option.

    7. Add your JSON API URL

    After opening your Import JSON formula, you?ll need to add your JSON API URL.

    8. Import your JSON data

    Your last and final step to import JSON, after entering your JSON URL, is to your Google Sheet is to hit the enter button on your keyboard and wait for the JSON data to populate your spreadsheet.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Convert short VBA code to google sheet Json
    By tagazou in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-14-2020, 07:44 AM
  2. Replies: 1
    Last Post: 09-11-2015, 10:51 AM
  3. Replies: 2
    Last Post: 05-12-2015, 03:46 PM
  4. Problem with converting JSON into Google Spreadsheet
    By HannibalLec in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 05-06-2015, 07:54 AM
  5. Problem with converting JSON into Google Spreadsheet
    By HannibalLec in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-06-2015, 07:54 AM
  6. Replies: 2
    Last Post: 09-25-2013, 12:24 AM
  7. Adding Google Map Data to Spreadsheet
    By Shazz in forum Excel General
    Replies: 20
    Last Post: 01-19-2012, 12:28 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1