Spreadsheet as CMS

Manage your website content directly from your spreadsheet.

Turn your spreadsheet into a powerful Content Management System (CMS) for your website. Perfect for blogs, product catalogs, and any dynamic content that needs frequent updates.

In this guide, we'll show you how to connect your spreadsheet to your website and manage content without any coding.

format_list_numbered 1. Format your Spreadsheet

First, head over to Google Sheets or Excel Online and create a new empty spreadsheet.

The first row (1) should only contain column names. All the other rows may contain data, in whatever format you'd like (symbols, numbers, dates, words, etc).

For example:

A B C D E
1 Name Favourite Thing Image
2 Bugs Bunny Carrots Bugs.png
3 Elmer Fudd Chasing Rabbits Elmer.png
4
Sheet1

share 2. Share your Spreadsheet

In order to connect your Google/Excel spreadsheet to sheet2api, you'll need to give sheet2api access to it, here's how to do that.

Private Google Sheets

Use this method if your spreadsheet is private and you would like to keep it that way.

  1. Navigate to your Google Sheet in your web browser.
  2. Click "Share" in the top right.
  3. In the "Add people and groups" input box, type [email protected].
  4. Choose Viewer for a read-only API. Choose Editor only if the API needs to create or update rows, and disable unused write operations.
  5. Un-tick "Notify people" and click "Share".
  6. Finally, click "Share" at the top right again, then click "Copy link".
Google sign-in to sheet2api does not grant access to a private sheet. Share it with the Google address shown above, then use the copied link when you create the API.

Public Google Sheets

Use this method if your spreadsheet is public.

  1. Navigate to your Google Sheet in your web browser.
  2. Click "Share" in the top right.
  3. Under General access, choose Anyone with the link and Viewer only if you intend the sheet to be publicly readable.
  4. Click "Copy link".
Use the copied link when you create the API. Anyone with access to this public sheet may be able to read its contents; make the sheet public only if that is intended.

Excel Online

  1. Sign in to sheet2api with the Microsoft account that can access the workbook and grant the requested Microsoft permissions.
  2. Navigate to your Excel Online Spreadsheet in your web browser.
  3. Right click on the address bar and select "Copy".
Use the copied Excel Online link when you create the API. Sheet2API uses the signed-in Microsoft account to read and update the workbook. A Microsoft token can expire or be revoked; if that happens, follow the reauthorization link sent by email. See the reauthorization FAQ. The connected account must be allowed to edit the workbook for API write operations to work.
Google and Excel permissions apply to the spreadsheet or workbook. A separate endpoint for a worksheet does not create a separate permission boundary. Share only workbooks whose contents the API is allowed to return.

Local Excel files, CSV uploads, and Microsoft SharePoint links are not supported as direct connections. Use a Google Sheet or an Excel Online workbook link instead.

add_circle 3. Create Spreadsheet API

Create your Spreadsheet API by pasting your spreadsheet link from the previous step into the form.

Create REST API from a Google or Excel Sheet

Click Create 🚀. Your new Spreadsheet API will be listed on the next page.

Your Spreadsheet APIs list in account

code 4. Populate your Website

Place the following HTML code in your website to display the information from your spreadsheet:

<div data-spreadsheet-api="https://sheet2api.com/v1/FgI6zV8qT121/characters/">
    <div>
        <span>Name: <b>{{ Name }}</b></span>
        <span>Favourite Thing: <b>{{ Favourite Thing }}</b></span>
        <span>Image: <b>{{ Image }}</b></span>
    </div>
</div>
<script src="https://sheet2api.com/v1/template.js"></script>

Remember to replace https://sheet2api.com/v1/FgI6zV8qT121/characters/ with your own API URL.

link Example Output

Name: {{ Name }} Favourite Thing: {{ Favourite Thing }} Image: {{ Image }}

check_circle It's as easy as that! 🎉

Need help? Feel free to reach out via our contact page.

Start using sheet2api now

Be up & running in seconds.

Start your 7-day free trial
check_circle 7-day free trial
check_circle Cancel anytime
Clara from sheet2api