是否有任何可公开访问的JSON数据源来测试真实世界的数据? [英] Is there any publically accessible JSON data source to test with real world data?

查看:455
本文介绍了是否有任何可公开访问的JSON数据源来测试真实世界的数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个JavaScript动态加载的树视图用户控件。我想用真实世界的数据进行测试。

I'm working on a JavaScript dynamically loaded tree view user control. I'd like to test it with real world data.

是否有人知道任何公共服务,其API提供对JSON格式的分层数据的访问?

Does anybody know any public service with an API that provides access to hierarchical data in JSON format?

推荐答案

Twitter有一个返回JSON的公共API ,例如 -

A GET 请求:

https://api.twitter.com/1/statuses/user_timeline.json?include_entities=true& include_rts = true& screen_name = mralexgray& count = 1

https://api.twitter.com/1/statuses/user_timeline.json?include_entities=true&include_rts=true&screen_name=mralexgray&count=1,

编辑:由于删除twitter使用 OAUTH 要求限制其API ......

Removed due to twitter restricting their API with OAUTH requirements...

{"errors": [{"message": "The Twitter REST API v1 is no longer active. Please migrate to API v1.1. https://dev.twitter.com/docs/api/1.1/overview.", "code": 68}]}

用一个简单的例子替换它 Github API - 返回一个树,在本例中是我的存储库...

Replacing it with a simple example of the Github API - that returns a tree, of in this case, my repositories...


https ://api.github.com/users/mralexgray/repos

我不会包含输出,因为它很长..(一次返回30个回购)......但是这里证明它是树状的。

I won't include the output, as it's long.. (returns 30 repos at a time) ... But here is proof of it's tree-ed-ness.

这篇关于是否有任何可公开访问的JSON数据源来测试真实世界的数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