La API de Looker ahora usa valores de fragmento de consulta para los IDs de consulta.
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Los siguientes métodos de la API de la aplicación de Looker no usan un valor numérico query_id ni, en el caso de las APIs de Query, un valor numérico id. En su lugar, los siguientes métodos usan el valor de la etiqueta de la consulta.
El campo query_id o, en el caso de las APIs de Query, el campo id, es un tipo de datos de cadena. Los campos query_id o id ahora muestran un valor de fragmento de consulta en la respuesta de la API. Ese valor de fragmento de consulta se puede usar en cualquier solicitud a la API.
Por ejemplo, si crearas una consulta con la API de Create Query, id sería el fragmento de la consulta en la respuesta. Luego, puedes usar ese id para realizar una solicitud posterior.
Si tienes valores de ID de consulta numéricos codificados para cualquiera de los métodos de la API enumerados, debes actualizar tus secuencias de comandos para usar valores de fragmento de consulta.
¿Cómo encuentro el valor del fragmento de una consulta?
Puedes encontrar el valor del fragmento de una consulta de las siguientes maneras:
En el caso de una función Descubre, puedes encontrar el fragmento en la URL de la función después de la variable qid= en la URL.
Puedes encontrar el valor de la etiqueta asociado con un ID de consulta numérico en Actividad del sistema.
En la vista Consulta, selecciona las dimensiones ID y Vínculo.
De manera opcional, agrega un filtro en la dimensión ID y, luego, ingresa el ID numérico de la consulta en el campo de filtro ID de consulta.
Haz clic en Ejecutar.
Haz clic en el vínculo [Query] junto al ID de búsqueda numérica en los resultados de Explorar para abrir una exploración basada en ese ID de búsqueda numérica.
Luego, puedes usar el fragmento en la URL de Explorar, que sigue a la variable qid= en la URL.
¿Cómo puedo saber si usamos alguno de los extremos de la API actualizados?
En el menú Explorar de Looker, selecciona la exploración Actividad del sistema y, luego, la vista Uso de la API.
Selecciona las dimensiones Created Date > Date y Endpoint, y la medición Total Usage.
Agrega un filtro en la dimensión Extremo y, en el campo de filtro, incluye cualquiera de los extremos actualizados que se enumeran al comienzo de este documento que quieras buscar.
Haz clic en Ejecutar. Looker mostrará información de uso de esos extremos.
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-09-05 (UTC)"],[],[],null,["# The Looker API now uses query slug values for query IDs\n\n| **Note:** The change described on this page will be released in phases:\n|\n| - Looker 24.20 (on December 4, 2024): Americas Early customers\n| - Looker 25.0: Americas Mid customers\n| - Looker 25.2: General Availability (GA)\n\nThe following Looker application API methods don't use a numeric `query_id` value or, in the case of the Query APIs, a numeric `id` value. The following methods use the query slug value instead.\n\n- Look APIs:\n\n - [Copy Look](/looker/docs/reference/looker-api/latest/methods/Look/copy_look)\n - [Create Look](/looker/docs/reference/looker-api/latest/methods/Look/create_look)\n - [Get Look](/looker/docs/reference/looker-api/latest/methods/Look/look)\n - [Move Look](/looker/docs/reference/looker-api/latest/methods/Look/move_look)\n - [Search Looks](/looker/docs/reference/looker-api/latest/methods/Look/search_looks)\n - [Update Look](/looker/docs/reference/looker-api/latest/methods/Look/update_look)\n - [Get All Looks](/looker/docs/reference/looker-api/latest/methods/Look/all_looks)\n- Dashboard APIs:\n\n - [Search Dashboard Elements](/looker/docs/reference/looker-api/latest/methods/Dashboard/search_dashboard_elements)\n - [Get DashboardElement](/looker/docs/reference/looker-api/latest/methods/Dashboard/dashboard_element)\n - [Update DashboardElement](/looker/docs/reference/looker-api/latest/methods/Dashboard/update_dashboard_element)\n - [Get All DashboardElements](/looker/docs/reference/looker-api/latest/methods/Dashboard/dashboard_dashboard_elements)\n - [Create DashboardElement](/looker/docs/reference/looker-api/latest/methods/Dashboard/create_dashboard_element)\n- Render Task APIs:\n\n - [Create Look Render Task](/looker/docs/reference/looker-api/latest/methods/RenderTask/create_look_render_task)\n - [Create Query Render Task](/looker/docs/reference/looker-api/latest/methods/RenderTask/create_query_render_task)\n - [Create Dashboard Render Task](/looker/docs/reference/looker-api/latest/methods/RenderTask/create_dashboard_render_task)\n - [Get Render Task](/looker/docs/reference/looker-api/latest/methods/RenderTask/render_task)\n - [Create Dashboard Element Render Task](/looker/docs/reference/looker-api/latest/methods/RenderTask/create_dashboard_element_render_task)\n- Scheduled Plan APIs:\n\n - [Scheduled Plans for Space](/looker/docs/reference/looker-api/latest/methods/ScheduledPlan/scheduled_plans_for_space)\n - [Get Scheduled Plan](/looker/docs/reference/looker-api/latest/methods/ScheduledPlan/scheduled_plan)\n - [Update Scheduled Plan](/looker/docs/reference/looker-api/latest/methods/ScheduledPlan/update_scheduled_plan)\n - [Get All Scheduled Plans](/looker/docs/reference/looker-api/latest/methods/ScheduledPlan/all_scheduled_plans)\n - [Create Scheduled Plan](/looker/docs/reference/looker-api/latest/methods/ScheduledPlan/create_scheduled_plan)\n - [Scheduled Plans for Look](/looker/docs/reference/looker-api/latest/methods/ScheduledPlan/scheduled_plans_for_look)\n - [Scheduled Plans for Dashboard](/looker/docs/reference/looker-api/latest/methods/ScheduledPlan/scheduled_plans_for_dashboard)\n - [Scheduled Plans for LookML Dashboard](/looker/docs/reference/looker-api/latest/methods/ScheduledPlan/scheduled_plans_for_lookml_dashboard)\n- Query APIs:\n\n - [Run Query Async](/looker/docs/reference/looker-api/latest/methods/Query/create_query_task)\n - [Get Query](/looker/docs/reference/looker-api/latest/methods/Query/query)\n - [Get Query for Slug](/looker/docs/reference/looker-api/latest/methods/Query/query_for_slug)\n - [Create Query](/looker/docs/reference/looker-api/latest/methods/Query/create_query)\n - [Run Query](/looker/docs/reference/looker-api/latest/methods/Query/run_query)\n - [Get Merge Query](/looker/docs/reference/looker-api/latest/methods/Query/merge_query)\n - [Create Merge Query](/looker/docs/reference/looker-api/latest/methods/Query/create_merge_query)\n - [Get All Running Queries](/looker/docs/reference/looker-api/latest/methods/Query/all_running_queries)\n\nWhat do I need to do?\n---------------------\n\nThe `query_id` field or, in the case of the Query APIs, the `id` field, is a string data type. The `query_id` or `id` fields now return a query slug value in the API response. That query slug value can then be used in any API requests.\n\nFor example, if you were to create a query with the **Create Query** API, the `id` would be the query slug in the response. You could then use that `id` to make a subsequent request.\n\nIf you have hard-coded numeric query ID values for any of the listed API methods, **you need to update your scripts to use query slug values**!\n\nHow do I find the slug value for a query?\n-----------------------------------------\n\nYou can find the slug value for a query in the following ways:\n\n- For an Explore, you can find the slug in the Explore's URL following the `qid=` variable in the URL.\n\n- You can find the slug value that is associated with a numeric query ID using [System Activity](/looker/docs/usage-reports-with-system-activity-explores).\n\n | **Note:** To view the System Activity Explores, you must have a [role](/looker/docs/admin-panel-users-roles) that includes the [`see_system_activity` permission](/looker/docs/admin-panel-users-roles#see_system_activity).\n 1. From the Looker **Explore menu** , select the [**System Activity \\\u003e History** Explore](/looker/docs/usage-reports-with-system-activity-explores#history).\n\n 2. From the **Query** view, select the **ID** and **Link** dimensions.\n\n 3. Optionally, add a filter on the **ID** dimension, and enter the query's numeric query ID in the **Query ID** filter field.\n\n 4. Click **Run**.\n\n 5. Click the `[Query]` link next to the numeric query ID in the Explore results to open an Explore based on that numeric query ID.\n\n 6. You can then use the slug in the Explore's URL, which follows the `qid=` variable in the URL.\n\nHow can I tell if we use any of the updated API endpoints?\n----------------------------------------------------------\n\nYou can view a list of the API calls that were made to your Looker instance using the [API Usage System Activity Explore](/looker/docs/usage-reports-with-system-activity-explores#api_usage).\n\n1. From the Looker **Explore** menu, select the **System Activity** Explore, and then select the **API Usage** view.\n\n2. Select the **Created Date \\\u003e Date** and **Endpoint** dimensions and the **Total Usage** measure.\n\n3. Add a filter on the **Endpoint** dimension, and, in the filter field, include any of the updated endpoints listed at the beginning of this document that you want to search for.\n\n4. Click **Run**. Looker will display usage information for those endpoints."]]