Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Für jede Anfrage an die Maps Datasets API müssen Sie Folgendes angeben:
Die Nummer oder ID Ihres Google Cloud-Projekts im X-Goog-User-Project-Header der Anfrage. Mit diesem Wert wird das Projekt für die Abrechnung und die Berechnung des Nutzungskontingents festgelegt.
Ein OAuth-Token im Header Authorization der Anfrage. Weitere Informationen zur Verwendung von OAuth mit der Maps Datasets API finden Sie unter OAuth verwenden.
Eine Google Cloud-Projektnummer oder ‑ID in der Anfrage-URL. Dieser Wert gibt das Projekt an, das das Dataset enthält. Dieses Projekt ist in der Regel dasselbe wie das im X-Goog-User-Project-Header angegebene Projekt, muss aber nicht dasselbe sein.
Die Dataset-ID in der Anfrage-URL. Wenn Sie eine Aktion für ein bestimmtes Dataset ausführen, übergeben Sie die ID des Datasets als Teil der Anfrage-URL.
Sie können den gcloud-Befehl direkt in den Authorization-Header in einem cURL-Befehl einfügen, um bei jeder Anfrage ein neues Token zu generieren, wie im Beispiel oben gezeigt.
Alternativ können Sie eine Umgebungsvariable mit dem Token festlegen und diese dann als Teil der Anfrage übergeben:
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-07-26 (UTC)."],[[["All Maps Datasets API requests require a Google Cloud project number or ID for billing and usage quota, specified in the `X-Goog-User-Project` header or using a service account."],["An OAuth token is necessary for authentication and should be included in the `Authorization` header of each request."],["The request URL must contain the Google Cloud project number or ID and the dataset ID to specify the location of the dataset."],["Additional parameters may be required for certain requests, as detailed in the specific request documentation."],["You can obtain your Google Cloud project number or ID from the project's Overview page in the Cloud Console and generate an OAuth token using the `gcloud` command."]]],["To interact with the Maps Datasets API, requests must include: the Google Cloud project number or ID in the `X-Goog-User-Project` header for billing and quota (unless using a service account); an OAuth token in the `Authorization` header; the project number or ID in the URL; and the dataset ID in the URL. The project number and ID can be found on the project's overview page. An OAuth token can be generated using the `gcloud auth application-default print-access-token` command.\n"]]