强大的 REST API

将 PII 检测和匿名化集成到任何应用程序中。简单的端点,全面的文档,企业级准备。

快速入门

几分钟内开始使用 API

安装我们的 SDK 并进行第一次 API 调用

  • 为您的语言安装 SDK
  • 从仪表板获取您的 API 令牌
  • 进行您的第一次匿名请求
  • 集成到您的应用程序中
// Analyze text for PII
const response = await fetch('https://anonym.legal/api/presidio/analyze', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    text: 'Contact John Smith at john.smith@company.com',
    language: 'en'
  })
});

const results = await response.json();
// Returns detected entities with positions and confidence scores

可用端点

POST/api/presidio/analyze

Analyze text to detect PII entities. Returns entity types, positions, and confidence scores.

View documentation →
POST/api/presidio/anonymize

Anonymize detected PII using your chosen method. Returns anonymized text.

View documentation →
POST/api/presidio/batch

Process multiple documents in a single request. Enterprise plans support up to 100 documents.

View documentation →
GET/api/health

Check API status and service health. No authentication required.

Public endpoint

API 功能

JWT 认证

所有 API 调用的安全基于令牌的认证

速率限制

公平的速率限制和清晰的头信息。企业用户享有更高的限制

代码示例

多种编程语言的现成示例

今天开始构建

每月 300 次免费 API 调用。无需信用卡。