Giter Site home page Giter Site logo

un-ocha / api2sheet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from guillaumev/api2sheet

0.0 3.0 0.0 973 KB

Import json results from an API to a google spreadsheet

Home Page: https://un-ocha.github.io/api2sheet

HTML 15.71% Ruby 5.95% JavaScript 23.96% CSS 54.38%

api2sheet's Introduction

api2sheet

Api2sheet is a Javascript utility that tries to make requests to an API and outputs the results in a google spreadsheet.

Installation

You can either download the index.html file and run it from localhost or, even easier, run it from https://guillaumev.github.io/api2sheet

Usage

api2sheet takes the following arguments to run:

  • Spreadsheet ID: enter the google spreadsheet ID. For example, if the URL of your spreadsheet is https://docs.google.com/spreadsheets/d/1Y4QAxuRkkKLvlOc4UrU0N2fqypDG1dug70VFSna1MT8/, enter 1Y4QAxuRkkKLvlOc4UrU0N2fqypDG1dug70VFSna1MT8
  • Sheet Name: enter the name of the sheet in which you want to import data
  • API URL: enter the API query from which you want to extract data. api2sheet will always perform a GET request.
  • API Key: if the API requires an API key, enter it here. The API key will be added to the Authorization header in the format "Authorization: Bearer <API_KEY>"

Pagination

api2sheet will try to get ALL results from your API query, even if they are in multiple pages. You therefore need to think through your API query carefully, because depending on the total number of results your query will return, the number of HTTP requests made to the API can be high. The total number of results returned by the API can be provided in 2 different ways:

  • Via the "X-Total-Count" header
  • Directly in the JSON results, via a "count" attribute (in this case, api2sheet will expect to retrieve data in the "data" attribute)

api2sheet's People

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.