为了让表单创建者能够更好地控制哪些人可以回复,我们将为回复者引入精细的控制功能。2026 年 1 月 31 日之后使用该 API 创建的表单将默认处于未发布状态。如需了解详情,请参阅
Google 表单的 API 变更。
Google Forms API
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],["The API allows interaction with Google Forms and their responses. It supports creating new forms, retrieving specific forms, and batch updating forms. For responses, users can retrieve a single response or list all responses for a given form. The API also manages watches, enabling the creation, deletion, listing, and renewal of watches associated with forms. The base URL for the service is `https://forms.googleapis.com`.\n"],null,["# Google Forms API\n\nReads and writes Google Forms and responses.\n\n- [REST Resource: v1.forms](#v1.forms)\n- [REST Resource: v1.forms.responses](#v1.forms.responses)\n- [REST Resource: v1.forms.watches](#v1.forms.watches)\n\nService: forms.googleapis.com\n-----------------------------\n\nTo call this service, we recommend that you use the Google-provided [client libraries](https://cloud.google.com/apis/docs/client-libraries-explained). If your application needs to use your own libraries to call this service, use the following information when you make the API requests.\n\n### Discovery document\n\nA [Discovery Document](https://developers.google.com/discovery/v1/reference/apis) 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 document:\n\n- \u003chttps://forms.googleapis.com/$discovery/rest?version=v1\u003e\n\n### Service endpoint\n\nA [service endpoint](https://cloud.google.com/apis/design/glossary#api_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:\n\n- `https://forms.googleapis.com`\n\nREST Resource: [v1.forms](/workspace/forms/api/reference/rest/v1/forms)\n-----------------------------------------------------------------------\n\n| Methods ||\n|---------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------|\n| [batchUpdate](/workspace/forms/api/reference/rest/v1/forms/batchUpdate) | `POST /v1/forms/{formId}:batchUpdate` Change the form with a batch of updates. |\n| [create](/workspace/forms/api/reference/rest/v1/forms/create) | `POST /v1/forms` Create a new form using the title given in the provided form message in the request. |\n| [get](/workspace/forms/api/reference/rest/v1/forms/get) | `GET /v1/forms/{formId}` Get a form. |\n| [setPublishSettings](/workspace/forms/api/reference/rest/v1/forms/setPublishSettings) | `POST /v1/forms/{formId}:setPublishSettings` Updates the publish settings of a form. |\n\nREST Resource: [v1.forms.responses](/workspace/forms/api/reference/rest/v1/forms.responses)\n-------------------------------------------------------------------------------------------\n\n| Methods ||\n|---------------------------------------------------------------------|---------------------------------------------------------------------------------|\n| [get](/workspace/forms/api/reference/rest/v1/forms.responses/get) | `GET /v1/forms/{formId}/responses/{responseId}` Get one response from the form. |\n| [list](/workspace/forms/api/reference/rest/v1/forms.responses/list) | `GET /v1/forms/{formId}/responses` List a form's responses. |\n\nREST Resource: [v1.forms.watches](/workspace/forms/api/reference/rest/v1/forms.watches)\n---------------------------------------------------------------------------------------\n\n| Methods ||\n|-----------------------------------------------------------------------|----------------------------------------------------------------------------------------------|\n| [create](/workspace/forms/api/reference/rest/v1/forms.watches/create) | `POST /v1/forms/{formId}/watches` Create a new watch. |\n| [delete](/workspace/forms/api/reference/rest/v1/forms.watches/delete) | `DELETE /v1/forms/{formId}/watches/{watchId}` Delete a watch. |\n| [list](/workspace/forms/api/reference/rest/v1/forms.watches/list) | `GET /v1/forms/{formId}/watches` Return a list of the watches owned by the invoking project. |\n| [renew](/workspace/forms/api/reference/rest/v1/forms.watches/renew) | `POST /v1/forms/{formId}/watches/{watchId}:renew` Renew an existing watch for seven days. |"]]