Menú

Referencia de la API · Reports

Fuentes de datos

reports · data_sources · 1 operación

GET/v1/reports/data-sources

List the data sources a report can read

reports.data_sources.list

LecturaIdempotenteDesde 2026-11-01

Lists the platform connections of the organization, or of one of its accounts (target_org_id), with the data_source_id that goes in a data_source_mapping or in a block's data_source_id (e.g. google_ads:1234567890), the display name, the external id, the account currency and whether it is inherited from the workspace. Filter by platforms. Use it before reports.instances.generate or reports.templates.deploy to map each slot of the template. Requires view access to Reports. With Google Ads, Google Business Profile, LinkedIn, TikTok or YouTube, their terms limit it through the API and the MCP: what they do not allow answers 403 platform_terms_restricted, and their records are left out of the response (the permissions guide lists what each platform allows).

Alcance
reports:read
Permiso
Ver el módulo
Tool del MCP
reports_data_sources_listEn la superficie completa; en la compacta, mb_execute_operation con id: "reports.data_sources.list".

Costo declarado: hasta 2 lecturas y 0 escrituras por llamada (cuentan en el cupo diario).

Parámetros

target_org_idstringqueryopcional

The connections of this account of the workspace (to map a report made for it); without it, this organization's.

platformsarray<enum>queryopcional

Only these platforms (google_ads, meta_ads, google_analytics, google_search_console, google_business_profile, facebook_page, instagram, tiktok_ads, tiktok, linkedin_ads, linkedin_page, youtube).

Valores: google_ads, meta_ads, google_analytics, google_search_console, google_business_profile, facebook_page, instagram, tiktok_ads, tiktok, linkedin_ads, linkedin_page, youtube

Respuesta

dataarray<object>
has_morefalse

Errores

Ejemplo

curl "https://api.mb-suite.com/v1/reports/data-sources" \
  -H "Authorization: Bearer $MB_API_KEY"

Probar con tu API key de prueba

Con una API key de prueba el pedido va siempre a tu organización de práctica: datos de ejemplo que puedes reiniciar.

curl "https://api.mb-suite.com/v1/reports/data-sources" \
  -H "Authorization: Bearer $MB_TEST_KEY"