此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/10212/new+york+city+news+data+api/19627/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/10212/new+york+city+news+data+api/19631/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,您的应用程序可以为用户提供最新的地方新闻内容,提高用户参与度,并提供针对纽约地区的有价值信息
“获取最新纽约新闻”接口返回来自NBC纽约的当前新闻文章标题列表,提供最新本地新闻故事的快照
该文章的响应详细信息包括文章标题 内容 发布时间和新闻事件发生的地点
该端点的响应数据结构为一个包含对象的JSON数组,每个对象都有标题、内容、时间戳和位置字段,便于解析和使用
此端点允许您检索有关特定文章的全面信息,包括其标题、完整内容、发布时间以及与新闻故事相关的位置
用户可以通过在“通过标题获取文章详情”接口中指定文章标题来自定义请求,以检索该特定文章的详细信息
新闻数据来源于NBC纽约的“本地”栏目,确保信息与当地事件和故事相关且最新
如果响应返回没有文章,这可能表明最近没有新闻对于不完整的数据,请检查提供的标题是否准确,因为它可能与任何现有文章不匹配
典型的用例包括开发新闻聚合平台 创建网站本地新闻小工具或进行针对纽约市的新闻趋势研究
服务级别:
100%
响应时间:
7,928ms
服务级别:
100%
响应时间:
55ms
服务级别:
100%
响应时间:
284ms
服务级别:
100%
响应时间:
14,201ms
服务级别:
100%
响应时间:
2,542ms
服务级别:
100%
响应时间:
0ms
服务级别:
100%
响应时间:
4,309ms
服务级别:
100%
响应时间:
18ms
服务级别:
100%
响应时间:
253ms
服务级别:
100%
响应时间:
16ms
服务级别:
100%
响应时间:
579ms
服务级别:
100%
响应时间:
307ms
服务级别:
100%
响应时间:
1,055ms
服务级别:
100%
响应时间:
2,292ms
服务级别:
100%
响应时间:
1,263ms
服务级别:
100%
响应时间:
1,466ms
服务级别:
100%
响应时间:
793ms
服务级别:
100%
响应时间:
2,473ms
服务级别:
100%
响应时间:
8,930ms
服务级别:
100%
响应时间:
1,550ms