Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gingerhot/jsonip.cn_usecase

jsonip.cn API Usecase
https://github.com/gingerhot/jsonip.cn_usecase

Last synced: 38 minutes ago
JSON representation

jsonip.cn API Usecase

Awesome Lists containing this project

README

        

### What does jsonip.cn do ?

jsonip.cn provides a simple api to return a JSON format ip data.

The data includes a http client's ip or more detail of Geo/Browser/OS etc.

### Two APIs

1. GET http://jsonip.cn

```
{ "ip": "123.45.67.89", "detail": "http://jsonip.cn/i" }
```

2. GET http://jsonip.cn/i

```
{
"ip": "123.45.67.89",
"os":"Masintoshi",
"browser": "Chrome",
"contury": "中国",
"city": "北京"
}
```

### A webpage example

The "index.html" give an example in a web page where an Ajax used to query the ip info.

___________________

By B1nj0y [email protected]

Blog: http://b1nj0y.com