接口大厅/整点报时
返回接口大厅
61 API Endpoint GET

整点报时

正常

马思唯整点报时

Status
正常
Total Calls
751
Created
2025-12-21
Updated
2026-06-27
Response
AUDIO
01

Request Info

请求信息
Endpoint GET http://cyapi.top/API/timing.php
Example http://cyapi.top/API/timing.php
02

Parameters

1 params
Name Type Required Description
time string 不传入则为当前时间,传入格式仅支持24小时制
03

Status Codes

状态码
Code Meaning
200请求成功
403无权限或密钥无效
404接口不存在或参数错误
429请求过于频繁,已达限额
500服务器内部错误
04

Online Test

在线测试
请求参数
Response Format: AUDIO
响应结果
output
点击「立即测试」查看接口返回结果
05

Code Examples

调用示例
<?php
$url = 'http://cyapi.top/API/timing.php?time=' . urlencode($params['time'])';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);

echo $response;
?>
import requests

url = 'http://cyapi.top/API/timing.php'
params = {
    'time': 'YOUR_VALUE'
}

response = requests.get(url, params=params)
print(response.text)
const url = new URL('http://cyapi.top/API/timing.php');
const params = new URLSearchParams();
params.append('time', 'YOUR_VALUE');
url.search = params.toString();

fetch(url)
  .then(res => res.text())
  .then(data => console.log(data));