To give form creators more control over who can respond, we're introducing granular controls for responders. Forms created with the API after March 31, 2026 will have an unpublished state by default. To learn more, see
API changes to Google Forms.
检索表单和回复
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
借助 Google Forms API,您可以检索表单内容、设置和元数据,以及最终用户的表单回复。本页面介绍了如何执行这些任务。
准备工作
在继续执行本页面上的任务之前,请先执行以下任务:
- 按照抢先体验计划说明完成授权/身份验证和凭据设置。
检索表单内容和元数据
如需检索表单的内容、设置和元数据,请使用表单 ID 调用 forms.get()
方法。
如需检索表单中的所有回答,请使用表单 ID 调用 forms.responses.list()
方法。
如需检索表单中的特定回答,请使用表单 ID 和回答 ID 调用 forms.responses.get()
方法。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-09-16。
[null,null,["最后更新时间 (UTC):2025-09-16。"],[],["The Google Forms API allows retrieving form data and responses. To begin, set up authorization/authentication. To get form content, settings, and metadata, use `forms.get()` with the form ID. To retrieve all responses, use `forms.responses.list()` with the form ID. For a single response, use `forms.responses.get()` with both the form ID and specific response ID. Python and Node.js code examples are provided for each action.\n"],null,[]]