Which method you choose to access public data depends on how you want to work with the data.
You can access public data with the Google Developers Console,
gsutil
, or with a general
(non-console) storage link. The Developers Console and
gsutil
require you to
authenticate with Google. You can authenticate with any Google account; the account does not
have to be associated with the project that contains the public data, nor does it need to be
signed up for the Google Cloud Storage service. By contrast, accessing public data with a general
storage link does not require authentication. This method is suited for general purpose links
to publicly shared data, for example, for use in a web page.
Accessing public data (authentication required)
Developers Console
To use the Google Developers Console to access public data:
- Get the name of the public bucket.
-
Access the bucket with the following URI:
https://console.developers.google.com/storage/<bucket-name>/
You will be asked to sign in if you aren't already.
For example, for the Google public bucket "uspto-pair", you can access the bucket as:
https://console.developers.google.com/storage/uspto-pair/
gsutil
To use the gsutil tool to access public data:
- Install gsutil and authenticate (see Installing gsutil ).
-
List the data (objects) contained in the public bucket
gs://uspto-pair/applications/
In a terminal console run the following command:
gsutil ls gs://uspto-pair/applications/0800401*
You should get a list of files with the prefix:
0800401
.
Accessing public data (no authentication required)
If an object is shared publicly, then you can access that object as:
http://storage.googleapis.com/<bucket-name>/path/to/object
For example, from the
uspto-pair
bucket, you can link to the publicly shared
object,
applications/05900002.zip
, with the link:
http://storage.googleapis.com/uspto-pair/applications/05900002.zip
This link does not involve the Google Developers Console nor authentication, and is suitable, for example, as a link in a web page.
For information about how to publicly share an object with the Google Developers Console, see
Sharing Your Data Publicly
. For information
about how to publicly share an object using
gsutil
,
see the
acl
command.