关于API:
此API支持多个类别,通过简单的API调用从各种来源和国家检索新闻和文章。您无需管理自己的后端基础设施以定期检索内容,我们为您做到这一点。
该API将接收您想要检索的新闻关键词,并将收到一系列已提取的新闻项目列表。
此API非常适合那些只想专注于网站开发的博客创作者。轻松丰富您的页面内容,获取相关的新闻。
此外,该API也非常适合希望定期提供内容的新闻门户。只需传递类别,您将获得大量可供选择的替代方案。
所有计划每秒1次请求。
要使用此端点,您需要一个搜索词、一个区域和要接收的结果数量
新闻 - 端点功能
| 对象 | 描述 |
|---|---|
请求体 |
[必需] Json |
{"count":10,"news_source":"","region":"in","safesearch":"Off","time_limit":"m","query":"TCS","news":[{"date":"2025-01-12T06:07:00+00:00","title":"India's TCS expects retail, manufacturing revival after banking recovery","body":"India's Tata Consultancy Services expects its retail and manufacturing clients in North America to step up spending on tech, following a similar upturn in its banking and financial services segment, a top executive of the nation's No.","url":"https://www.reuters.com/technology/indias-tcs-expects-retail-manufacturing-revival-after-banking-recovery-2025-01-12/","image":"https://www.reuters.com/resizer/v2/2XLO3EWEG5JXNBOBXFYWTLEHXA.jpg?auth=3972df1064fea289f29cab0e7b3e84709239abd0ac433dba190b0fa9ad9baf29&height=1005&width=1920&quality=80&smart=true","source":"Reuters"},{"date":"2025-01-10T05:35:00+00:00","title":"India's TCS jumps 6% as CEO signals potential demand revival","body":"Shares of India's Tata Consultancy Services rose 6% on Friday, set for the best day since July, as investors overlooked the company's tepid performance in North America and focused on the CEO's remarks signalling a potential revival in demand.","url":"https://www.reuters.com/world/india/indias-tcs-jumps-4-pre-open-trade-signs-demand-revival-2025-01-10/","image":"https://www.reuters.com/resizer/v2/YHORIYH6IROZZP5X6ETEJZRMFE.jpg?auth=0443de4990224947e04825138ed7f459ed7811760e1da433a4d8090b8764e5df&height=1005&width=1920&quality=80&smart=true","source":"Reuters"},{"date":"2025-01-10T12:20:00+00:00","title":"What's Driving Growth For TCS?","body":"Innovations in the auto, aerospace sectors and medtech industry has helped TCS secure a good number of large deals in the third quarter of FY25 and demands continue to grow in the se areas","url":"https://www.msn.com/en-us/money/other/what-s-driving-growth-for-tcs/ar-BB1rdVQ6","image":"https://img-s-msn-com.akamaized.net/tenant/amp/entityid/BB1rdTxg.img?w=2000&h=1333&m=4&q=81","source":"MSN"},{"date":"2025-01-10T04:34:00+00:00","title":"TCS Shares Gain After IT Firm Predicts Rising Tech Spending","body":"Shares of Tata Consultancy Services Ltd. advanced after the company predicted an increase in technology spending by corporations, signaling an IT industry slowdown may be nearing an end.","url":"https://www.msn.com/en-us/money/technology/tcs-shares-gain-after-it-firm-predicts-rising-tech-spending/ar-BB1rayUS","image":"https://img-s-msn-com.akamaized.net/tenant/amp/entityid/BB1rbHW8.img?w=2000&h=1359&m=4&q=79","source":"MSN"},{"date":"2025-01-12T16:07:00+00:00","title":"TCS sees North America factories spending on tech","body":"India's Tata Consultancy Services (TCS) expects its retail and manufacturing clients in North America to step up spending on tech, following a similar upturn in its banking and financial services segment,","url":"https://www.msn.com/en-ph/news/money/tcs-sees-north-america-factories-spending-on-tech/ar-BB1rjX2V","image":"https://www.manilatimes.net/manilatimes/uploads/images/2025/01/12/512820.png","source":"The Manila Times on MSN.com"},{"date":"2025-01-12T10:20:00+00:00","title":"TCS expects margin benefits as BSNL deal tapers; to create 25K-seat capacity in Bengaluru: CFO","body":"TCS expects to boost profit margins as the BSNL deal phases out over the next few quarters. The company plans to add over 25,000 seats in Bengaluru with a new land acquisition. TCS aims to compensate for the BSNL revenue drop with other sources while working towards expanding current profit margins.","url":"https://www.msn.com/en-in/money/economy/tcs-sees-margin-benefits-as-bsnl-deal-tapers/ar-BB1rjxwX","image":"https://img.etimg.com/thumb/msid-117172174,width-1200,height-630,imgsize-246442,overlay-economictimes/articleshow.jpg","source":"The Economic Times on MSN.com"},{"date":"2025-01-12T07:08:00+00:00","title":"TCS expects retail, manufacturing revival after banking recovery","body":"TCS's revenue in North America, its largest market, declined for the fifth consecutive quarter even as banking and financial services posted their best performance since June 2023. Retail and manufacturing are the second- and fourth- largest revenue contributors to the $29 billion behemoth.","url":"https://www.msn.com/en-us/money/companies/indias-tcs-expects-retail-manufacturing-revival-after-banking-recovery/ar-BB1rjcxY","image":"https://img.etimg.com/thumb/msid-117168717,width-1200,height-630,imgsize-75800,overlay-ettech/articleshow.jpg","source":"Reuters on MSN.com"},{"date":"2025-01-12T13:21:00+00:00","title":"Dividend Stocks: TCS, PCBL, CESC, among others to trade ex-dividend next week; Full list","body":"Dividend stocks: Shares of major companies, such as Tata Consultancy Services, PCBL, CESC and others, are scheduled to trade ex-dividend next week, according to BSE. Some of the major companies have announced various corporate actions, including the bonus issu e, extraordinary general meetings (EGM), and stock split, according to BSE data.","url":"https://www.livemint.com/market/stock-market-news/dividend-stocks-tcs-pcbl-cesc-among-others-to-trade-ex-dividend-next-week-full-list-11736644399690.html","image":"https://www.livemint.com/lm-img/img/2025/01/12/1600x900/divi_1736646151524_1736646151786.png","source":"Mint"},{"date":"2025-01-12T10:09:00+00:00","title":"TCS Eyes Expansion Amidst BSNL Deal Wind-Down","body":"TCS anticipates a margin boost as it strategically expands its infrastructure while managing the tapering off of the BSNL deal. Despite declining specific profit numbers, CFO Samir Seksaria highlights efforts to compensate for BSNL revenue dips through diverse market pursuits,","url":"https://www.devdiscourse.com/article/business/3222025-tcs-eyes-expansion-amidst-bsnl-deal-wind-down","image":"","source":"devdiscourse"},{"date":"2025-01-12T12:56:00+00:00","title":"TCS plans 25,000 seater centre in Bengaluru","body":"TCS had acquired a land parcel from a Tata Group company in Whitefield Bengaluru and plans to have a centre over period of time","url":"https://yourstory.com/enterprise-story/2025/01/tcs-plans-25-000-seater-centre-in-bengaluru","image":"https://images.yourstory.com/cs/wordpress/2018/08/TCS.png","source":"Your Story"}]}
curl --location --request POST 'https://zylalabs.com/api/436/news+and+article+content+searcher+api/5563/news' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{
"text": "iphone",
"region": "wt-wt",
"max_results": 3
}'
| 标头 | 描述 |
|---|---|
授权
|
[必需] 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。 |
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
新闻端点根据提供的搜索词返回新闻文章列表,包括文章的标题、正文、发布日期、来源以及进一步阅读的URL
响应中的关键字段包括“计数”(文章数量)“地区”(地理区域)“查询”(搜索词)以及包含“标题”“正文”“日期”“网址”“图片”和“来源”的“新闻”项目数组
用户可以通过指定搜索词、地区(例如 'in' 表示印度)和要检索的结果数量来自定义请求,从而实现量身定制的内容检索
该API支持多个区域和类别,使用户能够从不同国家和主题中获取新闻,从而提高内容对不同受众的相关性
响应数据以JSON格式结构化,主要对象包含元数据(如计数和区域)以及一个新闻文章数组,每篇文章表示为具有特定字段的对象
该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%
响应时间:
418ms
服务级别:
100%
响应时间:
2,721ms
服务级别:
100%
响应时间:
1,138ms
服务级别:
100%
响应时间:
10,129ms
服务级别:
100%
响应时间:
1,408ms
服务级别:
100%
响应时间:
1,434ms
服务级别:
100%
响应时间:
684ms
服务级别:
100%
响应时间:
1,450ms
服务级别:
100%
响应时间:
1,301ms
服务级别:
100%
响应时间:
1,645ms