search
HomeBackend DevelopmentPHP Tutorial常用生活应用api接口小结

常用生活应用api接口小结

001. 天气预报接口

city:城市名,传递时须做urlencode http://apix.sinaapp.com/weather/?appkey=trialuser&city=深圳
lat:纬度 lng:经度 http://apix.sinaapp.com/weather2/?appkey=trialuser&lat=39.915&lng=116.404

002. 空气质量指数接口 [20130901]

city:城市名,传递时须做urlencode http://apix.sinaapp.com/airquality/?appkey=trialuser&city=深圳

003. 快递查询接口 [20130901]

company:快递公司英文代码 点击查看英文代码列表 number:快递单号 http://apix.sinaapp.com/express/?appkey=trialuser&company=yuantong&number=3143490877

004. 智能快递查询接口 [20130901]

number:快递单号 http://apix.sinaapp.com/expressauto/?appkey=trialuser&number=3143490877 备注:支持EMS,申通快递,圆通快递,中通快递,汇通快递,天天快递,韵达快递,顺丰快递,宅急送,速尔快递,德邦物流,联昊通物流,全峰快递,中国邮政,如风达

005. 股票查询接口 [20130901]

code:股票代码[通达信代码] http://apix.sinaapp.com/stock/?appkey=trialuser&code=000063

006. 股票分析接口 [20131004]

code:股票代码 http://apix.sinaapp.com/stockanalysis/?appkey=trialuser&code=000063

007. 公交线路接口 [20131004]

city:城市名,传递时须做urlencode line:线路,传递时须做urlencode http://apix.sinaapp.com/busline/?appkey=trailuser&city=深圳&line=209

008. 公交、地铁换乘接口 [20131004]

city:城市名,传递时须做urlencode start:起点,传递时须做urlencode end:终点,传递时须做urlencode http://apix.sinaapp.com/bus/?appkey=trailuser&city=深圳&start=世界之窗&end=竹子林

009. 地铁查询接口 [20131004]

http://apix.sinaapp.com/subway/?appkey=trialuser

010. 火车查询 [20131004]

http://apix.sinaapp.com/train/?appkey=trialuser

011. 汽车查询接口 [20131004]

http://apix.sinaapp.com/coach/?appkey=trialuser

012. 自驾线路 [20131004]

startcity:起点城市,传递时须做urlencode startplace:起点地名,传递时须做urlencode endcity:终点城市,传递时须做urlencode endplace:终点地名,传递时须做urlencode http://apix.sinaapp.com/driving/?appkey=trailuser&startcity=北京&startplace=清华大学&endcity=北京&endplace=天安门

013. 出租车费用 [20131004]

city:城市名,传递时须做urlencode start:起点,传递时须做urlencode end:终点,传递时须做urlencode http://apix.sinaapp.com/taxi/?appkey=trailuser&city=北京&start=清华大学&end=天安门

 014. 航班状态接口 [20131004]

number:航班号 http://apix.sinaapp.com/flight/?appkey=trialuser&number=ca1111

015. 笑话接口 [20131004]

http://apix.sinaapp.com/joke/?appkey=trialuser

016. 周公解梦接口 [20131004]

content: 梦见内容,传递时须做urlencode http://apix.sinaapp.com/dream/?appkey=trialuser&content=老师

017. 中英互译 [20131104]

content: 翻译内容,传递时须做urlencode http://apix.sinaapp.com/translate/?appkey=trialuser&content=表示

018. 星座运势接口 [20131104]

name: 星座名,传递时须做urlencode http://apix.sinaapp.com/astrology/?appkey=trialuser&name=白羊座

019. 彩票开奖结果接口 [20131104]

name:彩票名称,传递时须做urlencode http://apix.sinaapp.com/lottery/?appkey=trailuser&name=双色球 备注:支持双色球,大乐透,3D,排列3,排列5,七星彩,七乐彩,胜负彩,任选九,六场半全场,四场进球

020. 苹果IMEI/序列号查询接口 [20131104]

number: IMEI号或序列号 http://apix.sinaapp.com/apple/?appkey=trialuser&number=358031058974471

021. 百科全书接口 [20131204]

word: 词条,传递时须做urlencode http://apix.sinaapp.com/encyclopedia/?appkey=trialuser&word=微信

022. 图书介绍 [20131104]

name: 图书名,传递时须做urlencode http://apix.sinaapp.com/book/?appkey=trialuser&name=盗墓笔记

023. 歌曲介绍 [20131104]

