如需查看 API 参考文档,请访问 Looker Marketplace 获取 API Explorer 扩展程序。如需了解详情,请参阅使用 API Explorer 文档页面。如果您是 Looker 管理员,还可以通过点击 Looker 的 API 管理页面上的使用 API Explorer 链接来访问 API Explorer。
版本控制
在构建应用时,API 稳定性是一项重要的考虑因素。为了帮助您了解哪些端点未来可能会发生变化,哪些端点应该保持稳定,我们会将某些端点标记为 Beta 版。如需了解详情,请参阅 Looker API 版本控制文档页面。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-25。"],[],[],null,["# Getting started with the Looker API\n\n| **Note:** As of Looker 22.4, the [Looker API 4.0 is generally available](/looker/docs/api-4-ga). In Looker 23.18, the [Looker API 3.1 has been removed](/looker/docs/api-3x-deprecation).\n\nThe Looker API is a secure, \"RESTful\" application programming interface for managing your Looker instance and fetching data through the Looker data platform. With the Looker API, you can write applications or automation scripts to provision new Looker user accounts, run queries, schedule data deliveries, etc. Just about anything you can do in the Looker application you can do via the Looker API.\n\nLooker API path and port\n------------------------\n\nAccess your Looker instance's API through its API URL.\n\nYour Looker admin can specify an API path by entering it in the [**API Host URL**](/looker/docs/admin-panel-platform-api#api_host_url) field on the **Admin \\\u003e API** page in the following format: \n\n https://\u003cinstance_name\u003e.cloud.looker.com\n\nYour Looker admin may also use the [**API Host URL**](/looker/docs/admin-panel-platform-api#api_host_url) field to assign an API path that is different from your Looker server machine name. This is common when your Looker installation is behind a load balancer, for example. In this case, contact your Looker admin for your API path.\n\nIf your Looker admin has not specified the **API Host URL** field, Looker uses the default API path. For Looker instances hosted on Google Cloud, Microsoft Azure, and instances hosted on Amazon Web Service (AWS) that were created on or after 07/07/2020, the default Looker API path uses port `443`. For Looker instances hosted on AWS that were created before 07/07/2020, the default Looker API path uses port `19999`. The default API URL is in the following format: \n\n https://\u003cinstance_name\u003e.cloud.looker.com:\u003cport\u003e\n\nClient SDKs\n-----------\n\nYou can use the Looker API with any programming language or application environment that can make HTTPS requests and process JSON responses. You can construct Looker API HTTPS requests manually by using curl (or equivalent), by using the Looker Ruby SDK, or by generating a client SDK library for your language of choice. We recommend using an SDK because it takes care of the details of authentication and HTTPS requests for you, so that you can call the Looker API using simple function calls.\n\nYou'll find SDK details on our [Looker API SDKs](/looker/docs/api-sdk) documentation page.\n\nAuthentication\n--------------\n\nLooker authenticates API requests by using an OAuth 2.0 bearer access token in the HTTP authorization header of the request. All Looker API endpoints require a secure HTTPS connection so that the access token will be secure in transit.\n\nThe steps for achieving this depend upon whether or not you are using an SDK. Detailed instructions can be found on our [Looker API authentication](/looker/docs/api-auth) documentation page.\n\nInteractive API documentation\n-----------------------------\n\nFor API reference documentation, the API Explorer extension is available from the [Looker Marketplace](/looker/docs/marketplace). For more information, see the [Using the API Explorer](/looker/docs/api-explorer) documentation page. If you are a Looker admin, you can also access the API Explorer by clicking the **Use API Explorer** link on Looker's [**API** Admin page](/looker/docs/admin-panel-platform-api).\n\nVersioning\n----------\n\nAPI stability is an important consideration when building applications. In order to help you understand which endpoints may be changed in the future, and which should remain stable, we mark certain endpoints as being in beta. For more details, see the [Looker API versioning](/looker/docs/api-versioning) documentation page."]]