Get an API specification

Version 4.0.26.2 (latest)

Get an API specification for this Looker instance.

The specification is returned as a JSON document in Swagger 2.x format

Request

GET/api_spec/{api_version}/{specification}
Datatype
Description
Request
HTTP Request
path
HTTP Path
Expand HTTP Path definition...
api_version
string
API version
specification
string
Specification name. Typically, this is "swagger.json"

Response

200: API specification

Datatype
Description
(any)
any

400: Bad Request

Datatype
Description
(object)
message
string
Error details
documentation_url
string
Documentation link

404: Not Found

Datatype
Description
(object)
message
string
Error details
documentation_url
string
Documentation link

429: Too Many Requests

Datatype
Description
(object)
message
string
Error details
documentation_url
string
Documentation link

Examples

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-02-09 UTC.