الانتقال إلى المحتوى الرئيسي
GET
curl
واجهة Phone Lookup History API من Didit تسرد عمليات البحث عن مخاطر الهاتف الخاصة بتطبيقك من الأحدث إلى الأقدم. تتضمن كل نتيجة رقم الهاتف الكامل والحالة والدولة ونوع الخط ودرجة المخاطر ووقت الإنشاء. تكون القيمة 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.

آخر تعديل في ٢٤ نوفمبر ٢٠٢٦