"description":"Selector specifying which fields to include in a partial response.",
"location":"query"
},
"key":{
"type":"string",
"description":"API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"location":"query"
},
"oauth_token":{
"type":"string",
"description":"OAuth 2.0 token for the current user.",
"location":"query"
},
"prettyPrint":{
"type":"boolean",
"description":"Returns response with indentations and line breaks.",
"default":"true",
"location":"query"
},
"quotaUser":{
"type":"string",
"description":"Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
"location":"query"
},
"userIp":{
"type":"string",
"description":"IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
"location":"query"
}
},
"auth":{
"oauth2":{
"scopes":{
"https://www.googleapis.com/auth/urlshortener":{
"description":"Manage your goo.gl short URLs"
}
}
}
},
"schemas":{
"AnalyticsSnapshot":{
"id":"AnalyticsSnapshot",
"type":"object",
"properties":{
"browsers":{
"type":"array",
"description":"Top browsers, e.g. \"Chrome\"; sorted by (descending) click counts. Only present if this data is available.",
"items":{
"$ref":"StringCount"
}
},
"countries":{
"type":"array",
"description":"Top countries (expressed as country codes), e.g. \"US\" or \"DE\"; sorted by (descending) click counts. Only present if this data is available.",
"items":{
"$ref":"StringCount"
}
},
"longUrlClicks":{
"type":"string",
"description":"Number of clicks on all goo.gl short URLs pointing to this long URL.",
"format":"int64"
},
"platforms":{
"type":"array",
"description":"Top platforms or OSes, e.g. \"Windows\"; sorted by (descending) click counts. Only present if this data is available.",
"items":{
"$ref":"StringCount"
}
},
"referrers":{
"type":"array",
"description":"Top referring hosts, e.g. \"www.google.com\"; sorted by (descending) click counts. Only present if this data is available.",
"items":{
"$ref":"StringCount"
}
},
"shortUrlClicks":{
"type":"string",
"description":"Number of clicks on this short URL.",
"format":"int64"
}
}
},
"AnalyticsSummary":{
"id":"AnalyticsSummary",
"type":"object",
"properties":{
"allTime":{
"$ref":"AnalyticsSnapshot",
"description":"Click analytics over all time."
},
"day":{
"$ref":"AnalyticsSnapshot",
"description":"Click analytics over the last day."
},
"month":{
"$ref":"AnalyticsSnapshot",
"description":"Click analytics over the last month."
},
"twoHours":{
"$ref":"AnalyticsSnapshot",
"description":"Click analytics over the last two hours."
},
"week":{
"$ref":"AnalyticsSnapshot",
"description":"Click analytics over the last week."
}
}
},
"StringCount":{
"id":"StringCount",
"type":"object",
"properties":{
"count":{
"type":"string",
"description":"Number of clicks for this top entry, e.g. for this particular country or browser.",
"format":"int64"
},
"id":{
"type":"string",
"description":"Label assigned to this top entry, e.g. \"US\" or \"Chrome\"."
}
}
},
"Url":{
"id":"Url",
"type":"object",
"properties":{
"analytics":{
"$ref":"AnalyticsSummary",
"description":"A summary of the click analytics for the short and long URL. Might not be present if not requested or currently unavailable."
},
"created":{
"type":"string",
"description":"Time the short URL was created; ISO 8601 representation using the yyyy-MM-dd'T'HH:mm:ss.SSSZZ format, e.g. \"2010-10-14T19:01:24.944+00:00\"."
},
"id":{
"type":"string",
"description":"Short URL, e.g. \"http://goo.gl/l6MS\"."
"description":"Long URL, e.g. \"http://www.google.com/\". Might not be present if the status is \"REMOVED\"."
},
"status":{
"type":"string",
"description":"Status of the target URL. Possible values: \"OK\", \"MALWARE\", \"PHISHING\", or \"REMOVED\". A URL might be marked \"REMOVED\" if it was flagged as spam, for example."
}
}
},
"UrlHistory":{
"id":"UrlHistory",
"type":"object",
"properties":{
"items":{
"type":"array",
"description":"A list of URL resources.",
"items":{
"$ref":"Url"
}
},
"itemsPerPage":{
"type":"integer",
"description":"Number of items returned with each full \"page\" of results. Note that the last page could have fewer items than the \"itemsPerPage\" value.",