Using js-genai with googleapis.com

TypeScript integration

✓ Official SDK
Install
npm install js-genai
Quick start
import Js_genai from 'js-genai';

const client = new Js_genai({ accessToken: "YOUR_ACCESS_TOKEN" });
Lookup for a single "GA4" MeasurementProtocolSecret.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://analyticsadmin.googleapis.com/v1beta/{name}
Returns all accounts accessible by the caller. Note that these accounts might…
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://analyticsadmin.googleapis.com/v1beta/accounts
Returns child Properties under the specified parent Account. Only "GA4" prope…
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://analyticsadmin.googleapis.com/v1beta/properties
SDK on GitHub 📄 API Docs
SDK
js-genai
TypeScript
API
googleapis.com
googleapis.com:analyticsadmin
At a glance
Language TypeScript
Endpoints26
Base URLhttps://analyticsadmin.googleapis.com
✓ Official