跳转到主要内容
GET
curl
Didit 的电话号码查询历史 API 会按从新到旧的顺序列出您应用的电话风险查询记录。每条结果包含完整的电话号码、状态、国家/地区、线路类型、风险评分和创建时间。当风险评分不可用时,其值为 null。 您可以按精确的 phone_number 筛选,也可以按创建时间范围筛选。该时间范围包含 created_after 所指定的时间点,但不包含 created_before 所指定的时间点。要读取下一页,请将 next 的值作为 offset 发送,直到 next 为 null。next 和 previous 是分页偏移量,例如 "20",而不是 URL。服务端 SDK 的自动分页功能无法使用这些偏移量,因此在该场景中,您同样需要自行传入 offset。

授权

x-api-key
string
header
必填

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.

查询参数

phone_number
string

One number. An E.164 number.

示例:

"+12025550136"

created_after
string<date-time>

Include lookups created at or after this time. The earliest lookup time, ISO 8601.

created_before
string<date-time>

Include lookups created before this time.

limit
integer
默认值:20

20 by default, 100 at most. Rows per page.

必填范围: 1 <= x <= 100
示例:

20

offset
integer

Where the page starts: 0 by default, or the next or previous value of another page. Rows to skip.

必填范围: x >= 0

响应

A page of matching phone lookups.

count
integer

Rows that match the filters.

示例:

1

next
string | null

Offset of the next page of lookups, as a string such as "20", or null on the last page. It is not a URL: send it as offset to read that page.

Pattern: ^[0-9]+$
示例:

"20"

previous
string | null

Offset of the previous page of lookups, as a string such as "0", or null on the first page. It is not a URL: send it as offset to read that page.

Pattern: ^[0-9]+$
示例:

"0"

results
object[]

The rows, newest first.

最后修改于 2026年11月24日