文章文本提取器 API

文章文本提取API提供快速便捷的从新闻和博客文章中提取干净文本和结构化数据的功能去除广告链接和其他不需要的内容专注于文章的主要内容使其非常适合自然语言处理和数据分析
通过 MCP 从您的 AI 代理使用此 API
支持 OpenClaw、Claude Code/Desktop、Cursor、Windsurf、Cline 以及任何兼容 MCP 的 AI 客户端。
文档和设置
通过封装此 MCP 创建技能: https://mcp.zylalabs.com/mcp?apikey=YOUR_ZYLA_API_KEY

关于API: 

文章文本提取API是一个强大的工具,用于从新闻和博客文章中提取干净的文本和其他结构化数据。使用此API,您可以快速轻松地去除广告、链接和其他不需要的内容,专注于文章的主要内容。

该API使用先进的自然语言处理(NLP)技术从文章中提取相关信息,包括文章本身的文本、作者、日期和其他元数据。然后以结构化格式返回这些信息,使其易于用于数据分析和NLP应用。

该API旨在用户友好且易于集成,因此您可以立即开始使用。无论您是希望对新闻文章进行情感分析的数据分析师,还是希望构建自定义新闻聚合器的开发者,文章文本提取API都能满足您的所有需求。

凭借其快速高效的提取过程,您可以快速处理大量文章并提取所需信息。那么,为什么还要等待呢?今天就注册文章文本提取API,开始充分利用您的新闻和博客文章。从干净文本到结构化数据,这个API都能为您提供支持。

 

该API接收什么以及您的API提供什么(输入/输出)?

传递您希望提取其内容的文章的URL. 

 

该API最常用的案例是什么?

  1. 新闻聚合:该API可用于提取新闻文章的主要文本和结构化数据,以构建自定义新闻聚合器。

  2. 情感分析:该API可以从文章中提取干净的文本,以进行情感分析并确定新闻文章中表达的总体情感。

  3. 内容推荐:该API可以提取文章文本和元数据,以为用户创建基于内容的推荐系统。

  4. 数据分析:该API可以从文章中提取结构化数据,如作者、日期和关键词,以对新闻和博客文章进行数据分析。

  5. 文本摘要:该API可以从文章中提取主要文本,以创建文本摘要,使用户更容易快速理解文章内容。



您的计划是否有任何限制?

除了API调用的数量外,没有其他限制

API 文档

端点


文章提取端点


                                                                            
GET https://zylalabs.com/api/1334/article+text+extractor+api/1114/text+extractor
                                                                            
                                                                        

文本提取器 - 端点功能

对象 描述
url [必需]
js 可选 indicates whether to execute JavaScript or not.
js_timeout 可选 when JavaScript is enabled, indicates how many seconds the API should wait for the JS interpreter before starting the extraction
media 可选 extract media
测试端点

