Google Apps Scripts

Build your own Google Sheets integration with the Snipe-IT API.

Google Apps Script lets you connect a Google Sheet to the Snipe-IT API. You can write a script to pull inventory into a sheet, build a custom report, or send updates from spreadsheet rows. Your Snipe-IT instance needs to be reachable from Google's servers over HTTPS.

Build your own integration

  1. Open your spreadsheet and choose Extensions > Apps Script to create a script attached to that sheet. Google's Sheets guide
  2. Choose the API endpoint for your task. For a first test, use GET https://assets.example.com/api/v1/hardware?limit=5 with your own instance URL. This fetches a small batch of assets. Snipe-IT API reference
  3. Make the request with UrlFetchApp.fetch(). Send the Accept: application/json header and an Authorization header containing Bearer followed by a Snipe-IT API token. Use an account with the permissions the script needs. Keep the token out of spreadsheet cells and shared script source. Google's URL Fetch reference · Generate a Snipe-IT API token
  4. Parse the JSON response and write the fields you need to the sheet. For the asset list, the records are in rows. Use pagination to fetch larger lists. API overview
  5. Select your function and click Run in the Apps Script editor. Google may ask you to authorize the script. If your script writes to Snipe-IT, start with a few records and check the results before processing the full sheet. Back up Snipe-IT before running bulk updates.

Start from an example

If you'd like a starting point, we publish example scripts you can use or adapt. Each script's README explains its inputs and setup. Google Apps Scripts for Snipe-IT on GitHub


Did this page help you?