Stay organized with collections
Save and categorize content based on your preferences.
Looks up a Container by destination ID or tag ID.
Try it now.
Request
HTTP request
GET https://www.googleapis.com/tagmanager/v2/accounts/containers:lookup
Parameters
Parameter name
Value
Description
Optional query parameters
destinationId
string
Destination ID linked to a GTM Container, e.g. AW-123456789.
Example: accounts/containers:lookup?destination_id={destination_id}.
Only one of destination_id or tag_id should be set.
tagId
string
Tag ID for a GTM Container, e.g. GTM-123456789.
Example: accounts/containers:lookup?tag_id={tag_id}.
Only one of destination_id or tag_id should be set.
Authorization
This request requires authorization with at least one of the following scopes:
[[["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 2024-10-09 UTC."],[[["Looks up a Google Tag Manager (GTM) Container using either its destination ID or tag ID."],["Requires authorization with specific scopes like `tagmanager.edit.containers` or `tagmanager.readonly`."],["The request is made using an HTTP GET method to the provided URL with optional query parameters for destination or tag ID."],["A successful response returns a Containers resource containing information about the found container."]]],[]]