Daily metrics time series for your business listing
google-business-profile.x.businessprofileperformance-businessprofileperformance-locations-fetchmultidailymetricstimeserieslocations.fetchMultiDailyMetricsTimeSeries — Returns the values for each date from a given time range that are associated with the specific daily metrics. Note: Only daily data is available. Hourly metrics are not supported. Example request: `GET https://businessprofileperformance.googleapis.com/v1/locations/12345:fetchMultiDailyMetricsTimeSeries?dailyMetrics=WEBSITE_CLICKS&dailyMetrics=CALL_CLICK
- 价格
- free按供应商原价
- 成功率
- —暂无成功率数据暂无成功率数据
- 延迟 p50
- ——
- 最后验证
- —尚未验证
GEThttps://toolswitch.dev/v1/tools/google-business-profile.x.businessprofileperformance-businessprofileperformance-locations-fetchmultidailymetricstimeseries预览- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 路径参数 | ||||
location | 字符串 | 必填 | Required. The location for which the time series should be fetched. Format: locations/{location_id} where location_id is an unobfuscated listing id. | |
| 查询参数 | ||||
dailyMetrics | 字符串 | 可选 | Required. The metrics to retrieve time series for. | |
dailyRange.endDate.day | 整数 | 可选 | Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant. | |
dailyRange.endDate.year | 整数 | 可选 | Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. | |
dailyRange.endDate.month | 整数 | 可选 | Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. | |
dailyRange.startDate.day | 整数 | 可选 | Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant. | |
dailyRange.startDate.year | 整数 | 可选 | Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. | |
dailyRange.startDate.month | 整数 | 可选 | Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. | |
- 路径参数
location字符串必填Required. The location for which the time series should be fetched. Format: locations/{location_id} where location_id is an unobfuscated listing id.
- 查询参数
dailyMetrics字符串可选Required. The metrics to retrieve time series for.
dailyRange.endDate.day整数可选Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
dailyRange.endDate.year整数可选Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
dailyRange.endDate.month整数可选Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
dailyRange.startDate.day整数可选Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
dailyRange.startDate.year整数可选Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
dailyRange.startDate.month整数可选Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
curl -X GET 'https://toolswitch.dev/v1/tools/google-business-profile.x.businessprofileperformance-businessprofileperformance-locations-fetchmultidailymetricstimeseries' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/google-business-profile.x.businessprofileperformance-businessprofileperformance-locations-fetchmultidailymetricstimeseries",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/google-business-profile.x.businessprofileperformance-businessprofileperformance-locations-fetchmultidailymetricstimeseries", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());网关接口为预览版,地址与鉴权方式可能调整。 示例参数仅为样例数据。 调用按 free 计费,已含服务费。