返回 | 接口 / 数据查询 / 食物卡路里查询API
GET 数据查询

食物卡路里查询API

食物卡路里查询API 接口,点击查看请求参数与调用示例。

累计调用 12 今日调用 0

更新于 2026-10-16

调用地址

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

响应示例

200 OK
/* 该接口返回二进制内容(application/json;charset=utf-8,44 字节),请直接访问接口地址查看 */

在线测试

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

代码示例

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

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