Files: export

Exports a Google Doc to the requested MIME type and returns the exported content. Try it now.

Request

HTTP request

GET https://www.googleapis.com/drive/v2/files/fileId/export

Parameters

Parameter name Value Description
Path parameters
fileId string The ID of the file.
Required query parameters
mimeType string The MIME type of the format requested for this export.

Request body

Do not supply a request body with this method.

Response

Responds with the exported file contents in the response body.

Try it!

Use the APIs Explorer below to call this method on live data and see the response.

Send feedback about...

Drive REST API v2
Drive REST API v2