纽约时报API专注于提供跨多个领域的全面新闻数据,如美国政治、国际事务、商业和科学。它处理各种数据字段,包括文章标题、发布日期、作者姓名、内容摘要以及相关的多媒体元素,如图片和视频。该API遵循标准的JSON格式进行数据交换,确保与Web应用程序的兼容性。领域特定术语包括对政治事件的引用(例如,选举、最高法院案件)、经济指标(例如,股市趋势、经济政策)和全球冲突(例如,战争、国际条约)。技术要求包括通过API密钥进行身份验证和限流以管理请求量。输出格式采用JSON结构,定义了文章的模式,包括元数据、内容主体和分类标签等字段,使开发人员能够有效地集成和展示新闻内容在他们的应用程序中。
{"articles":[{"title":"Trump Plans Tariffs on Mexico, Canada and China That Could Cripple Trade","publication_date":"Nov. 26, 2024","author":"Adam Kuehl","summary":"President-elect Trump promised a 25 percent tariff on Canada and Mexico, and an additional 10 percent on China, blaming the flow of drugs and migrants."},{"title":"After Tariff Threat, Is a China Currency War Next?","publication_date":"Nov. 26, 2024","author":"Adam Kuehl","summary":"While China could offset American tariffs by letting its currency fall, that might endanger Beijing\u2019s recent efforts to stabilize the economy."},{"title":"Trump\u2019s Threat Roils Global Markets","publication_date":"Nov. 26, 2024","author":"Adam Kuehl","summary":"Trump's tariff threats have caused significant fluctuations in global markets."},{"title":"Fentanyl Rises Again, This Time as Trump\u2019s Diplomatic Weapon Against China","publication_date":"Nov. 26, 2024","author":"Adam Kuehl","summary":"Fentanyl is being used as a diplomatic tool by Trump in negotiations with China."},{"title":"Mexico\u2019s President Raises Prospect of Retaliatory Tariffs on U.S. Goods","publication_date":"Nov. 26, 2024","author":"Adam Kuehl","summary":"In response to Trump's tariff plans, Mexico's President has suggested the possibility of retaliatory tariffs on U.S. goods."},{"title":"Transgender Activists Question the Movement\u2019s Confrontational Approach","publication_date":"Nov. 26, 2024","author":"Adam Kuehl","summary":"Facing diminishing public support, some activists say all-or-nothing tactics are not working."},{"title":"Judge Allows San Jose State Transgender Volleyball Player to Compete","publication_date":"Nov. 26, 2024","author":"Greg Kahn","summary":"A judge has ruled in favor of a transgender volleyball player at San Jose State, allowing her to compete."},{"title":"Israel Pummels Lebanon as Ministers Prepare to Discuss Truce With Hezbollah","publication_date":"Nov. 26, 2024","author":"Adam Kuehl","summary":"The Israeli military continues its strikes in Lebanon while discussions for a truce with Hezbollah are underway."},{"title":"Lebanon\u2019s Archaeological Treasures Are Threatened by Israeli Strikes","publication_date":"Nov. 26, 2024","author":"Adam Kuehl","summary":"Israeli strikes in Lebanon are endangering the country's rich archaeological heritage."},{"title":"End of Trump Cases Leaves Limits on Presidential Criminality Unclear","publication_date":"Nov. 26, 2024","author":"Adam Kuehl","summary":"Questions remain about presidential immunity and the power of special counsels to investigate wrongdoing as Trump prepares to regain office."},{"title":"Special Counsel Moves to End Donald Trump\u2019s Jan. 6 and Documents Cases","publication_date":"Nov. 26, 2024","author":"Adam Kuehl","summary":"The special counsel is moving to conclude investigations into Trump's actions related to January 6 and document handling."}]}
curl --location --request POST 'https://zylalabs.com/api/5626/new+york+times+api/7316/news+tracker' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{}'
{"articles":[{"title":"Trump Plans Tariffs on Mexico, Canada and China That Could Cripple Trade","publication_date":"Nov. 26, 2024","author":"Adam Kuehl","abstract":"President-elect Trump promised a 25 percent tariff on Canada and Mexico, and an additional 10 percent on China, blaming the flow of drugs and migrants."},{"title":"Trump\u2019s Threat Roils Global Markets","publication_date":"Nov. 26, 2024","author":"Adam Kuehl","abstract":"Trump's tariff threats have caused significant fluctuations in global markets."},{"title":"Fentanyl Rises Again, This Time as Trump\u2019s Diplomatic Weapon Against China","publication_date":"Nov. 26, 2024","author":"Adam Kuehl","abstract":"The Trump administration is using the fentanyl crisis as leverage in diplomatic negotiations with China."},{"title":"End of Trump Cases Leaves Limits on Presidential Criminality Unclear","publication_date":"Nov. 26, 2024","author":"Analysis","abstract":"Donald Trump is set to regain office with questions lingering about presidential immunity and the power of outside special counsels to investigate wrongdoing."},{"title":"Special Counsel Moves to End Donald Trump\u2019s Jan. 6 and Documents Cases","publication_date":"Nov. 26, 2024","author":"Analysis","abstract":"The special counsel is moving to conclude investigations into Donald Trump's actions surrounding January 6 and document handling."}]}
curl --location --request POST 'https://zylalabs.com/api/5626/new+york+times+api/7317/search+articles+by+keyword' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"keyword":"Required"}'
| 标头 | 描述 |
|---|---|
授权
|
[必需] 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。 |
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
纽约时报API提供访问广泛的新闻文章、分析和多媒体内容,涵盖包括美国政治、国际事务、商业和科学在内的各种主题
纽约时报API的数据以JSON格式结构化,包括文章标题、出版日期、作者姓名、内容摘要以及相关的多媒体元素如图片和视频
要使用纽约时报API,您需要通过API密钥进行身份验证,并注意速率限制以管理请求量
是的,纽约时报API允许您使用标签进行文章过滤,便于您根据特定主题或类别获取内容
您可以通过向API端点发出HTTP请求将纽约时报API集成到您的Web应用程序中,处理返回的JSON数据,并根据您的设计在您的应用程序中显示它
新闻追踪器端点返回最新的新闻文章,包括文章标题、发布时间、作者姓名和内容摘要。这些数据帮助用户了解政治和商业等各个类别的时事动态
用户可以通过指定参数来定制他们的请求,例如返回的文章数量、感兴趣的类别以及文章的日期范围。这允许个性化的新闻检索
响应数据以结构化的JSON格式组织,包含一组文章。每篇文章包括标题、出版日期、作者和摘要等字段,便于解析和显示相关信息
该端点提供对符合特定关键词或短语的文章的访问,包括相关的元数据,如出版日期和作者。它非常适合那些寻找特定主题或事件的用户。
响应数据中的关键字段包括“标题”“出版日期”“作者”和“摘要”这些字段提供了关于每篇文章的重要信息使用户能够快速理解内容
用户可以通过解析JSON响应来提取相关字段,例如文章摘要和发布日期,然后将这些信息在他们的应用程序或网站中展示以增强用户参与度
典型的使用案例包括构建新闻聚合平台 为应用程序创建自定义新闻源 以及对时事进行研究 开发者可以利用API为用户提供及时相关的新闻内容
数据准确性通过《纽约时报》所采用的严格编辑标准和事实核查流程得以保持。这确保通过API提供的文章是可靠和最新的
服务级别:
100%
响应时间:
284ms
服务级别:
100%
响应时间:
0ms
服务级别:
100%
响应时间:
7,928ms
服务级别:
100%
响应时间:
61ms
服务级别:
100%
响应时间:
55ms
服务级别:
100%
响应时间:
137ms
服务级别:
100%
响应时间:
4,761ms
服务级别:
100%
响应时间:
2,542ms
服务级别:
100%
响应时间:
253ms
服务级别:
100%
响应时间:
1,380ms
服务级别:
100%
响应时间:
713ms
服务级别:
100%
响应时间:
1,497ms
服务级别:
100%
响应时间:
847ms
服务级别:
100%
响应时间:
2,237ms
服务级别:
100%
响应时间:
2,430ms
服务级别:
100%
响应时间:
2,938ms
服务级别:
100%
响应时间:
1,956ms
服务级别:
100%
响应时间:
678ms
服务级别:
100%
响应时间:
3,976ms
服务级别:
91%
响应时间:
1,325ms