curl -X GET 'https://verification.didit.me/v3/phone/stats/?product=verification&group_by=network&from=2026-10-22&to=2026-11-20' \
-H 'x-api-key: YOUR_API_KEY'import requests
url = "https://verification.didit.me/v3/phone/stats/"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://verification.didit.me/v3/phone/stats/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://verification.didit.me/v3/phone/stats/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://verification.didit.me/v3/phone/stats/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://verification.didit.me/v3/phone/stats/")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://verification.didit.me/v3/phone/stats/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"rows": [
{
"key": "Mobile network A",
"conversion_rate": 0.94,
"silent_success_rate": 0.3572,
"code_free_share": 0.38,
"delivery_seconds": {
"p50": 2.1,
"p90": 6.4,
"p99": 12.8
},
"read_rate": 0,
"reply_rate": 0,
"spend": "412.20"
},
{
"key": "Mobile network B",
"conversion_rate": 0.88,
"silent_success_rate": 0.2728,
"code_free_share": 0.31,
"delivery_seconds": {
"p50": 3.4,
"p90": 8.1,
"p99": 15.2
},
"read_rate": 0,
"reply_rate": 0,
"spend": "298.40"
}
]
}电话验证统计 API:转化率、投递时长与支出
通过 Didit 查询电话验证的转化率、静默成功、投递时长百分位、阅读率和回复率及支出,可按国家/地区、渠道或日期分组,统计指定日期范围内的数据。
curl -X GET 'https://verification.didit.me/v3/phone/stats/?product=verification&group_by=network&from=2026-10-22&to=2026-11-20' \
-H 'x-api-key: YOUR_API_KEY'import requests
url = "https://verification.didit.me/v3/phone/stats/"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://verification.didit.me/v3/phone/stats/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://verification.didit.me/v3/phone/stats/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://verification.didit.me/v3/phone/stats/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://verification.didit.me/v3/phone/stats/")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://verification.didit.me/v3/phone/stats/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"rows": [
{
"key": "Mobile network A",
"conversion_rate": 0.94,
"silent_success_rate": 0.3572,
"code_free_share": 0.38,
"delivery_seconds": {
"p50": 2.1,
"p90": 6.4,
"p99": 12.8
},
"read_rate": 0,
"reply_rate": 0,
"spend": "412.20"
},
{
"key": "Mobile network B",
"conversion_rate": 0.88,
"silent_success_rate": 0.2728,
"code_free_share": 0.31,
"delivery_seconds": {
"p50": 3.4,
"p90": 8.1,
"p99": 15.2
},
"read_rate": 0,
"reply_rate": 0,
"spend": "298.40"
}
]
}| 产品 | 允许的 group_by 取值 | 与花费一同提供的指标 |
|---|---|---|
verification | country、channel、network、line_type、day | 转化率、静默成功率、免验证码占比以及投递时间百分位数 |
messages | country、channel、day | 转化率、阅读率和回复率,以及投递时间百分位数 |
lookups | country、network、line_type、day | 仅提供花费。所有比率和投递时间百分位数均为 0。 |
0,而不是 null。无法作为任何时间窗口结束时间的 to 日期(例如 9999-12-31)会被拒绝,并返回 400 错误,错误信息中会指出 to。要查看您可以花费的金额,请阅读 Phone Balance API。授权
Your application's API key, from Developers -> API keys in the Business Console. The primary key has full access. A named key can be scoped: none, read or write per resource, limited to some workflows or to approved sessions, to a list of IP addresses, and to an expiry date. 401 means the key is wrong, revoked or expired; 403 means no key was sent, the key has no access to this resource or action, or the request came from an address outside its IP list; 404 on a session route means the session is outside the key's workflows or statuses. A key without media access receives image, video and PDF URLs as null, and a key without sessions write receives session links and tokens as null. See https://docs.didit.me/console/api-keys.