RSS / Atom feeds

Fetch any RSS, Atom, RDF or JSON feed URL and get it back as one normalized object, whatever the format.

Embed
Preview of the card
<a href="https://scrapelyserp.com/docs/rss"><img src="https://scrapelyserp.com/docs/_api/public/orgs/affc5b0f-d3c2-423a-8143-9d10db5736ae/spaces/981e6275-da3f-446c-82de-889f59c83b6f/pages/ed384880-a4a9-4489-b48b-f939503ddc2e/social-card.svg?v=3e7ae33eec8b" alt="RSS / Atom feeds" width="600" height="315"></a>

Fetch any RSS, Atom, RDF or JSON feed URL and get it back as one normalized object, whatever the format.

At a glance

One GET endpoint, /v1/structured/rss. Give it any feed url and it fetches and parses the feed into one shape — { feed, items[] } — regardless of format. It answers { endpoint, url, credits, duration_ms, data }, and a feed it could not read is 502 TARGET_FAILED and costs nothing.

Four formats, one shape

RSS 2.0, RSS 1.0 / RDF, Atom and JSON Feed are detected automatically (by content type and root element) and mapped to the same fields, so feeds from different sites merge without per-site code.

Endpoint

What

Typical

GET /v1/structured/rss

Any feed URL, normalized to { feed, items[] }, up to 200 items

about 1 million items per credit (a content-heavy feed costs more)

curl -G "https://api.scrapelyserp.com/v1/structured/rss" \
  -H "Authorization: Bearer $SCRAPELY_API_KEY" \
  --data-urlencode "url=https://www.nasa.gov/feed/" \
  -d limit=20

The feed

Parameter

Type

Default

Description

url (required)

string

—

The feed URL (RSS, Atom, RDF or JSON Feed), e.g. https://www.nasa.gov/feed/. Must be a public http(s) URL.

limit

integer

50

Most items to return, 1–200 (newest first, as the feed orders them).

The feed object carries title, description, link (the site), feed_url, language, updated, generator, image, the detected format (rss, rdf, atom or json) and item_count.

Each item has id (its <guid> / Atom <id> / JSON Feed id, else the link), title, link, published (ISO 8601, with published_raw kept exactly as the feed wrote it), updated, summary, content_html (the full body), author, categories, enclosures (each { url, type, length }) and image. Relative links are resolved against the feed’s site, CDATA and HTML entities are decoded, and namespaced tags (dc:, content:, media:) are read whatever prefix the feed uses.

The url must be a public http(s) URL; a private, local or non-http(s) URL is a free 400. A URL that is not a recognised feed is a 404 NOT_FOUND.

Full reference → GET /v1/structured/rss

Updated