此API允许开发者检索新闻文章标题及其相应的URL,便于将最新的新闻内容无缝集成到他们的应用程序、网站或服务中。
通过《纽约时报》新闻API,开发者可以通过编程的方式检索涵盖政治、商业、体育、娱乐、科技等诸多主题的最新新闻头条。这使得开发者能够创建提供实时新闻更新的应用,确保用户了解并参与当前事件。
该API提供了易于使用的接口,允许开发者发送请求并以结构化的JSON格式接收响应。
借助API端点,开发者可以获取新闻文章标题及其相应的URL,从而展示可点击的链接,引导用户访问《纽约时报》网站上的完整文章。
使用《纽约时报》新闻API的主要优势之一是其提供的新闻内容的可靠性和信誉。《纽约时报》以其卓越的新闻报道和对提供准确、经过充分研究且公正无偏见的新闻的承诺而闻名。通过集成此API,开发者可以利用与《纽约时报》品牌相关的信任,确保用户能够访问高质量、可信的新闻文章。
它将接收参数并提供您一个JSON。
新闻聚合平台:可用于获取新闻文章的标题和URL,允许开发者从《纽约时报》聚合新闻故事,并在统一界面中与其他来源的内容一起呈现。
内容推荐:开发者可以利用此API根据用户的偏好和兴趣提供个性化的新闻推荐,改善用户体验并增强与相关新闻内容的互动。
新闻和情感分析:通过访问API中的新闻文章标题,开发者可以进行情感分析或分析新闻报道中的趋势和模式,以获得公众舆论或市场情绪的见解。
数据研究和分析:研究人员和数据分析师可以使用此API收集新闻文章标题和特定主题的URL,使他们能够分析趋势、跟踪发展或基于大量可用文章进行研究。
热点话题和突发新闻:开发者可以检索最新文章的标题和URL,以创建展示热门话题或突发新闻的功能,向用户提供实时的当前事件更新。
除了API调用次数,没有其他限制。
{
"main": [
{
"title": "Why Many Police Traffic Stops Turn Deadly",
"url": "https://www.nytimes.com/2021/10/31/us/police-traffic-stops-killings.html"
},
{
"title": "Rewinding Video of Shootings Often Reveals Police Errors",
"url": "https://www.nytimes.com/interactive/2021/10/30/video/police-traffic-stops-danger-video.html"
}
],
"world": [
{
"title": "Rivals on World Stage, Russia and U.S. Quietly Seek Areas of Accord",
"url": "https://www.nytimes.com/2021/10/31/world/europe/biden-putin-russia-united-states.html"
},
{
"title": "Japan’s Election Was Closer Than Usual, Even Though Party in Power Has Hit Snooze",
"url": "https://www.nytimes.com/2021/10/30/world/asia/japan-election-fumio-kishida.html"
}
],
"us": [
{
"title": "Four Stand-Up Specials That Showcase Hard-Working Comics",
"url": "https://www.nytimes.com/2021/10/29/arts/television/four-stand-up-specials-to-watch.html"
},
{
"title": "One Dead After Dozens Try to Swim Around San Diego Border Fence",
"url": "https://www.nytimes.com/2021/10/31/us/migrants-swim-border.html"
}
],
"politics": [
{
"title": "Why Paid Family Leave’s Demise This Time Could Fuel It Later",
"url": "https://www.nytimes.com/2021/10/31/us/politics/paid-family-leave.html"
},
{
"title": "In the Final Days Before Virginia Votes, Both Sides Claim Momentum",
"url": "https://www.nytimes.com/2021/10/31/us/politics/virginia-governors-race-youngkin-mcauliffe.html"
}
],
"ny": [
{
"title": "Drug Boss Alpo Martinez Killed in Harlem",
"url": "https://www.nytimes.com/2021/10/31/nyregion/alpo-martinez-dead-harlem.html"
},
{
"title": "The Places in New York City Where Republicans Still Stand a Chance",
"url": "https://www.nytimes.com/2021/10/31/nyregion/city-council-nyc-election.html"
}
],
"business": [
{
"title": "China’s Popular Electric Vehicles Have Put Europe’s Automakers on Notice",
"url": "https://www.nytimes.com/2021/10/31/business/electric-cars-china-europe.html"
},
{
"title": "Angling for a Merry ‘Fishmas’ Despite Global Shipping Delays",
"url": "https://www.nytimes.com/2021/10/31/business/economy/global-shipping-delays-shortages.html"
}
],
"opinion": [
{
"title": "How I Became a Science Experiment",
"url": "https://www.nytimes.com/2021/10/30/opinion/lyme-disease-science.html"
},
{
"title": "Not Everyone in New York Wanted the Coronavirus to Lose",
"url": "https://www.nytimes.com/2021/10/31/opinion/vaccine-disinformation-new-york-city.html"
}
],
"technology": [
{
"title": "The Metaverse Is Mark Zuckerberg’s Escape Hatch",
"url": "https://www.nytimes.com/2021/10/29/technology/meta-facebook-zuckerberg.html"
},
{
"title": "Facebook Renames Itself Meta",
"url": "https://www.nytimes.com/2021/10/28/technology/facebook-meta-name-change.html"
}
],
"science": [
{
"title": "When the Soviets Set Off the Biggest Nuclear Bomb, J.F.K. Didn’t Flinch",
"url": "https://www.nytimes.com/2021/10/30/science/tsar-bomba-60.html"
},
{
"title": "Why Strawberries Turn a Ghostly Shade of White",
"url": "https://www.nytimes.com/2021/10/29/science/strawberries-evolution-genetics-white.html"
}
],
"health": [
{
"title": "Covid Shots Are a Go for Children, but Parents Are Reluctant to Consent",
"url": "https://www.nytimes.com/2021/10/30/health/covid-vaccine-kids-parents.html"
},
{
"title": "Why Aren’t More People Comparison Shopping for Health Plans?",
"url": "https://www.nytimes.com/2021/10/30/health/open-enrollment-health-insurance-medicare.html"
}
],
"sports": [
{
"title": "World Series Live Updates: Houston Comes Through With the Bases Loaded",
"url": "https://www.nytimes.comhttps://www.nytimes.com/live/2021/10/31/sports/braves-astros-score"
},
{
"title": "What We Learned From Week 8 in the N.F.L.",
"url": "https://www.nytimes.com/2021/10/31/sports/football/nfl-week-8-scores.html"
}
],
"arts": [
{
"title": "Oxford’s 2021 Word of the Year Is a Shot in the Arm",
"url": "https://www.nytimes.com/2021/10/31/arts/vax-oxford-word-year.html"
},
{
"title": "A Filmmaking Life Gets a Sequel",
"url": "https://www.nytimes.com/2021/10/29/movies/joanna-hogg-the-souvenir.html"
}
],
"books": [
{
"title": "Emily Ratajkowski Is a Work in Progress",
"url": "https://www.nytimes.com/2021/10/29/books/emily-ratajkowski-my-body.html"
},
{
"title": "For His Father and His Son, Ai Weiwei Is Determined to Leave a Trace",
"url": "https://www.nytimes.com/2021/10/30/books/review/1000-years-of-joys-and-sorrows-ai-weiwei.html"
}
],
"style": [
{
"title": "They Wrote Their Love Story While Scripting Others",
"url": "https://www.nytimes.com/2021/10/29/style/bill-prady-jessica-queller-wedding.html"
},
{
"title": "Why the Vampire Myth Won’t Die",
"url": "https://www.nytimes.com/2021/10/30/style/vampires-coronavirus.html"
}
],
"food": [
{
"title": "Long-Simmering Lamb for Waning Fall Days",
"url": "https://www.nytimes.com/2021/10/29/dining/lamb-shank-recipe-carrot-salad-molasses-ginger-cake.html"
},
{
"title": "Once a Bowling Alley Snack, Mozzarella Sticks Are Having a Resurgence",
"url": "https://www.nytimes.com/2021/10/29/dining/mozzarella-sticks.html"
}
],
"travel": [
{
"title": "Taking the Loop Less Traveled on the Oregon Coast",
"url": "https://www.nytimes.com/2021/10/28/travel/oregon-coast-three-capes-loop.html"
},
{
"title": "Can California Tourism Survive Climate Change?",
"url": "https://www.nytimes.com/2021/10/26/travel/california-tourism-climate-change.html"
}
],
"magazine": [
{
"title": "Kyle Rittenhouse and the New Era of Political Violence",
"url": "https://www.nytimes.com/2021/10/26/magazine/kyle-rittenhouse-kenosha-wisconsin.html"
},
{
"title": "How Corruption Ruined Lebanon",
"url": "https://www.nytimes.com/2021/10/28/magazine/corruption-lebanon.html"
}
],
"t-magazine": [
{
"title": "The T List: Five Things We Recommend This Week",
"url": "https://www.nytimes.com/2021/10/28/t-magazine/salon-cosa-campbell-rey.html"
},
{
"title": "An Artist’s Life in Objects, From a Warhol Print to a Postmodern Lamp",
"url": "https://www.nytimes.com/2021/10/27/t-magazine/peter-halley-design-art-collection.html"
}
],
"real-estate": [
{
"title": "In a Supertall Tower, How Much Affordable Housing Is Enough?",
"url": "https://www.nytimes.com/2021/10/29/realestate/5-world-trade-center-affordable.html"
},
{
"title": "At Central Park Tower, More Big Closings Are Recorded",
"url": "https://www.nytimes.com/2021/10/29/realestate/top-nyc-real-estate-sales.html"
}
]
}
curl --location --request GET 'https://zylalabs.com/api/2079/new+york+times+news+api/1861/get+news' --header 'Authorization: Bearer YOUR_API_KEY'
| 标头 | 描述 |
|---|---|
授权
|
[必需] 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。 |
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
API返回新闻文章标题及其对应的URL每个响应包括按各种主题分类的文章如世界新闻美国新闻等允许开发者访问广泛的时事
响应数据中的关键字段包括“标题”和“网址”每个文章条目包含这些字段,提供文章的标题和链接到《纽约时报》网站上的完整内容
响应数据以结构化的JSON格式组织 文章按类别分组,如“主要”“世界”和“美国” 使开发人员能够轻松访问特定的新闻片段
该端点提供对各种类别新闻文章的访问,包括政治、商业、体育、娱乐和科技,确保全面了解当前事件
该API允许用户通过指定类别或主题等参数来自定义请求这使开发人员能够根据用户兴趣或应用需求过滤新闻文章
数据准确性通过纽约时报既定的新闻标准和编辑流程得以维护 API直接从他们的新闻文章中获取内容 确保了可靠性和可信度
典型的用例包括新闻聚合平台 个性化内容推荐 情感分析 和有关趋势话题的实时更新 增强用户对相关新闻的参与感
用户可以通过将文章标题显示为可点击链接在他们的应用程序中利用返回的数据,允许用户轻松访问完整的文章。这种集成通过提供直接访问可靠新闻来源的方式增强了用户体验
Zyla API Hub 就像一个大型 API 商店,您可以在一个地方找到数千个 API。我们还为所有 API 提供专门支持和实时监控。注册后,您可以选择要使用的 API。请记住,每个 API 都需要自己的订阅。但如果您订阅多个 API,您将为所有这些 API 使用相同的密钥,使事情变得更简单。
价格以 USD(美元)、EUR(欧元)、CAD(加元)、AUD(澳元)和 GBP(英镑)列出。我们接受所有主要的借记卡和信用卡。我们的支付系统使用最新的安全技术,由 Stripe 提供支持,Stripe 是世界上最可靠的支付公司之一。如果您在使用卡片付款时遇到任何问题,请通过 [email protected]
此外,如果您已经以这些货币中的任何一种(USD、EUR、CAD、AUD、GBP)拥有有效订阅,该货币将保留用于后续订阅。只要您没有任何有效订阅,您可以随时更改货币。
定价页面上显示的本地货币基于您 IP 地址的国家/地区,仅供参考。实际价格以 USD(美元)为单位。当您付款时,即使您在我们的网站上看到以本地货币显示的等值金额,您的卡片对账单上也会以美元显示费用。这意味着您不能直接使用本地货币付款。
有时,银行可能会因其欺诈保护设置而拒绝收费。我们建议您首先联系您的银行,检查他们是否阻止了我们的收费。此外,您可以访问账单门户并更改关联的卡片以进行付款。如果这些方法不起作用并且您需要进一步帮助,请通过 [email protected]
价格由月度或年度订阅决定,具体取决于所选计划。
API 调用根据成功请求从您的计划中扣除。每个计划都包含您每月可以进行的特定数量的调用。只有成功的调用(由状态 200 响应指示)才会计入您的总数。这确保失败或不完整的请求不会影响您的月度配额。
Zyla API Hub 采用月度订阅系统。您的计费周期将从您购买付费计划的那一天开始,并在下个月的同一日期续订。因此,如果您想避免未来的费用,请提前取消订阅。
要升级您当前的订阅计划,只需转到 API 的定价页面并选择您要升级到的计划。升级将立即生效,让您立即享受新计划的功能。请注意,您之前计划中的任何剩余调用都不会转移到新计划,因此在升级时请注意这一点。您将被收取新计划的全部金额。
要检查您本月剩余多少 API 调用,请参考响应标头中的 "X-Zyla-API-Calls-Monthly-Remaining" 字段。例如,如果您的计划允许每月 1,000 个请求,而您已使用 100 个,则响应标头中的此字段将显示 900 个剩余调用。
要查看您的计划允许的最大 API 请求数,请检查 "X-Zyla-RateLimit-Limit" 响应标头。例如,如果您的计划包括每月 1,000 个请求,此标头将显示 1,000。
"X-Zyla-RateLimit-Reset" 标头显示您的速率限制重置之前的秒数。这告诉您何时您的请求计数将重新开始。例如,如果它显示 3,600,则意味着还有 3,600 秒直到限制重置。
是的,您可以随时通过访问您的账户并在账单页面上选择取消选项来取消您的计划。请注意,升级、降级和取消会立即生效。此外,取消后,您将不再有权访问该服务,即使您的配额中还有剩余调用。
您可以通过我们的聊天渠道联系我们以获得即时帮助。我们始终在线,时间为上午 8 点至下午 5 点(EST)。如果您在该时间之后联系我们,我们将尽快回复您。此外,您可以通过 [email protected]
为了让您有机会在没有任何承诺的情况下体验我们的 API,我们提供 7 天免费试用,允许您免费进行最多 50 次 API 调用。此试用只能使用一次,因此我们建议将其应用于您最感兴趣的 API。虽然我们的大多数 API 都提供免费试用,但有些可能不提供。试用在 7 天后或您进行了 50 次请求后结束,以先发生者为准。如果您在试用期间达到 50 次请求限制,您需要"开始您的付费计划"以继续发出请求。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。或者,如果您在第 7 天之前不取消订阅,您的免费试用将结束,您的计划将自动计费,授予您访问计划中指定的所有 API 调用的权限。请记住这一点以避免不必要的费用。
7 天后,您将被收取试用期间订阅的计划的全额费用。因此,在试用期结束前取消很重要。因忘记及时取消而提出的退款请求不被接受。
当您订阅 API 免费试用时,您可以进行最多 50 次 API 调用。如果您希望超出此限制进行额外的 API 调用,API 将提示您执行"开始您的付费计划"。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。
付款订单在每月 20 日至 30 日之间处理。如果您在 20 日之前提交请求,您的付款将在此时间范围内处理。
服务级别:
100%
响应时间:
7,928ms
服务级别:
100%
响应时间:
61ms
服务级别:
100%
响应时间:
14,201ms
服务级别:
100%
响应时间:
0ms
服务级别:
100%
响应时间:
55ms
服务级别:
100%
响应时间:
139ms
服务级别:
100%
响应时间:
684ms
服务级别:
100%
响应时间:
479ms
服务级别:
100%
响应时间:
2,542ms
服务级别:
100%
响应时间:
1,284ms
服务级别:
100%
响应时间:
39ms
服务级别:
75%
响应时间:
1,498ms
服务级别:
100%
响应时间:
464ms
服务级别:
100%
响应时间:
3,497ms
服务级别:
100%
响应时间:
343ms
服务级别:
100%
响应时间:
0ms
服务级别:
100%
响应时间:
1,586ms
服务级别:
100%
响应时间:
1,184ms
服务级别:
100%
响应时间:
349ms
服务级别:
100%
响应时间:
36ms