Colab API
发布时间:2026-09-09 | 浏览:1
Português – Brasil
The Colab API lets you programmatically manage Colab runtimes.
The API is currently in beta and available on an allowlist basis. If you're interested in integrating with us, please submit your use cases through this form .
Once access is granted to your project, run gcloud services enable colaboratory.googleapis.com to enable the API, and add a key=<API_KEY> query parameter to access the API discovery documents below.
We look forward to working with you!
REST Resource: v1beta
REST Resource: v1beta.runtimes
REST Resource: v1beta.runtimespecs
REST Resource: v1.operations
Service: colaboratory.googleapis.com
To call this service, we recommend that you use the Google-provided client libraries . If your application needs to use your own libraries to call this service, use the following information when you make the API requests.
Discovery document
A Discovery Document is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery documents:
https://colaboratory.googleapis.com/$discovery/rest?version=v1
https://colaboratory.googleapis.com/$discovery/rest?version=v1beta
Discovery document can also be retrieved in OpenAPI V3.0 format . This service provides the following OpenAPI v3 discovery documents:
https://colaboratory.googleapis.com/$discovery/OPENAPI3_0?version=v1
https://colaboratory.googleapis.com/$discovery/OPENAPI3_0?version=v1beta
Service endpoint
A service endpoint is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:
https://colaboratory.googleapis.com
REST Resource: v1beta
REST Resource: v1beta.runtimes
REST Resource: v1beta.runtimespecs
REST Resource: v1.operations
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-09-08 UTC.