five

Feed Reader

收藏
RapidAPI2026-01-17 更新2024-05-21 收录
下载链接:
https://rapidapi.com/pwshub-pwshub-default/api/feed-reader1
下载链接
链接失效反馈
官方服务:
资源简介:
Read and normalize data from RSS/ATOM/JSON feed URL
创建时间:
2026-01-17
原始信息汇总

Feed Reader API 数据集概述

基本信息

  • API名称: Feed Reader
  • 类别: Data
  • 提供商: PWSHub
  • 订阅人数: 214
  • API地址: https://rapidapi.com/pwshub-pwshub-default/api/feed-reader1

功能描述

  • 主要功能: 将RSS、ATOM、RDF和JSON Feed转换为干净、规范化的JSON格式。
  • 优势: 去除不必要的数据,减少下载大小,简化新闻源集成。

关键特性

  • 广泛格式支持: 支持RSS、ATOM、RDF和JSON Feed格式。
  • 规范化输出: 提供规范化数据,便于直接使用。

认证方式

  • 必需头部:
    • X-RapidAPI-Key: 用户注册后获得的唯一密钥。
    • X-RapidAPI-Host: 设置为feed-reader1.p.rapidapi.com

请求参数

  • 必需参数:
    • url: 提供要提取数据的RSS源URL。
  • 可选参数:
    • normalization: 设置为yesno,默认为yes
    • iso_date_format: 设置为yesno,默认为yes

示例请求

Node.js 服务器请求

javascript import querystring from node:querystring

export async function extract (url) { try { const queryString = querystring.stringify({ url, normalize: yes, iso_date_format: yes, })

const target = `https://feed-reader1.p.rapidapi.com/feed/parse?${queryString}`

const res = await fetch(target, {
  headers: {
    X-RapidAPI-Key: YOUR_OWN_RAPID_API_KEY,
    X-RapidAPI-Host: feed-reader1.p.rapidapi.com
  },
})
const json = await res.json()
return json

} catch (err) { console.error(err) return null } }

const data = await extract(https://github.blog/feed/) console.log(data)

使用axios的替代方案

javascript import axios from axios

const options = { method: GET, url: https://feed-reader1.p.rapidapi.com/feed/parse, params: { url: https://github.blog/feed/, normalize: yes, iso_date_format: yes, }, headers: { X-RapidAPI-Key: YOUR_OWN_RAPID_API_KEY, X-RapidAPI-Host: feed-reader1.p.rapidapi.com } }

try { const response = await axios.request(options); console.log(response.data); } catch (error) { console.error(error); }

响应示例

成功响应

json { "error": 0, "message": "Feed extraction success", "data": { "title": "The GitHub Blog", "link": "https://github.blog/", "description": "Updates, ideas, and inspiration from GitHub to help developers build and design software.", "language": "en-US", "generator": "https://wordpress.org/?v=6.6.1", "published": "2024-09-03T15:42:07.000Z", "entries": [ { "id": "https://github.blog/?p=79619", "title": "How to build an open source metrics dashboard", "link": "https://github.blog/open-source/maintainers/how-to-build-an-open-source-metrics-dashboard/", "published": "2024-09-03T16:00:22.000Z", "description": "How GitHub volunteers built an open source metrics dashboard for the World Health Organization and some best practices they picked up along the way. The post How to build an open source metrics dashboard appeared first on The GitHub Blog." } ] } }

错误响应

json { "error": 1, "message": "error description", "data": null }

订阅计划

  • BASIC: $0.00 / 月
  • PRO: $3.00 / 月
  • ULTRA: $8.00 / 月
  • MEGA: $19.00 / 月
5,000+
优质数据集
54 个
任务类型
进入经典数据集
二维码
社区交流群

面向社区/商业的数据集话题

二维码
科研交流群

面向高校/科研机构的开源数据集话题

数据驱动未来

携手共赢发展

商业合作