Setup Permissions and Authentication
Stay organized with collections
Save and categorize content based on your preferences.
Ensure your user account has Editor/Owner permissions on the Project
You can check your active account by issuing the following command:
gcloud auth list
If your user account isn't the active account, you can change the active account with the following command:
gcloud config set account `ACCOUNT`
If there is no active accounts, you will need to issue this first:
gcloud auth login
Get the OAuth 2.0 Access Token
The final step before being able to issue requests to the Maps
Datasets service is to get the OAuth 2.0 token associated with your user account.
export TOKEN=$(gcloud auth print-access-token)
Now you can start issuing requests to the Maps Datasets API
curl -H "X-Goog-User-Project: PROJECT_NUMBER" -H "Authorization: Bearer $TOKEN" https://mapsplatformdatasets.googleapis.com/v1alpha/projects/PROJECT_NUMBER/datasets/
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-02 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-02 UTC."],[[["Ensure your Google Cloud user account has Editor or Owner permissions for the project to access and manage Maps Datasets."],["Verify your active account using `gcloud auth list` and switch accounts if necessary with `gcloud config set account ACCOUNT`."],["Obtain an OAuth 2.0 access token using `gcloud auth print-access-token` to authenticate requests to the Maps Datasets API."],["Use the access token and project details in API requests to interact with the Maps Datasets service, such as listing datasets via `curl`."]]],[]]