List your GA4 property's dimensions and metrics
google-analytics.metadataList the dimensions and metrics your GA4 property supports, including custom ones
- Price
- freeZum Listenpreis
- Success rate
- 100 %Last 30 days · 38 calls
- Latency p50
- 195 msp95 443 ms
- Last verified
- 28.07.2026Verified working
GEThttps://toolswitch.dev/v1/tools/google-analytics.metadataBeta- Uses platform quota
- Synchronous response
- Reads public data
Parameter
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 | Typ | Erforderlich | Beschreibung | Beispiel |
|---|---|---|---|---|
| Pfadparameter | ||||
property_id | Zeichenkette | Erforderlich | 123456789 | |
- Pfadparameter
property_idZeichenketteErforderlichBeispiel:
123456789
Codebeispiele
Ersetze $TOOLSWITCH_KEY durch den in der Konsole erstellten Schlüssel.
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());Diese Gateway-API ist in der Beta; URL und Authentifizierung können sich ändern. Die Beispielparameter sind Musterdaten. Aufrufe werden mit free einschließlich Servicegebühr abgerechnet.