返回 | 接口 / 数据查询 / 世界人口
GET 数据查询

世界人口

世界人口 接口,点击查看请求参数与调用示例。

累计调用 8 今日调用 0

更新于 2026-10-16

调用地址

GET
https://itapi.top/api/qg

响应示例

200 OK
{"current_population":"8439583470","male_population":"4258235659","female_population":"4181347811","births_this_year":"123047007","births_today":"229526","deaths_this_year":"48069809","deaths_today":"89667","net_migration_this_year":"0","net_migration_today":"0","population_growth_this_year":"74977198","population_growth_today":"139859","last_updated":"16-10-2026 13:54:56","top_countries":[{"rank":"1","flag_image":"https:\/\/countrymeters.info\/images\/flags\/small\/in.gif","country":"印度","population":"1495007007","percentage":"17.71%"},{"rank":"2","flag_image":"https:\/\/countrymeters.info\/images\/flags\/small\/cn.gif","country":"中国","population":"1487654231","percentage":"17.63%"},{"rank"...

在线测试

该接口无需参数,直接发送即可。

代码示例

cURL · GET
curl "https://itapi.top/api/qg"
PHP
<?php
$res  = file_get_contents("https://itapi.top/api/qg");
$json = json_decode($res, true);
print_r($json);
JavaScript
const res  = await fetch("https://itapi.top/api/qg");
const json = await res.json();
console.log(json);
Python
import requests

r = requests.get("https://itapi.top/api/qg", timeout=10)
print(r.json())
返回接口列表