开发者参考
域名评分 API 文档
域名评分 API 文档: 计算 an overall domain 质量 score based 打开 多个 factors.
域名评分
计算 an overall domain 质量 score based 打开 多个 factors.
GET
/v1/score
查询参数
| 参数 | 类型 | 说明 |
|---|---|---|
| name 必需 | string | Domain 到 计算 score 对于 |
响应示例
{
"success": true,
"data": {
"name": "startup",
"overall_score": 82,
"grade": "B+",
"scores": {
"length": 86,
"pronounceability": 78,
"memorability": 80,
"spelling": 84,
"uniqueness": 75,
"brandability": 88
},
"analysis": {
"length": 7,
"syllable_count": 2,
"has_vowels": true,
"has_numbers": false,
"has_hyphens": false
}
},
"meta": {
"requestId": "req_demo"
}
}
响应字段
| 字段 | 类型 |
|---|---|
name |
string |
overall_score |
integer |
grade |
string |
scores |
object |
scores.length |
integer |
scores.pronounceability |
integer |
scores.memorability |
integer |
scores.spelling |
integer |
scores.uniqueness |
integer |
feedback[] |
string[] |
POST
/v1/score/compare
正文参数
| 参数 | 类型 | 必需 |
|---|---|---|
| names | string[] | 必需 |
响应字段
| 字段 | 类型 |
|---|---|
names[] |
object[] |
names[] |
object |
best |
string | null |
ranking[] |
object[] |
ranking[] |
object |
ranking[].name |
string |
ranking[].score |
number |
ranking[].rank |
integer |
meta |
object |
meta.total_compared |
integer |
meta.valid_scores |
integer |
请求示例
curl -X POST "https://domscan.net/v1/score/compare" \
-H "Content-Type: application/json" \
-H "X-API-Key: $DOMSCAN_API_KEY" \
-d '{
"names": [
"brandify",
"brandpilot",
"brandmint"
]
}'
响应示例
{
"names": [
{
"name": "brandify",
"score": 88,
"grade": "A",
"verdict": "Strong"
},
{
"name": "brandpilot",
"score": 82,
"grade": "B+",
"verdict": "Promising"
}
],
"best": "brandify",
"ranking": [
{
"name": "brandify",
"score": 88,
"rank": 1
},
{
"name": "brandpilot",
"score": 82,
"rank": 2
}
],
"meta": {
"total_compared": 2,
"valid_scores": 2
}
}
GET
/v1/score/info
响应字段
| 字段 | 类型 |
|---|---|
scoring_dimensions |
object |
grade_scale |
object |
endpoints |
object |
请求示例
curl -H "X-API-Key: $DOMSCAN_API_KEY" "https://domscan.net/v1/score/info"
响应示例
{
"scoring_dimensions": {
"length": {
"weight": 0.12,
"description": "Rewards concise names"
},
"pronounceability": {
"weight": 0.18,
"description": "Rewards names that are easy to say"
}
},
"grade_scale": {
"A+": "Exceptional",
"A": "Excellent",
"B": "Good",
"C": "Average",
"D": "Weak",
"F": "Poor"
},
"endpoints": {
"GET /v1/score?name=<name>": "Score a single name",
"POST /v1/score/compare": "Compare multiple names",
"GET /v1/score/info": "Get scoring methodology"
}
}