name: 音乐名,传递时须做urlencode http://apix.sinaapp.com/song/?appkey=trialuser&name=新年好

024. 影片介绍 [20131104]

name: 电影名,传递时须做urlencode http://apix.sinaapp.com/movie/?appkey=trialuser&name=龙猫

025. 历史上的今天接口 [20140104]

http://apix.sinaapp.com/history/?appkey=trialuser

026. 经济指标

027. 财经大事

028. 手机充值

http://apix.sinaapp.com/recharge/?appkey=trialuser 备注:腾讯财付通官方网站充值接口,基于微信安全支付

029. 城市团购 [20140104]

city: 城市名,传递时须做urlencode,你可以指定一个固定城市 查看支持城市列表 keyword:关键字,传递时须做urlencode,可为商户名、商品名、地址等 http://apix.sinaapp.com/groupon/?appkey=trialuser&city=深圳&keyword=华强北

030. 城市优惠

031. 黄金

032. 白银

033. 外汇

034. 图片检索

035. 视频检索

036. 地图位置服务 [20140104]

lat:纬度 lng:经度 entity:查询名称,传递时须做urlencode http://apix.sinaapp.com/map/?appkey=trialuser&lat=39.915&lng=116.404&entity=医院

037. 菜谱 [20140104]

name: 菜谱名称,传递时须做urlencode http://apix.sinaapp.com/recipe/?appkey=trialuser&name=剁椒鱼头

038. 手机号码归属地查询接口 [20140105]

number: 手机号码 http://apix.sinaapp.com/mobilephone/?appkey=trialuser&number=13456789000

039. 身份证归属查询查询接口 [20140105]

number: 15或18位身份证号码 http://apix.sinaapp.com/idcard/?appkey=trialuser&number=542621201212210003

040. 电视节目表 [20140116]

http://apix.sinaapp.com/tvprogram/?appkey=trialuser

041. IP地址查询接口 [20140116]

http://apix.sinaapp.com/ip/?appkey=trialuser&ip=202.203.208.80

042. 每日宜忌查询接口 [20140116]

http://apix.sinaapp.com/almanac/?appkey=trialuser

043. 疾病查询 [20140121]

name: 疾病名,传递时须做urlencode http://apix.sinaapp.com/illness/?appkey=trailuser&name=感冒

044. 号码吉凶

045. 邮政编码

code:邮政编码 http://apix.sinaapp.com/postcode/?appkey=trailuser&code=518057

046. 产品比价查询接口 [20140118]

name: 商品名,传递时须做urlencode http://apix.sinaapp.com/price/?appkey=trialuser&name=iphone 5s

047. 食物热量查询接口 [20140120]

name:食物名 http://apix.sinaapp.com/calorie/?appkey=trailuser&name=鸡蛋

048. 人品计算 [20140118]

name: 人名,传递时须做urlencode http://apix.sinaapp.com/moral/?appkey=trialuser&name=张三

049. 违章查询 [20140118]

http://apix.sinaapp.com/peccancy/?appkey=trialuser

050. 药物查询 [20140117]

name: 药物名,传递时须做urlencode http://apix.sinaapp.com/medicine/?appkey=trialuser&name=青霉素

051. 周易算命 [20140117]

name: 人名,传递时须做urlencode http://apix.sinaapp.com/fortune/?appkey=trailuser&name=张三

052. 机票查询 [20140118]

http://apix.sinaapp.com/airline/?appkey=trialuser

053. 酒店查询 [20140119]

http://apix.sinaapp.com/hotel/?appkey=trialuser

054. 驾照模拟考试 [20140119]

http://apix.sinaapp.com/drivingtest/?appkey=trialuser

056. 在线点歌查询接口 [20140119]

singer: 歌手名,传递时须做urlencode song: 歌曲名,传递时须做urlencode http://apix.sinaapp.com/music/?appkey=trialuser&singer=凤凰传奇&song=最炫民族风

057. 车牌归属地吉凶 [20140119]

number:车牌号码。例如:湘C12345,传递时须做urlencode http://apix.sinaapp.com/platenumber/?appkey=trialuser&number=湘C12345

058. 冬吴相对论 [20140120]

number:节目期号 http://apix.sinaapp.com/dongwu/?appkey=trialuser&number=123

059. 每日英语 [20140120]

type:类型,目前支持translation, listening http://apix.sinaapp.com/daily/?appkey=trailuser&type=translation

060. 实时路况 [20140120]

http://apix.sinaapp.com/traffic/?appkey=trialuser

061. 菜价查询 [20140121]

