Google

Google Forms API

Reads and writes Google Forms and responses.

Productivity & workspace#openapi#analytics#media

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

Reads and writes Google Forms and responses.

Endpoints 10

forms

  • POSTChange the form with a batch of updates./v1/forms/:formId:batchUpdateChange the form with a batch of updates.
  • POSTCreate a new form using the title given in the provided form message in the request/v1/forms?unpublished=trueCreate a new form using the title given in the provided form message in the request. *Important:* Only the form.info.title and form.info.document_title fields…
  • GETGet a form./v1/forms/:formIdGet a form.
  • POSTUpdates the publish settings of a form/v1/forms/:formId:setPublishSettingsUpdates the publish settings of a form. Legacy forms aren't supported because they don't have the publish_settings field.

forms.responses

  • GETGet one response from the form./v1/forms/:formId/responses/:responseIdGet one response from the form.
  • GETList a form's responses./v1/forms/:formId/responses?filter=string&pageSize=0&pageToken=stringList a form's responses.

forms.watches

  • GETReturn a list of the watches owned by the invoking project/v1/forms/:formId/watchesReturn a list of the watches owned by the invoking project. The maximum number of watches is two: For each invoker, the limit is one for each event type per…
  • POSTCreate a new watch/v1/forms/:formId/watchesCreate a new watch. If a watch ID is provided, it must be unused. For each invoking project, the per form limit is one watch per Watch.EventType. A watch…
  • DELETEDelete a watch./v1/forms/:formId/watches/:watchIdDelete a watch.
  • POSTRenew an existing watch for seven days/v1/forms/:formId/watches/:watchId:renewRenew an existing watch for seven days. The state of the watch after renewal is ACTIVE, and the expire_time is seven days from the renewal. Renewing a watch…

API details

Base URL
https://forms.googleapis.com
Authentication
OAuth 2.0 (authorization code flow) with 6 scopes
An API key in the key query parameter
Operations
10 operations on 9 pathsPOST 5GET 4DELETE 1
Main resources
forms 4forms.watches 4forms.responses 2
Response formats
application/json
Description format
Google API Discovery, API version v1

How to test the Google Forms API in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the Google Forms API collection, without the publisher's secrets.
  3. Add your credentialsThis API uses OAuth 2.0 (authorization code flow) with 6 scopes. Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “Change the form with a batch of updates.” (POST /v1/forms/:formId:batchUpdate), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the Google Forms API?

Reads and writes Google Forms and responses. It is listed under Productivity & workspace and has 10 endpoints.

Who publishes the Google Forms API?

It is listed from Google's public API description (an OpenAPI document), not published by Google on Swastik Codes. Anyone who controls googleapis.com can claim the profile by adding a DNS TXT record.

What is the base URL of the Google Forms API?

Requests go to https://forms.googleapis.com. Endpoint paths are added to this base URL.

How do I authenticate with the Google Forms API?

It accepts 2 methods: OAuth 2.0 (authorization code flow) with 6 scopes; an API key in the key query parameter.

How many endpoints does the Google Forms API have?

10 operations on 9 paths (5 POST, 4 GET, 1 DELETE). The largest groups are forms, forms.watches, forms.responses.

Is forking the Google Forms API free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.