Import Hi Energy AI data into Google Sheets

These guides show marketers, publishers, and analysts how to call the Hi Energy AI REST API from Google Apps Script with UrlFetchApp, authenticate using X-Api-Key, paginate results, flatten JSON responses, and write rows into Google Sheets. Each resource page includes copy-paste code you can drop into Code.gs.

Optimized for search and answer engines: clear steps, FAQ schema, HowTo markup, and canonical resource pages for deals, advertisers, transactions, clicks, and contacts.

Resource guides

Deals

Active offers and promotions via GET /api/v1/deals.

Open Deals Apps Script guide

Advertisers

Programs and brands via GET /api/v1/advertisers.

Open Advertisers Apps Script guide

Transactions

Sales and commissions via GET /api/v1/transactions.

Open Transactions Apps Script guide

Clicks

Click analytics via GET /api/v1/clicks (≤90 days).

Open Clicks Apps Script guide

Contacts

Advertiser contacts via GET /api/v1/contacts.

Open Contacts Apps Script guide

Authentication for Apps Script

Prefer the X-Api-Key header with your personal API key. The samples read the key from Script properties (HIENERGY_API_KEY) so secrets stay out of cell values and shared comments.

headers: {
  'X-Api-Key': PropertiesService.getScriptProperties().getProperty('HIENERGY_API_KEY'),
  'Accept': 'application/json'
}

Setup in Google Sheets

  1. Open a Google Sheet → ExtensionsApps Script.
  2. Get your personal API key from API key docs. Prefer the X-Api-Key header (these samples already do).
  3. In Apps Script, open Project SettingsScript properties and add HIENERGY_API_KEY with your key value.
  4. Paste the shared client library, then the resource import script below.
  5. Click Save, reload the Sheet, and run the import from the Hi Energy AI menu (or Run in the editor).
  6. On first run, authorize the script when Google prompts for UrlFetchApp / external request permission.

FAQ

Yes. Google Apps Script can call the Hi Energy AI REST API with UrlFetchApp and the X-Api-Key header. These docs provide paste-ready importers for deals, advertisers, transactions, clicks, and contacts.

Store HIENERGY_API_KEY in Apps Script Project Settings → Script properties. Avoid pasting secrets into cell values or shared sheet comments.

Dedicated guides cover deals, advertisers, transactions, clicks, and contacts, each with cut-and-paste Apps Script samples, HowTo steps, and FAQ schema for search and answer engines.

Yes. Each Google Sheets page exposes TechArticle, HowTo, FAQPage, BreadcrumbList, and WebSite SearchAction structured data plus explicit steps and copy-paste samples so assistants can cite a concrete spreadsheet workflow.

The published samples are read-only GET imports. Creating contacts or other writes requires separate authenticated POST flows documented on the resource API pages.

No. Hi Energy AI authentication uses your personal API key via the X-Api-Key header. Google may still ask you to authorize the Apps Script project so UrlFetchApp can call external HTTPS services.
Ask Dex AIIntegration help

If this page feels TLDR, ask Dex AI.

Dex AI speaks your language, and all the other languages you may not. It will write the integration for you with the right endpoint and headers in one plain-English answer.