API 示例响应

       
                                                                                                        
                                                                                                                                                                                                                                                                                                                                        {"article":{"text":"Packing their lives up and heading off on a lengthy road trip was something Nina and Kai Schakat, both from Germany, had envisioned doing together during their retirement.\nBut after the death of Nina\u2019s father, and the impact of the global Covid-19 pandemic, the couple, who have two children, Ben, 11 and Leni, 10, decided that they couldn\u2019t wait any longer.\n\u201cWe were just wondering why everybody waits until retiring,\u201d Nina tells CNN Travel. \u201cAnd we challenged ourselves to think if such a trip is possible to enjoy with the kids when they are in the right age to understand the journey and still keen to travel with us parents.\u201d\nWhen they began researching a potential trip around Asia, the Schakats, who have lived in Dubai for around 15 years, quickly realized that they\u2019d struggle to afford the accommodation costs and flights for four people and started looking into alternative modes of transportation.\nAfter noting that a van would perhaps be too small, as their children are \u201ca little bit on the taller side,\u201d they decided on a bus.\nThe Schakats then bought an old bus by an Indian vehicle manufacturer named Ashok Leyland for $6,000 and set about converting it into a fully equipped home on wheels.\n\nBUS TOUR\nThe Schakats spent $40,000 converting this bus into a fully-equipped home on wheels to travel in.  8feet6wheels Over a period of around nine months, they kitted out the vehicle, which measures 12 meters long and 2.4 meters wide, with a dining and lounge area, two bunk beds, a shower room and a master suite. The bus was also fitted with solar panels and a large water tank.\nFinally, the couple brought in an artist friend to spray paint a colorful mural onto the exterior in order to give it a more fun and child friendly feel. The total cost of the conversion came to around $40,000, according to the Schakats.\n\u201cWe have a fully equipped kitchen with a big household fridge, freezer and washing machine.\u201d explains Kai, who has worked as a truck driver for several years, and managed to secure his bus driving license before the trip.\n\u201cWe have everything [we need]. We can spend one week somewhere without needing water or power, and we have enough food supplies [to last us].\u201d\nBefore completely committing to the trip, the family took a test drive from Dubai to Oman both \u201cto see if they liked it,\u201d as well as check that all of the new fittings and fixtures on the bus were running smoothly.\n\u201cThere were a few hiccups that we had to resolve,\u201d admits Nina.\nOnce they were satisfied, the Schakats threw themselves into preparing for the trip and getting things in order so that they could essentially put their life in Dubai on hold for 13 months.\n\u201cThat was exhausting,\u201d admits Nina, adding that both she and Kai worked up until the day before they left. \u201cThere were thousands of things to take care of.\u201d\nAfter shipping the bus to Iran last August, the Schakats traveled to the country by ferry to pick up their vehicle, got on board and set off on the journey they\u2019d been dreaming about for years.\nAlthough they had initially planned to drive from Iran to Pakistan, the heavy floods which hit parts of Pakistan from late summer last year meant abandoning that route.\nInstead, they opted to drive to Turkey, spending a few weeks driving up to the central region of Cappadocia, famous for its \u201cfairy chimney\u201d landscapes, before making their way back to Iran and attempting to drive across to Pakistan once again.\nUnfortunately, the political situation in Iran had altered significantly during their time in Turkey and their second visit proved to be a very different experience.\nThe death of a 22-year-old  Kurdish Iranian woman  had led to protests, and authorities\u2019 were attempting to contain the spread of demonstrations through internet blackouts.\nThis meant that mobile networks were largely shut down and access to Instagram and WhatsApp, which the family relied on to keep friends and family updated on their whereabouts, had been restricted.\n\u201cWe drove through Iran very quickly, because we didn\u2019t have any internet,\u201d explains Nina. \u201cWe were always usually in touch with family and friends [before]. But then suddenly, we were completely out of the loop and nobody knew where we were.\u201d\n\nDEALING WITH SETBACKS\nKai, Ben, Leni and Nina at the Bagh-e Fin Garden in Iran.  8feet6wheels They had no choice but to remain in the country for around two weeks, as their visas to enter Pakistan could not be processed, and borders were shut due to the political situation.\nAfter around 10 days of driving across Iran while waiting for their visas to be processed, they\u2019d pretty much given up hope and were making plans to ship their bus back to Dubai.\nHowever, just in time, the Schakats managed to secure their visas for Pakistan in mid-October. They were provided with an armed escort during their drive from Pakistan to India, which took around six days.\nSince leaving Pakistan, the Schakats have been traveling across India, \u201ctackling the country counter clockwise.\u201d\nNina admits that it\u2019s taken their children Ben and Leni, who she describes as \u201cvery social,\u201d a little while to adapt to life on the road.\n\u201cSuddenly, you\u2019re in a bus with four people, two nearly teenagers, 24\/7,\u201d she says. \u201cYou learn how far you can challenge the kids.\u201d\nShe admits that they\u2019ve all found having to keep up with online schooling while traveling difficult, particularly the children, who miss interacting with school friends.\n\u201cYou get distracted all the time because you want to explore the area, and then you need to sit with a kid for a couple of hours a day to do the work, because there\u2019s deadlines,\u201d she adds.\nAnd while the Schakats have been enjoying each others company for the most part, they can\u2019t help but miss being around other people.\n\u201cWe experience everything together,\u201d says Kai. \u201cThere\u2019s no new stories to tell really. But we still have a lot to talk about.\u201d\nThankfully, the family\u2019s eye-catching bus has proved to be quite the conversation starter, and has led them to many new people.\n\u201cIt\u2019s helped us a lot, \u201cexplains Nina. \u201cIt opens doors in terms of communication and connecting to people. It\u2019s very child friendly. Everybody can see that we\u2019re traveling with children.\u201d\nOne of the standout moments of their trip so far has been spending Christmas on a \u201clonely beach\u201d located between Mumbai and Goa with five other overlander families.\nMeanwhile, Ben and Leni were bowled over by Hampi, an ancient village in the south Indian state of Karnataka.\n\u201cI think it\u2019s their favorite [place] so far,\u201d says Nina. \u201cIt\u2019s like something out of an Indiana Jones movie, with all the temples, monkeys and the rocks from the formations of the landscape. It\u2019s just amazing.\u201d\nOf course, there\u2019s no getting away from the fact that driving a huge bus can undoubtedly lead to issues at times, and the family have had their fair share of setbacks.\n\u201cEveryday you have one heart attack,\u201d says Nina, before describing some of the close calls they\u2019ve had with motorbikes while driving through busy roads.\n\u201cMy husband is a superstar in bus driving. The amount of hours he\u2019s spent behind the wheel is pretty crazy. I think he\u2019s got a couple of gray hairs on the trip.\u201d\n\nSLOWING DOWN\nAt the top of the Zigana Pass in northeastern Turkey.  8feet6wheels Although Nina had hoped to be able to take on some of the driving during the trip, she says she finds the gear stick difficult to maneuver, as well as driving on the left, which is the law in India, in a right-hand-drive bus.\n\u201cI tried, but I think it\u2019s probably better that I don\u2019t [drive],\u201d she says.\nIn order to take the pressure off Kai, who got his truck license back in 1999, the family are now trying to take shorter trips, which ultimately means that they are spending longer than they planned in each new destination. They\u2019ve also had to change their route a few times for various reasons.\nNina explains that they \u201clost one and a half months\u201d due to the extended time they spent in Iran and that unplanned detour to Turkey.\nWhile they were hoping to visit Myanmar at some stage, Nina says they\u2019ve accepted that the border between India and Myanmar, which has been closed for months, is unlikely to reopen any time soon.\n\u201cWe should have traveled much faster if we wanted to pursue Southeast Asia,\u201d she says. \u201cBut we knew at a certain point that Myanmar was a \u2018no\u2019.\n\u201cAnd then the shipping cost for the bus would have been so expensive. We simply couldn\u2019t have afforded it.\u201d\nThey recently had to let Ben and Leni know they won\u2019t be able to make two of the destinations that were top of their bucket lists.\n\u201cMy daughter wanted to go to South Korea and my son to Japan,\u201d explains Nina. \u201cI\u2019ve promised them that we will do it on a holiday separately, but we can\u2019t manage it kilometer wise and entering country wise. That boat has left the harbor.\u201d\nWhile the list of countries they end up visiting over the next few months is likely to be shorter than they\u2019d initially hoped, Nina feels that slowly down and spending more time in each place has been more rewarding.\nCurrently in Kochi, they plan to drive towards Chennai, before visiting Cambodia and Laos and then returning to India.\nFrom here, they aim to drive towards Jaipur, Uttar Pradesh, where they\u2019d enter Nepal and return via New Delhi or Agrar to Pakistan.\nAlthough they\u2019re due to return to Dubai this summer, the Schakats are already thinking about their next big trip, and hope to be able to drive around Nort"},"_note":"Response truncated for documentation purposes"}
                                                                                                                                                                                                                    
                                                                                                    

