Giter VIP home page Giter VIP logo

cn-mobile-location's Introduction

cn-mobile-location

**手机号码归属地接口

环境要求

安装运行

  git clone https://github.com/openyun/cn-mobile-location.git
  cd cn-mobile-location
  npm install 
  npm start

接口相关

curl测试

curl http://localhost:3000/mobile/13488888888

返回JSON数据示例

{
  "status": 1,
  "message": "success",
  "data": {
    "prefix": "134",
    "mobile": "13488888888",
    "province": "北京",
    "city": "北京",
    "isp": "移动",
    "code": "010",
    "zipcode": "100000",
    "types": "**移动 GSM"
  },
  "timestamp": 1499345271
}

字段说明

根节点:

字段名称 类型 说明
status int 接口消息状态,1=成功,0=失败
message string 接口消息内容
data object 返回数据
timestamp int 时间戳

data节点:

字段名称 类型 说明
prefix string 手机号码号段
mobile string 查询的手机号码
province string 归属地省份
city string 归属地城市
isp string 运营商
code string 行政区号
zipcode string 邮政编码
types string 运营商描述

JSONP支持

curl http://localhost:3000/mobile/13488888888?callback=xxx

License

MIT

cn-mobile-location's People

Contributors

richieliu avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.