http://apix.sinaapp.com/foodprice/?appkey=trialuser

062. 成语词典 [20140121]

word:成语名,传递时须做urlencode http://apix.sinaapp.com/idiom/?appkey=trailuser&word=方兴未艾

 063. 人脸识别接口 [20140315]

picurl:图片地址,传递时须做urlencode http://apix.sinaapp.com/face/?appkey=trialuser&picurl=http://www.ineiyi.com/uploads/allimg/1312/79-131213142315.jpg

 064. 四六级成绩查询接口 [20140317]

http://apix.sinaapp.com/cet/?appkey=trialuser


Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
The Continued Use of PHP: Reasons for Its EnduranceThe Continued Use of PHP: Reasons for Its EnduranceApr 19, 2025 am 12:23 AM

What’s still popular is the ease of use, flexibility and a strong ecosystem. 1) Ease of use and simple syntax make it the first choice for beginners. 2) Closely integrated with web development, excellent interaction with HTTP requests and database. 3) The huge ecosystem provides a wealth of tools and libraries. 4) Active community and open source nature adapts them to new needs and technology trends.

PHP and Python: Exploring Their Similarities and DifferencesPHP and Python: Exploring Their Similarities and DifferencesApr 19, 2025 am 12:21 AM

PHP and Python are both high-level programming languages ​​that are widely used in web development, data processing and automation tasks. 1.PHP is often used to build dynamic websites and content management systems, while Python is often used to build web frameworks and data science. 2.PHP uses echo to output content, Python uses print. 3. Both support object-oriented programming, but the syntax and keywords are different. 4. PHP supports weak type conversion, while Python is more stringent. 5. PHP performance optimization includes using OPcache and asynchronous programming, while Python uses cProfile and asynchronous programming.

PHP and Python: Different Paradigms ExplainedPHP and Python: Different Paradigms ExplainedApr 18, 2025 am 12:26 AM

PHP is mainly procedural programming, but also supports object-oriented programming (OOP); Python supports a variety of paradigms, including OOP, functional and procedural programming. PHP is suitable for web development, and Python is suitable for a variety of applications such as data analysis and machine learning.

PHP and Python: A Deep Dive into Their HistoryPHP and Python: A Deep Dive into Their HistoryApr 18, 2025 am 12:25 AM

PHP originated in 1994 and was developed by RasmusLerdorf. It was originally used to track website visitors and gradually evolved into a server-side scripting language and was widely used in web development. Python was developed by Guidovan Rossum in the late 1980s and was first released in 1991. It emphasizes code readability and simplicity, and is suitable for scientific computing, data analysis and other fields.

Choosing Between PHP and Python: A GuideChoosing Between PHP and Python: A GuideApr 18, 2025 am 12:24 AM

PHP is suitable for web development and rapid prototyping, and Python is suitable for data science and machine learning. 1.PHP is used for dynamic web development, with simple syntax and suitable for rapid development. 2. Python has concise syntax, is suitable for multiple fields, and has a strong library ecosystem.

PHP and Frameworks: Modernizing the LanguagePHP and Frameworks: Modernizing the LanguageApr 18, 2025 am 12:14 AM

PHP remains important in the modernization process because it supports a large number of websites and applications and adapts to development needs through frameworks. 1.PHP7 improves performance and introduces new features. 2. Modern frameworks such as Laravel, Symfony and CodeIgniter simplify development and improve code quality. 3. Performance optimization and best practices further improve application efficiency.

PHP's Impact: Web Development and BeyondPHP's Impact: Web Development and BeyondApr 18, 2025 am 12:10 AM

PHPhassignificantlyimpactedwebdevelopmentandextendsbeyondit.1)ItpowersmajorplatformslikeWordPressandexcelsindatabaseinteractions.2)PHP'sadaptabilityallowsittoscaleforlargeapplicationsusingframeworkslikeLaravel.3)Beyondweb,PHPisusedincommand-linescrip

How does PHP type hinting work, including scalar types, return types, union types, and nullable types?How does PHP type hinting work, including scalar types, return types, union types, and nullable types?Apr 17, 2025 am 12:25 AM

PHP type prompts to improve code quality and readability. 1) Scalar type tips: Since PHP7.0, basic data types are allowed to be specified in function parameters, such as int, float, etc. 2) Return type prompt: Ensure the consistency of the function return value type. 3) Union type prompt: Since PHP8.0, multiple types are allowed to be specified in function parameters or return values. 4) Nullable type prompt: Allows to include null values ​​and handle functions that may return null values.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function