文本提取器 - 代码片段


curl --location --request GET 'https://zylalabs.com/api/1334/article+text+extractor+api/1114/text+extractor?url=https://edition.cnn.com/travel/article/family-driving-asia-bus/index.html&js_timeout=30&media=True' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API 访问密钥和身份验证

注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 文章文本提取器 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
标头
标头 描述
授权 [必需] 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。

简单透明的定价

无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。

🚀 企业版

起价
$ 10,000/年


  • 自定义数量
  • 自定义速率限制
  • 专业客户支持
  • 实时 API 监控

客户喜爱的功能

  • ✔︎ 仅支付成功请求
  • ✔︎ 7 天免费试用
  • ✔︎ 多语言支持
  • ✔︎ 一个 API 密钥,所有 API。
  • ✔︎ 直观的仪表板
  • ✔︎ 全面的错误处理
  • ✔︎ 开发者友好的文档
  • ✔︎ Postman 集成
  • ✔︎ 安全的 HTTPS 连接
  • ✔︎ 可靠的正常运行时间

文章文本提取器 API FAQs

该API返回从文章中提取的干净文本,以及结构化的元数据,如作者、发布时间和关键词。这使用户可以专注于主要内容,而不受广告或链接的干扰

响应中的关键字段包括“文本”作为主文章内容,“作者”作为文章的作者,“日期”作为发布时间,以及“关键词”作为相关主题。这种结构化格式有助于数据分析

响应数据以JSON格式组织,其中包含一个“article”对象,包含“text”、“author”和“date”等字段。该结构使得在应用程序中解析和利用数据变得简单

API提供的信息包括主要文章文本作者详细信息发布日期和关键词这个综合数据集支持多种应用包括情感分析和内容推荐

该端点接受的主要参数是要提取内容的文章的“URL” 用户应确保URL指向有效的文章以获得准确的结果

通过先进的自然语言处理技术保持数据的准确性,过滤掉不相关的内容。该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 日之前提交请求,您的付款将在此时间范围内处理。


相关 API


您可能还喜欢