The Google Fusion Tables API v1 has been deprecated as of May 3rd, 2016. The API will continue to work until August 1st, 2017, and will shut down on that date. A migration guide is available outlining the steps to take to migrate to v2.

Table: importTable

Requires authorization

Import a new table. Try it now.

This method supports an /upload URI and accepts uploaded media with the following characteristics:

  • Maximum file size: 100MB
  • Accepted Media MIME types: application/octet-stream

Request

HTTP request

This method provides media upload functionality through two separate URIs. For more details, see the document on media upload.

  • Upload URI, for media upload requests:
    POST https://www.googleapis.com/upload/fusiontables/v1/tables/import
  • Metadata URI, for metadata-only requests:
    POST https://www.googleapis.com/fusiontables/v1/tables/import

Parameters

Parameter name Value Description
Required query parameters
uploadType string The type of upload request to the /upload URI. Acceptable values are:
  • media - Simple upload. Upload the media only, without any metadata.
  • multipart - Multipart upload. Upload both the media and its metadata, in a single request.
  • resumable - Resumable upload. Upload the file in a resumable fashion, using a series of at least two requests where the first request includes the metadata.
name string The name to be assigned to the new table.
Optional query parameters
delimiter string The delimiter used to separate cell values. This can only consist of a single character. Default is ','.
encoding string The encoding of the content. Default is UTF-8. Use 'auto-detect' if you are unsure of the encoding.

Authorization

This request requires authorization with the following scope (read more about authentication and authorization).

Scope
https://www.googleapis.com/auth/fusiontables

Request body

In the request body, supply a Table resource as the metadata. For more information, see the document on media upload.

Response

If successful, this method returns a Table resource in the response body.

Try it!

Note: APIs Explorer currently supports metadata requests only.

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