Google Analytics API for GA4 reports
Join 200,000+ of the world’s most ambitious developers and builders
- Case study
- Case study
Supported platforms
One API. Google Analytics, Search Console and Tag Manager
Each connects with a Google login, on the same API key as posting, ads and conversions
- Google Analytics
- Google Search Console
- Google Tag Manager
How it works
From signup to first result in three steps
- 01
Get your API key
Sign up free and create a key in the dashboard.
- 02
Connect a GA4 property
Send the user to the connect link. They sign in with Google and pick one property.
- 03
Run your first report
POST /v1/analytics/googleanalytics/report with GA4 metric and dimension names.
Features
Everything you need for GA4
Report
- Reports1 to 10 metrics, up to 9 dimensions
- Date rangesRelative or exact dates
- Filters and orderGA4’s own filter and orderBys
Live and schema
- RealtimeActivity in the last 30 minutes
- MetadataEvery dimension and metric, custom ones included
- QuotaThe property’s tokens left, on every report
Connection
- Read onlyanalytics.readonly, never writes
- One property per accountAnother property on another profile
- Cached10 minutes for reports, 1 hour for metadata
Marketing infrastructure
More on the same API key
Posting, DMs, ads and conversions run on the same API and the same connected accounts.
Frequently asked questions
Google Analytics 4 properties the user can view. Universal Analytics properties are not supported.
Yes. Metrics and dimensions take their GA4 API names, and the metadata call lists every name the property accepts, custom definitions included.
No. The connection asks only for read access and never writes to the property.
Add Google Analytics to your app
Connect it with a Google login and use it next to every other channel.
- GA4 reports
- Realtime
- Read only