Google has released the Google Forms API, a RESTFUL interface that works with Google Forms and provides a way to create and distribute forms, surveys, and quizzes.
The Forms API joins the collection of APIs available to developers under the Google Workspace Platform. The new API is designed to make it easier to create and edit forms based on large volume question banks or other data backends, and to build automations for acting on incoming responses. The developers say examples include developing real-time dashboards or visualizations and triggering business workflows based on response data.
The API can be used to create new forms and quizzes, edit existing forms, and add questions, point values, and correct answers. When reading forms, there are functions to identify correct answers, award points based on criteria, and give feedback to answers.
Quizzes are a specific type of Google Forms document where the form responses can be graded against an answer key.
The team says the API can also be used to read responses to forms, including push notifications and notifications via cloud pub sub. Developers can also include code to subscribe to real-time form updates via Cloud Pub/Sub, and receive either push or pull notifications when forms change. There are also functions to be notified when a form is edited or when a form response is submitted, and to see the answers to each question, how long it took the person filling in the form to respond, and what the answer grades and feedback were.