推荐学习书目
› 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 · 13586 views
    This topic created in 2876 days ago, the information mentioned may be changed or developed.

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

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

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

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

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

    https://lerry.me/ip

    还有 ua

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

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