新闻API是一个多功能和全面的工具,使开发者能够根据特定的兴趣主题访问最新的网络新闻内容。通过这个API,用户可以轻松保持信息的实时更新,与瞬息万变的新闻世界保持同步。
利用新闻API,开发者可以访问来自各种可靠源的大量新闻文章,包括主要新闻机构、专业出版物和地区来源。该API从多个出版商汇总新闻内容,确保对各种主题进行多样化和全面的覆盖。
新闻API的一个关键特性是能够根据特定主题检索新闻。无论您对政治、技术、体育、娱乐或其他任何主题感兴趣,都可以定制查询以获取与您需求最相关的新闻文章。这种灵活性允许开发者创建满足用户特定兴趣的应用和服务。
新闻API提供实时的新闻内容访问,确保您获得最新的信息。这使用户能够保持领先,跟踪突发新闻故事,并及时了解他们喜爱的领域的最新动态。
得益于其良好的文档和开发者友好的接口,与新闻API的集成非常简单。该API支持多种编程语言,并提供全面的文档,包括代码示例,以帮助开发者将其无缝集成到他们的应用中。
除了基于主题的搜索外,新闻API还提供额外的搜索参数来优化查询。这些参数包括日期范围、源过滤、语言偏好和排序选项。对搜索参数的精细控制使开发者能够构建高度个性化和相关的新闻应用,向用户提供高度相关的内容。
凭借其强大的基础设施和强大的搜索能力,新闻API确保快速高效地检索新闻文章。该API以标准化格式(通常为JSON或XML)提供结果,使数据易于解析和集成到应用或网站中。
无论您是在构建新闻聚合器、内容推荐系统还是个性化新闻应用,新闻API都提供了从整个网络访问最新新闻内容的基本工具。保持知情,吸引您的用户,提升他们的新闻消费体验,尽在这个强大而灵活的API。
传递您的搜索词并接收关于任何主题的最新新闻。
新闻聚合器:创建一个新闻聚合平台,使用新闻API从多个来源获取最新的新闻文章。用户可以浏览不同主题,并在一个地方获取对当前事件的全面概述。
个性化新闻应用:开发一个个性化新闻应用,允许用户根据他们的兴趣定制新闻提要。通过集成新闻API,您可以获取最符合每个用户偏好的新闻文章,确保他们收到最相关的新闻内容。
内容推荐系统:构建一个内容推荐系统,根据用户的浏览历史或先前的互动向他们推荐新闻文章。通过利用新闻API,您可以访问多样的新闻文章,并根据用户的偏好向他们推荐,增强他们的新闻消费体验。
研究与分析:利用新闻API收集研究与分析所需的数据。通过检索特定主题的新闻文章,研究人员可以获得趋势、情感分析的洞察,或进行数据驱动的研究,以了解公众意见或市场动态。
新闻通知:开发一个通知服务,保持用户了解突发新闻或特定兴趣主题。使用新闻API,您可以实时检索最新的新闻文章,并向用户发送推送通知,确保他们随时更新重要事件和故事。
社交媒体集成:将新闻API与社交媒体平台集成,为用户提供直接从您的应用程序分享新闻文章的选项。这使用户能够与他们的网络进行互动,促进讨论并增强新闻文章的传播。
除了API调用次数外,低于ProPlus计划的限制是每天200次请求。
搜索新闻 - 端点功能
| 对象 | 描述 |
|---|---|
q |
[必需] Indicates a search term |
gl |
[必需] Parameter defines the country to use for the Google search. It's a two-letter country code. (e.g., us for the United States, uk for United Kingdom, or fr for France). |
hl |
可选 Parameter defines the language to use for the Google search. It's a two-letter language code. (e.g., en for English, es for Spanish, or fr for French). |
location |
可选 This optional parameter determines where your Google search originates, allowing for more specific locations such as cities and neighborhoods. |
tbs |
可选 Indicates the range: Past hour = qdr:h , Past 24 hours = qdr:d, Past week= qdr:w, Past month = qdr:m, Past year = qdr:y |
num |
可选 This sets the maximum number of results per page. 10 , 20 , 30 , 40 , 50 , 100 |
page |
可选 Indicates the pagination |
{"searchParameters":{"q":"frauds and scams","gl":"us","type":"news","engine":"google"},"news":[{"title":"Crypto Scam Tracker","link":"https://dfpi.ca.gov/consumers/crypto/crypto-scam-tracker/","snippet":"Crypto Blackmail Scam – Scammer sends emails or physical mails to victims saying they have personal information about the victim or embarrassing...","date":"3 days ago","source":"CA.gov","imageUrl":"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSgiicmdcYcwifMoZJo-zKUAlcEIOZCvDl1-wz0dAAJigCnwL1z3Ty3m8o1fw&s","position":1},{"title":"Common Frauds and Scams | Federal Bureau of Investigation","link":"https://www.fbi.gov/how-we-can-help-you/scams-and-safety/common-frauds-and-scams","snippet":"Learn about some of the most common frauds and scams that the FBI encounters—as well as tips to help you stay safe and what to do if you're...","date":"7 months ago","source":"FBI.gov","imageUrl":"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSKdrUO5MRmVg0GI7z198fT6rtJ9ylsRFmKjXykDrvrzaC4wQILPvbvtMqikg&s","position":2},{"title":"Bank transfer fraud losses outpace crypto","link":"https://www.paymentsdive.com/news/bank-transfer-fraud-losses-crypto-federal-trade-commission/743202/","snippet":"The value of fraud losses last year was highest for bank transfers and payments, followed by cryptocurrency transactions, according to a...","date":"1 day ago","source":"Payments Dive","imageUrl":"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSj9XxTsKfvCq3xM6xpFGVIXaL9i09IEtjl_EKOBwt2lgDXfA6K1eccwZdTwQ&s","position":3},{"title":"New FTC Data Show a Big Jump in Reported Losses to Fraud to $12.5 Billion in 2024","link":"https://www.ftc.gov/news-events/news/press-releases/2025/03/new-ftc-data-show-big-jump-reported-losses-fraud-125-billion-2024","snippet":"Newly released Federal Trade Commission data show that consumers reported losing more than $12.5 billion to fraud in 2024, which represents...","date":"2 weeks ago","source":"Federal Trade Commission (.gov)","imageUrl":"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR5Bw4fovNk1XEEElT5Y6JAs56siR5QuVXvijYIBxwSyRuUC0Mk2lBN9ajnLg&s","position":4},{"title":"Fraud Prevention, Worker Protection, and Fighting Alleged Big Tech…","link":"https://www.kelleydrye.com/viewpoints/blogs/ad-law-access/fraud-prevention-worker-protection-and-fighting-alleged-big-tech-censorship-a-roundup-of-the-new-ftcs-agenda-after-the-first-50-days","snippet":"So far, the FTC has issued several business blog posts, formed two new task forces, initiated information-gathering efforts, and announced...","date":"2 days ago","source":"Kelley Drye & Warren LLP","imageUrl":"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQI-lKPOy-xmuU-2_r_MQBOdaxWAjxjp6poXzQbsxeAtj9XFpmXfCQoG0JcHg&s","position":5},{"title":"Resolve to Protect Yourself From Scams This Year","link":"https://blog.ssa.gov/resolve-to-protect-yourself-from-scams-this-new-year/","snippet":"In 2025, let's make protecting ourselves against scams a top priority. In this article, we are sharing best practices and resources to help you protect your...","date":"2 months ago","source":"Social Security Administration (.gov)","imageUrl":"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTd1lImtUzPABEkLzJpi2S6EgD1QwnukkEH6UeHmOZ6qPJcnRjEEjz5Ozk95g&s","position":6},{"title":"Analysing motivations of Ponzi victims in West Bengal, India","link":"https://www.nature.com/articles/s41599-025-04737-8","snippet":"The state of West Bengal, in Eastern India, has been affected by recurring Ponzi scams from the 1970s. In the last cluster of these scams,...","date":"1 day ago","source":"Nature","imageUrl":"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQiFIgFscr87S-Imj0nqDzThEMhxR8oPxv8-6DQFkiq_fbuPJhf4kkfv1tSwg&s","position":7},{"title":"How to Spot and Avoid Real Estate Scams in 2025","link":"https://www.kiplinger.com/real-estate/how-to-spot-and-avoid-real-estate-scams","snippet":"Real estate scams are on the rise, costing homebuyers and sellers millions. Learn how to identify wire fraud, fake listings and fraudulent...","date":"4 days ago","source":"Kiplinger","imageUrl":"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQTtLqsU_xnjA1oO7nK-_2OOebtr7k9RgGEYRHx_FMVHhTXGfuwDjX49P2Bvw&s","position":8},{"title":"A new way we’re helping others track frauds and scams online","link":"https://blog.google/technology/safety-security/a-new-way-were-helping-others-track-frauds-and-scams-online/","snippet":"Our Trust & Safety (T&S) teams at Google are responsible for tracking and fighting scams, and sharing our observations and the information we glean with others.","date":"4 months ago","source":"Google Blog","imageUrl":"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSSCbk78P9rRJA4G1zWm-3GS8r9ACKdGquwyor6dGkHDA&s","position":9},{"title":"Online Scams - Don't feed the phish!","link":"https://www.lethbridgepolice.ca/news/posts/online-scams-dont-feed-the-phish/","snippet":"It's the third week of Fraud Prevention Month and this week we're focusing on online scams – particularly “phishing.”.","date":"3 days ago","source":"Lethbridge Police Service","imageUrl":"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRJsU-E-sfWr5xoJdE9-3JdPMaV2wgP-eNqMk4KQgcTyN_Im9uPl4V9GKSTTw&s","position":10}],"credits":1}
curl --location --request GET 'https://zylalabs.com/api/2088/news+api/8710/search+news?q=USA&gl=us&num=50' --header 'Authorization: Bearer YOUR_API_KEY'
| 标头 | 描述 |
|---|---|
授权
|
[必需] 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。 |
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
“获取最新新闻”端点返回一组新闻文章,包括文章标题、作者、出版日期、摘要和指向完整文章的URL等详细信息 数据以标准化格式构建,通常为JSON或XML
响应数据中的关键字段包括“标题”、“链接”、“发布时间”、“描述”、“来源名称”和“语言”这些字段提供了每篇新闻文章的基本信息
响应数据以JSON或XML格式组织,顶层对象包含“状态”和“总结果”。“结果”数组包含单个文章,每篇文章以包含相关字段的对象表示
用户可以使用主题关键词、日期范围、来源过滤、语言偏好和排序选项等参数自定义他们的请求。这使得可以根据特定兴趣定制新闻检索
该端点提供有关各种主题的信息,包括政治、科技、体育和娱乐。它汇总来自多个来源的新闻,确保对时事的多样化报道
新闻 API 从广泛的可靠来源聚合文章,包括主要新闻机构、小众出版物和地区来源。这确保了全面和多样化的新闻报道
用户可以通过在他们的应用中显示文章标题和摘要、链接到完整文章,以及根据用户偏好过滤结果来利用返回的数据。这增强了用户与相关新闻内容的互动
如果API返回部分或空结果,用户应实现错误处理以管理这些情况。他们可以提供后备内容或通知用户没有文章符合他们的标准,从而确保顺畅的用户体验
服务级别:
100%
响应时间:
7,928ms
服务级别:
100%
响应时间:
872ms
服务级别:
100%
响应时间:
61ms
服务级别:
100%
响应时间:
2,612ms
服务级别:
100%
响应时间:
139ms
服务级别:
100%
响应时间:
284ms
服务级别:
100%
响应时间:
55ms
服务级别:
100%
响应时间:
1,408ms
服务级别:
100%
响应时间:
1,645ms
服务级别:
100%
响应时间:
9,182ms
服务级别:
100%
响应时间:
94ms
服务级别:
100%
响应时间:
5,965ms
服务级别:
100%
响应时间:
263ms
服务级别:
100%
响应时间:
1,142ms
服务级别:
100%
响应时间:
1,115ms
服务级别:
100%
响应时间:
1,191ms
服务级别:
100%
响应时间:
2,221ms
服务级别:
100%
响应时间:
14,197ms
服务级别:
100%
响应时间:
119ms
服务级别:
50%
响应时间:
464ms