找回密码
 立即注册
搜索
查看: 23|回复: 0

[神器在手] 分享一些可能有用的API(IP查询、PTR、UUID、密码生成等)

[复制链接]

42

主题

201

金钱

1

评分

官方认证

积分
184
发表于 2025-3-3 14:55:44 | 显示全部楼层 |阅读模式



API 无需密钥,支持跨域请求。
感谢:IPLark分享!
1.本机IP
返回本地IPv4
https://iplark.com/ipapi/public/ip
返回本地IPv6
https://6.iplark.com/ip
2.本机IP信息
本机IP信息默认使用 Maxmind 公开数据库(在官方基础上增加了一些数据源)。同时,提供额外5个可选数据源,用户可根据需求自由切换。
db代码 对应数据源
默认 Maxmind(mod)
digital Digital Element
ipdata ipdata
ipstack IPstack
ipapi ip-api
moon 混合来源
默认
https://iplark.com/ipapi/public/ipinfo

digital
https://iplark.com/ipapi/public/ipinfo?db=digital

ipdata
https://iplark.com/ipapi/public/ipinfo?db=ipdata

ipstack
多语言支持(en/de/es/fr/ja/pt-br/ru/zh)
https://iplark.com/ipapi/public/ipinfo?db=ipstack
https://iplark.com/ipapi/public/ipinfo?db=ipstack&lang=zh

ipapi
多语言支持(en/de/es/fr/ja/pt-BR/ru/zh-CN)
https://iplark.com/ipapi/public/ipinfo?db=ipapi
https://iplark.com/ipapi/public/ipinfo?db=ipapi&lang=zh-CN

moon
https://iplark.com/ipapi/public/ipinfo?db=moon

3.PTR
查询本机IP PTR
https://iplark.com/ipapi/public/ptr
查询其他IP
示例
curl https://iplark.com/ipapi/public/ptr?ip=8.8.8.8
{
"ip": "8.8.8.8",
"rdns": "dns.google",
"timestamp": 1740935202555,
"request_id": "91a27c77dc98fd22",
"source": "iplark.com"
}

curl https://iplark.com/ipapi/public/ptr?ip=2606:4700:4700::1111
{
"ip": "2606:4700:4700::1111",
"rdns": "one.one.one.one",
"timestamp": 1740935298589,
"request_id": "91a27ed01a3dfdc3",
"source": "iplark.com"
}

4.UUID
curl https://iplark.com/ipapi/public/uuid

{
"uuid": "45347a94-67e1-4471-99b0-aa6423afb231",
"source": "iplark.com"
}

5.随机密码生成
默认情况下,生成的密码长度为 12 位。
curl https://iplark.com/ipapi/public/password
{
"password": "vH{F\u003Cf4zY}Ja",
"source": "iplark.com"
}

其他用法示例
生成一个9999位长度的密码
curl https://iplark.com/ipapi/public/password?length=9999
生成一个12位长度且不带特殊符号的密码
curl https://iplark.com/ipapi/public/password?special=false
生成一个20位长度,包含大写字母和特殊字符,但不带数字的密码
curl https://iplark.com/ipapi/public/ ... 0&numbers=false
生成一个16位长度,纯数字密码
curl https://iplark.com/ipapi/public/ ... e&special=false
6.时间戳(Timestamp)
获取当前时间戳
curl https://iplark.com/ipapi/public/timestamp
时间戳转时间
curl https://iplark.com/ipapi/public/timestamp?query=1740920189548
curl https://iplark.com/ipapi/public/timestamp?query=1740920189


您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|福利吧论坛&你的福利吧 |网站地图

GMT+8, 2025-4-4 11:00 , Processed in 0.118392 second(s), 25 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表