Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/gingerhot/jsonip.cn_usecase
- Owner: gingerhot
- Created: 2014-11-24T10:13:26.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-24T13:39:54.000Z (about 10 years ago)
- Last Synced: 2024-04-14T19:44:49.109Z (9 months ago)
- Size: 125 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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