List users in a GA4 audience export
google-analytics.x.analyticsdata-properties-audienceexports-queryaudienceExports.query — Retrieves an audience export of users. After creating an audience, the users are not immediately available for exporting. First, a request to `CreateAudienceExport` is necessary to create an audience export of users, and then second, this method is used to retrieve the users in the audience export. See [Creating an Audience Export](https://developers.google.com/analytics/de
- Precio
- freeA precio de catálogo
- Tasa de éxito
- —Aún no hay datos de tasa de éxitoÚltimos 30 días · 0 llamadas
- Latencia p50
- ——
- Última verificación
- —Aún no verificado
POSThttps://toolswitch.dev/v1/tools/google-analytics.x.analyticsdata-properties-audienceexports-queryBeta- Usa la cuota de la plataforma
- Respuesta síncrona
- Lee datos públicos
Parámetros
| Parámetro | Tipo | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Parámetros de ruta | ||||
name | cadena | Obligatorio | Required. The name of the audience export to retrieve users from. Format: `properties/{property}/audienceExports/{audience_export}` | |
- Parámetros de ruta
namecadenaObligatorioRequired. The name of the audience export to retrieve users from. Format: `properties/{property}/audienceExports/{audience_export}`
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
curl -X POST 'https://toolswitch.dev/v1/tools/google-analytics.x.analyticsdata-properties-audienceexports-query' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/google-analytics.x.analyticsdata-properties-audienceexports-query",
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.x.analyticsdata-properties-audienceexports-query", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());La API de la pasarela está en Beta; su URL y autenticación pueden cambiar. Los parámetros del ejemplo son datos de muestra. Las llamadas se facturan a free, incluida la tarifa de servicio.