该 API 允许客户端检索当前本地新闻文章(标题)列表,然后通过指定标题获取任何一篇文章的完整详细信息。该 API 对于新闻聚合器、研究或在其他上下文或格式中显示 NBC 纽约本地新闻的应用程序非常有用
[
{
"titles": [
"Nadine Menendez, wife of disgraced NJ ex-senator, faces sentencing in bribery scheme",
"Remembering the victims: These are the people who died in the Sept. 11 attacks",
"Who is singing the national anthem at NYC 9/11 ceremony?",
"2 men wanted after Humpty Dumpty statue stolen at Jersey Shore golf course",
"Thanks to his heroics on 9/11, fallen FDNY firefighter's kids can still hear his voice",
"Trying to remember the color of the sky on 9/11",
"9/11 first responder gets double lung transplant",
"Zohran Mamdani has new goal as he runs for NYC mayor: cheaper World Cup tickets",
"Shake Shack finally puts its ‘most requested side' on the menu",
"Long Island woman, 59, stabbed to death in home across from elementary school",
"What we know about the 2025 WNBA playoffs: Teams, bracket, start date and more",
"Longtime head of Mexican megachurch is indicted in New York on federal sex trafficking charges",
"Suspect arrested for alleged attempted rape inside midtown Manhattan nail salon",
"NYC marking 24th anniversary of 9/11 attacks, with added security expected",
"Lockdown lifted at Long Beach High School after active shooter threat",
"NY Gov. Kathy Hochul announces subway crime fell to historic lows over summer",
"NYC Council to override Adams' veto on bill decriminalizing illegal street vending",
"First phase for FIFA World Cups tickets sale kicks off",
"New jersey considering banning cell phones in schools",
"Mayor Eric Adams implied he's considering leaving NYC mayoral race, sources say"
]
}
]
curl --location --request POST 'https://zylalabs.com/api/10213/nyc+local+news+api/19628/get+latest+new+york+news' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{}'
[
{
"title": "NY Gov. Kathy Hochul announces subway crime fell to historic lows over summer",
"content": "Governor Kathy Hochul says subway crime dropped to historic lows this summer after flooding the systems with more police officers.",
"timestamp": "7 hours ago",
"location": "New York City"
}
]
curl --location --request POST 'https://zylalabs.com/api/10213/nyc+local+news+api/19632/get+article+details+by+title' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"title":"Required"}'
| 标头 | 描述 |
|---|---|
授权
|
[必需] 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。 |
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
纽约市地方新闻API提供来自NBC纽约“地方”栏目当地新闻文章的标题和元数据,以及所选文章的详细数据
API以结构化格式返回数据,通常为JSON,包含多个字段,如文章标题、出版日期、作者和内容详情
该API可以被新闻聚合器用于显示本地新闻,也可以被研究人员用于分析新闻趋势,或者被开发者用于将NBC纽约本地新闻集成到他们的应用程序或网站中
在获取文章的完整细节时,您可以期待包括文章标题、作者、出版日期、内容以及与文章相关的任何元数据等字段
通过集成纽约市地方新闻API,您的应用程序可以为用户提供最新的地方新闻内容,提高用户参与度,并提供针对纽约地区的有价值信息
该接口返回与纽约市相关的最新新闻文章标题列表 每个标题代表一个当前的新闻故事 使用户能够快速识别感兴趣的话题
响应包括文章标题 内容 时间戳(指示何时发布)和位置(指定新闻相关的地方)提供有关所选文章的全面信息
响应数据采用JSON格式结构化 最新新闻接口返回一个标题数组 而文章详情接口返回一个包含特定字段的对象如标题 内容和时间戳
此端点允许用户检索特定文章的详细信息,包括标题 内容 发布时戳以及与新闻相关的位置,从而增强对文章上下文的理解
当前,API不支持自定义请求的额外参数。用户可以获取最新的新闻标题,然后通过标题获取特定文章的详细信息,从而确保简单的交互
典型的用例包括开发新闻聚合平台 创建分析地方新闻趋势的研究工具以及构建向纽约市用户显示实时地方新闻更新的应用程序
该API的数据来源于NBC纽约的地方新闻报道,确保信息的时效性和相关性。定期进行更新和质量检查,以维护提供的新闻内容的完整性
如果API返回部分或空结果,请检查提供的标题是否准确。如果标题正确,这可能表明文章不再可用或没有最近的更新。考虑使用最新新闻端点查找替代文章
服务级别:
100%
响应时间:
246ms
服务级别:
100%
响应时间:
4,377ms
服务级别:
100%
响应时间:
285ms
服务级别:
100%
响应时间:
53ms
服务级别:
100%
响应时间:
257ms
服务级别:
100%
响应时间:
264ms
服务级别:
100%
响应时间:
278ms
服务级别:
100%
响应时间:
56ms
服务级别:
100%
响应时间:
18ms
服务级别:
90%
响应时间:
1,335ms