0

我尝试了我在这里找到的这个 -

http://puppygifs.tumblr.com/api/read/json

但是如果我测试它的有效性,它会给我一个错误。

我在这里验证了它:

http://jsonlint.com/

谁能指出我可以用来测试我的应用程序的功能 JSON 链接?

4

2 回答 2

1

为什么不试试免费的stackexchange api呢?

burhan@lenux:~$ http "http://api.stackexchange.com/2.1/users/1755023?site=stackoverflow"
HTTP/1.1 200 OK
Access-Control-Allow-Credentials: false
Access-Control-Allow-Methods: GET, POST
Access-Control-Allow-Origin: *
Cache-Control: private
Content-Encoding: gzip
Content-Length: 433
Content-Type: application/json; charset=utf-8
Date: Thu, 25 Jul 2013 16:54:31 GMT

{
    "has_more": false, 
    "items": [
        {
            "accept_rate": 91, 
            "account_id": 1950909, 
            "age": 27, 
            "badge_counts": {
                "bronze": 9, 
                "gold": 0, 
                "silver": 0
            }, 
            "creation_date": 1350528803, 
            "display_name": "Rj.", 
            "is_employee": false, 
            "last_access_date": 1374770664, 
            "last_modified_date": 1372353815, 
            "link": "http://stackoverflow.com/users/1755023/rj", 
            "location": "West Hollywood, CA", 
            "profile_image": "https://www.gravatar.com/avatar/f1f3ab1c31c6ee987ba28a78318586fd?d=identicon&r=PG", 
            "reputation": 423, 
            "reputation_change_day": 5, 
            "reputation_change_month": 95, 
            "reputation_change_quarter": 95, 
            "reputation_change_week": 5, 
            "reputation_change_year": 315, 
            "user_id": 1755023, 
            "user_type": "registered", 
            "website_url": ""
        }
    ], 
    "quota_max": 300, 
    "quota_remaining": 294
}
于 2013-07-25T16:55:47.530 回答
1

这是一个返回 JSON 的“我的 IP”类型服务。

http://whoami.bradallen.net/

于 2013-07-25T16:57:22.240 回答