V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
yellowmarlboro
V2EX  ›  Python

有个只返回请求的 ip 地址信息的网站(很干净那种), 有没有人知道?

  •  
  •   yellowmarlboro · Dec 21, 2018 · 12952 views
    This topic created in 2686 days ago, the information mentioned may be changed or developed.

    之前用过一个返回请求的 ip 地址信息 的网站, 很干净, 只是一个 json(或者文本). 忘记了, 有没有人知道啊 我记得域名中 有 tool 这个单词.

    42 replies    2020-07-04 16:51:53 +08:00
    mrchi
        1
    mrchi  
       Dec 21, 2018   ❤️ 1
    curl 'https://api.ipify.org?format=json'

    其实你拿 myip + json 这个关键字在谷歌里一搜就有了,大兄弟
    westoy
        2
    westoy  
       Dec 21, 2018
    neuz
        3
    neuz  
       Dec 21, 2018
    curi ip.cn
    curl ipinfo.io
    curl ifconfig.me

    第一个好像不能返回了
    holajamc
        4
    holajamc  
       Dec 21, 2018
    curl ip.sb
    GDC
        5
    GDC  
       Dec 21, 2018
    三年前的帖子: /t/276129?p=1 里面提到很多,而且三年了还可以验证一波稳定性
    jinksw
        6
    jinksw  
       Dec 21, 2018
    http://icanhazip.com/
    这个满足你的需求
    ipeony
        7
    ipeony  
       Dec 21, 2018
    cdlixucd
        8
    cdlixucd  
       Dec 21, 2018
    自己写一个嘛,😄
    kongkongyzt
        9
    kongkongyzt  
       Dec 21, 2018
    我用的这个 `curl https://ip.cn` , 这东西还能反查 IP `curl https://ip.cn/114.114.114.114`
    yellowmarlboro
        10
    yellowmarlboro  
    OP
       Dec 21, 2018
    @mrchi 我假装认为你的头像并不是针对我.
    yingos
        11
    yingos  
       Dec 21, 2018 via iPhone   ❤️ 1
    yellowmarlboro
        12
    yellowmarlboro  
    OP
       Dec 21, 2018
    @westoy 多谢 之前就是 httpbin 这个
    @neuz @holajamc @GDC @jinksw @ipeony @kongkongyzt 谢谢各位
    @cdlixucd 实在太懒了
    quinoa42
        13
    quinoa42  
       Dec 21, 2018
    如果只是要纯文本的话
    dig +short myip.opendns.com @resolver1.opendns.com
    xxgirl2
        14
    xxgirl2  
       Dec 21, 2018
    https://api.ipdata.co/?api-key=test
    如果考虑到国际使用也可以用这个

    一楼二楼两位老哥推荐的我上海移动直连打不开,不知是哪一级的墙给挡住了
    lerry
        15
    lerry  
       Dec 21, 2018
    我自己博客上弄的,自用的,还算稳定

    https://lerry.me/ip

    还有 ua

    https://lerry.me/ua
    loading
        16
    loading  
       Dec 21, 2018 via Android
    离题回答一个,可能很多人不知道:

    https://www.v2ex.com/ip
    KgM4gLtF0shViDH3
        17
    KgM4gLtF0shViDH3  
       Dec 21, 2018 via iPhone
    @kongkongyzt #9 ip.cn 挂了好长时间了
    hejiuqing
        18
    hejiuqing  
       Dec 21, 2018 via iPhone
    XinLake
        19
    XinLake  
       Dec 21, 2018
    @lerry
    这个不错,GET 只返回文本,连 html 都省了。
    Zoozy
        20
    Zoozy  
       Dec 21, 2018
    curl ip.sb
    javashell
        21
    javashell  
       Dec 21, 2018 via Android
    ywgx
        22
    ywgx  
       Dec 21, 2018 via Android
    KasuganoSoras
        23
    KasuganoSoras  
       Dec 21, 2018
    自建的 API: https://api.tcotp.cn:4443/
    提供了多种接口,多种返回类型
    xjp
        24
    xjp  
       Dec 21, 2018 via iPhone
    @holajamc ??? 我头像?
    ysc3839
        25
    ysc3839  
       Dec 21, 2018 via Android
    httpbin.org 可以获取各类信息,包括 IP 地址。
    littlewing
        26
    littlewing  
       Dec 21, 2018
    虽然不是楼主所说的网站,但是我觉得 ipip.net 很好用,主要是数据很准确,好像也有 API
    lijixi
        27
    lijixi  
       Dec 21, 2018
    看看这个,速度飞快。whatismyip.akamai.com
    KasuganoSoras
        28
    KasuganoSoras  
       Dec 21, 2018
    还有个获取 IP 的: https://api.akkariin.com:24443/getip/
    as9t
        29
    as9t  
       Dec 21, 2018
    walkersz
        30
    walkersz  
       Dec 21, 2018
    walkersz
        31
    walkersz  
       Dec 21, 2018
    推荐下我自己的网站 https://api.nettool.app/ip
    jiqing
        32
    jiqing  
       Dec 21, 2018
    sigup
        33
    sigup  
       Dec 21, 2018
    zhouyut001
        34
    zhouyut001  
       Dec 21, 2018
    holajamc
        35
    holajamc  
       Dec 22, 2018
    @xjp 这不巧了吗这不是…
    Pythondr
        36
    Pythondr  
       Dec 22, 2018 via Android
    mrchi
        37
    mrchi  
       Dec 22, 2018
    @yellowmarlboro 没有没有,我这个头像是提醒自己的。
    opengps
        38
    opengps  
       Dec 22, 2018 via Android
    自己做个就行了
    Les1ie
        39
    Les1ie  
       Dec 22, 2018
    @kongkongyzt #9 经常用`curl ip.cn/example.com -L` `curl ip.cn/1.1.1.1 -L`,目前没有找到替代的 其他的都只能查 ip, 但是 ip.cn 的地址库不是很准确,还是需要 web 查一查, 另外命令行的工具强制 https 对 curl 不好啊...
    zhjits
        40
    zhjits  
       Dec 22, 2018
    安利一下自制的命令行查 IP 小工具 https://github.com/Jamesits/myip
    alamak76
        41
    alamak76  
       Dec 23, 2018
    leohxj
        42
    leohxj  
       Jul 4, 2020
    curl ip.sb
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3460 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 134ms · UTC 04:23 · PVG 12:23 · LAX 21:23 · JFK 00:23
    ♥ Do have faith in what you're doing.