Volver al ranking

bradjasper/ImportJSON

HTML

Import JSON into Google Sheets, this library adds various ImportJSON functions to your spreadsheet

spreadsheetgoogle-sheetsimportjsonparsingcryptocurrencies
Crecimiento de estrellas
Estrellas
2.1k
Forks
1k
Crecimiento semanal
Issues
153
1k2k
mar 2013ago 2017feb 2022jul 2026
README

ImportJSON

NOTE: This repo is currently unmaintained and looking for a new developer. If you are interested please reach out to contact@bradjasper.com

Import JSON from any URL directly into your Google Sheets. ImportJSON.gs adds an =ImportJSON() function to your spreadsheet, allowing quick and easy JSON importing. To use go to Tools > Script Editor and add the ImportJSON.gs file. Now in your spreadsheet you can access the ImportJSON() function. Use it like this:

=ImportJSON("https://mysafeinfo.com/api/data?list=bestnovels&format=json&rows=20&alias=cnt=count,avg=average_rank,tt=title,au=author,yr=year", "/title")

Here are all the functions available:

Function Description
ImportJSON For use by end users to import a JSON feed from a URL
ImportJSONFromSheet For use by end users to import JSON from one of the Sheets
ImportJSONViaPost For use by end users to import a JSON feed from a URL using POST parameters
ImportJSONBasicAuth For use by end users to import a JSON feed from a URL with HTTP Basic Auth
ImportJSONAdvanced For use by script developers to easily extend the functionality of this library

Review ImportJSON.gs for more info on how to use these in detail.

Version

  • v1.6.0 (June 2, 2019) Fixed null values (thanks @gdesmedt1)
  • v1.5.0 (January 11, 2019) Adds ability to include all headers in a fixed order even when no data is present for a given header in some or all rows.
  • v1.4.0 (July 23, 2017) - Project transferred to Brad Jasper. Fixed off-by-one array bug. Fixed previous value bug. Added custom annotations. Added ImportJSONFromSheet and ImportJSONBasicAuth.
  • v1.3.0 - Adds ability to import the text from a set of rows containing the text to parse. All cells are concatenated
  • v1.2.1 - Fixed a bug with how nested arrays are handled. The rowIndex counter wasn't incrementing properly when parsing.
  • v1.2.0 - Added ImportJSONViaPost and support for fetchOptions to ImportJSONAdvanced
  • v1.1.1 - Added a version number using Google Scripts Versioning so other developers can use the library
  • v1.1.0 - Added support for the noHeaders option
  • v1.0.0 - Initial release

How can you help?

Website archive

This code base used to be hosted at http://blog.fastfedora.com/projects/import-json and contained a lot of useful information. It has been archived at https://rawgit.com/bradjasper/ImportJSON/master/archive/blog.fastfedora.com/projects/import-json.html

Alternatives

Some of this if possible internally with Google App Scripts External APIs, like UrlFetch: https://developers.google.com/apps-script/guides/services/external

These require a Google account and an explicit permission, but in some cases may be a good fit.

Repositorios relacionados
nocodb/nocodb

🔥 🔥 🔥 A Free & Self-hostable Airtable Alternative

TypeScriptnpmOtherautomatic-apiairtable
nocodb.com
64.2k4.9k
SheetJS/sheetjs

📗 SheetJS Spreadsheet Data Toolkit -- New home https://git.sheetjs.com/SheetJS/sheetjs

Apache License 2.0xlsxexcel
sheetjs.com
36.3k7.9k
handsontable/handsontable

JavaScript Data Grid / Data Table with a Spreadsheet Look & Feel. Works with React, Angular, and Vue. Supported by the Handsontable team ⚡

JavaScriptnpmOtherexcelcrud-operations
handsontable.com/docs
22k3.2k
teableio/teable

✨ AI Spreadsheet for Business

TypeScriptnpmOtherairtableairtable-alternative
teable.ai
21.5k1.3k
qax-os/excelize

Go language library for reading and writing Microsoft Excel™ (XLAM / XLSM / XLSX / XLTM / XLTX) spreadsheets

GoGo ModulesBSD 3-Clause "New" or "Revised" Licensexlsxexcel
xuri.me/excelize
20.8k1.9k
dream-num/Luckysheet

Luckysheet upgraded to Univer

JavaScriptnpmMIT Licensespreadsheetjavascript
github.com/dream-num/univer/
16.7k2.6k
apitable/apitable

🚀🎉📚 APITable, an API-oriented low-code platform for building collaborative apps and better than all other Airtable open-source alternatives.

TypeScriptnpmGNU Affero General Public License v3.0airtableairtable-alternative
aitable.ai
15.4k1.4k
myliang/x-spreadsheet

The project has been migrated to @wolf-table/table https://github.com/wolf-table/table

JavaScriptnpmMIT Licensejavascriptspreadsheet
myliang.github.io/x-spreadsheet
14.6k1.8k
PHPOffice/PhpSpreadsheet

A pure PHP library for reading and writing spreadsheet files

PHPPackagistMIT Licensephpspreadsheet
phpspreadsheet.readthedocs.io
14k3.6k
dream-num/univer

Univer is a full-stack framework for creating and editing spreadsheets / word processor / presentation on both web and server.

TypeScriptnpmApache License 2.0data-tableexcel
docs.univer.ai
13.9k1.2k
gristlabs/grist-core

Grist is the evolution of spreadsheets.

TypeScriptnpmApache License 2.0awesomedatabase
getgrist.com
11.3k601
saulpw/visidata

A terminal spreadsheet multitool for discovering and arranging data

PythonPyPIGNU General Public License v3.0pythoncli
visidata.org
9.2k353