List your GA4 property's dimensions and metrics
google-analytics.metadataList the dimensions and metrics your GA4 property supports, including custom ones
- Price
- freeAt list price
- Success rate
- 100%Last 30 days · 38 calls
- Latency p50
- 195 msp95 443 ms
- Last verified
- Jul 28, 2026Verified working
GEThttps://toolswitch.dev/v1/tools/google-analytics.metadataBeta- Uses platform quota
- Synchronous response
- Reads public data
Parameters
the cheap way to stop guessing: returns every apiName with its uiName, description and deprecation status — including the property's CUSTOM dimensions and metrics, which no static documentation can list. Free of the report token quota, so call it before composing a report
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Path parameters | ||||
property_id | string | Required | 123456789 | |
- Path parameters
property_idstringRequiredExample:
123456789
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
Beta
curl -X GET 'https://toolswitch.dev/v1/tools/google-analytics.metadata' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/google-analytics.metadata",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/google-analytics.metadata", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());This gateway API is in beta; its URL and authentication may change. The example parameters are sample data. Calls are billed at free, including the service fee.