Skip to main content

Overview

Calling method

The interface path in the interface document is consistent with the console. When calling the API, you need to add the path prefix /mp-api/auth/ (that is, the root path + API path) before all APIs, otherwise the verification will fail.

The interface root path is:

https://${domain name}/mp-api/auth

Return result description

API return unified format

{
"code": business status code, refer to the list for details (Number),
"msg": information (String),
"data": data (Object or Array)
}

**The results shown in the interface document describe the return structure in data. **

Highcharts chart general return results

{
"overview": {},
"series": [
{
"data": [
{
"x": 1545207960000,
"y": 3,
"tooltip": "{\"title\":\"12-19 16:26--12-19 19:26\",\"data\":[{\"title\":\"open times\",\"value\":3.0,\"unit\":\"times\"}]}"
},
...
],
"name": "demo1",
"params": "{\"mpId\":46}",
"type": "area",
"yAxis": 0
}
],
"yAxis": [
{
"tickUnit": "times"
}
]
}

Indicator list

Baseon and returned API names are subject to the table regulations.

Indicator namebaseon(API) nameunit
User experience scoreuxScore
onReadyonReadyTimems
First response timefirstResponseTimems
UVuvtimes
PVpvtimes
Slow pageslowCounttimes
Slow page ratioslowPageRatio%
Custom indicator timecustomTimems
Total page exit ratequitRate%
Open timesovtimes
Number of requestsnetCounttimes
Number of slow requestsnetSlowCounttimes
Number of error requestsnetErrorCounttimes
Request durationresponseTimems
Request error ratenetErrorRate%
Total duration ratio (network request)durationRatio%
Slow ratio Ratio (network request)slowNetRatio%
Time consumed by the serverapplicationServerTimems
Data volume transmittedtransmissionkb
UploadbytesSentkb
DownloadbytesReceivedkb
Callback timecallbackTimems
Network time consumednetworkTimems
Business availabilitynetBizAvailable%
js error ratejsErrorRate%
JS error type PV (error PV)errorPvtimes
JS error type ratioerrorRatio%
Number of API callsapiCallCounttimes
Number of API successesapiSuccessCounttimes
Number of API failuresapiFailCounttimes
Number of API cancellationsapiCancelCounttimes
API call success rateapiSuccessRate%
Number of users who failed to callapiFailUserCounttimes
API Number of users affected by the callapiInfluenceUserCounttimes
Number of operationsoperaCounttimes
Number of failed operationsoperaFailCounttimes
Number of successful operationsoperaSuccessCounttimes
Number of slow operationsoperaSlowCounttimes
Number of operation requestsoperRequestCounttimes
Operation availabilityoperaAvailableRate%
Operation timeoperaTimems
Operation request timeoperRequestTimems
Average time consumed by the operation serveroperaServerTimems
Loading timefirstLoadTimems
Stuck PVstuckCounttimes
Stuck ratestuckRate%
Online timeonlineTimems
Page abnormality rateexRate%
Abnormal exit rateexQuitRate%

Request data description

How to get the mini program application id

Call interface:

https://${domain}/mp-api/auth/app/select-list

Users can view the corresponding mini program id according to the name.

Country

Countryid
China48
United States225
Russia185
France74
United Kingdom77
Japan111
India103

Region (China)

Provinceid
Beijing4811
Tianjin4812
Hebei4813
Shanxi4814
Inner Mongolia4815
Liaoning4821
Jilin4822
Heilongjiang4823
Shanghai4831
Jiangsu4832
Zhejiang4833
Anhui4834
Fujian4835
Jiangxi4836
Shandong4837
Henan4 841
Hubei4842
Hunan4843
Guangdong4844
Guangxi4845
Hainan4846
Chongqing4850
Sichuan4851
Guizhou4852
Yunnan4853
Tibet4854
Shaanxi4861
Gansu4862
Qinghai4863
Ningxia4864
Xinjiang4865
Taiwan4871
Hong Kong4881
Macao4882