访问网络版的解决方案,挖掘和监测所有域名相关事件。
获得网络版企业级解决方案,以搜索和监控域名注册和所有权细节,了解品牌术语、模糊匹配、感兴趣的注册者等。
Detect and block access to and from dangerous domain names before malicious actors can weaponize them. Contact us today for more information.
解锁有关互联网资产及其所有权、基础资源和其他相关的全面情报信息。
域名、IP和DNS情报套餐可通过API查询,以可预测的价格进行每年订阅。
可为丰富产品内容和威胁狩猎等需求完整访问WHOIS、IP、DNS和子域名数据库。
多级 API 用户管理现已推出 - 管理机构中团队成员的个人 API 密钥。
了解更多Use server-to-server OAuth to authenticate with WhoisXML APIs when making API requests. This is also known as two-legged OAuth as it uses a two step process flow that does not require user interaction for authentication or authorization. Here's the flow.
You can also check this script on GitHub for an example of how to use the WHOIS API with Server-Side SSO.
Use the accessToken grant type to generate an access token. The features of this grant type are:
Please note that the generated accessToken is used instead of the apiKey parameter in API requests.
curl --location 'https://main.whoisxmlapi.com/oauth/token' \
--header 'Authorization: Bearer %base64_encoded_API_key%' \
--header 'Content-Type: application/json' \
--data '{
"grantType": "access_token",
"expiresIn": 7200
}'
Authorization |
Required. Base64 encoded API key. Authentication scheme: Bearer. Get your personal API key on the My products page. |
grantType |
Required. The grant type to generate an access token. Acceptable values: access_token. |
expiresIn |
Optional. The lifetime of the access token in seconds. Acceptable values: 1800, 3600, 7200, 10800. Default: 3600. |
outputFormat |
Optional. Response output format. Acceptable values: JSON | XML Default: JSON |
{
"accessToken": "G2OIE2AKRCVDYFUJCV5PXXXXXXXXXXXX",
"expiresIn": 3600
}
Use the accessToken value in the response to authenticate your API requests. Substitute the resulting value into the apiKey field as you would with a normal API key without OAuth.
{
"code": 401,
"messages": "Access restricted. Check the credits balance or enter the correct API key."
}
{
"code": 422,
"messages": {
"grantType": [
"The selected grant type is invalid."
]
}
}
curl --location 'https://www.whoisxmlapi.com/whoisserver/WhoisService?domainName=google.com' \
--header 'Authorization: Bearer %accessToken%'
curl --location 'https://www.whoisxmlapi.com/whoisserver/WhoisService' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer %accessToken%' \
--data '{
"domainName": "google.com"
}'