{"id":18248878,"url":"https://github.com/sametcn99/reddit-rss-api","last_synced_at":"2026-04-30T09:38:00.320Z","repository":{"id":240135186,"uuid":"801723909","full_name":"sametcn99/reddit-rss-api","owner":"sametcn99","description":"This project appears to be a Deno-based server application that serves as an API for fetching Reddit posts from rss feed. It provides several endpoints to fetch posts from one or more subreddits.","archived":false,"fork":false,"pushed_at":"2026-01-31T23:52:42.000Z","size":103,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-01T10:55:20.620Z","etag":null,"topics":["api","deno","reddit","reddit-api","reddit-rss","rss","rss-feed"],"latest_commit_sha":null,"homepage":"https://reddit-rss-api.deno.dev","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sametcn99.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"sametcn99","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":null,"custom":null}},"created_at":"2024-05-16T19:41:15.000Z","updated_at":"2026-01-31T23:52:45.000Z","dependencies_parsed_at":"2024-05-16T23:30:16.499Z","dependency_job_id":"03229ad1-eb87-4f41-b4ba-d357123cbb16","html_url":"https://github.com/sametcn99/reddit-rss-api","commit_stats":null,"previous_names":["sametcn99/reddit-rss-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sametcn99/reddit-rss-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sametcn99%2Freddit-rss-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sametcn99%2Freddit-rss-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sametcn99%2Freddit-rss-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sametcn99%2Freddit-rss-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sametcn99","download_url":"https://codeload.github.com/sametcn99/reddit-rss-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sametcn99%2Freddit-rss-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32460781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","deno","reddit","reddit-api","reddit-rss","rss","rss-feed"],"created_at":"2024-11-05T09:38:35.119Z","updated_at":"2026-04-30T09:38:00.314Z","avatar_url":"https://github.com/sametcn99.png","language":"TypeScript","funding_links":["https://github.com/sponsors/sametcn99"],"categories":[],"sub_categories":[],"readme":"# Reddit RSS API\n\nA Deno-powered HTTP service that turns Reddit subreddit RSS feeds into structured JSON, complete with filtering, sorting, merging, and random selection utilities.\n\n## Resources\n\n- [GitHub Repository](https://github.com/sametcn99/reddit-rss-api)\n- [Live API \u0026 Documentation](https://reddit-rss-api.deno.dev)\n- [GitHub Issues](https://github.com/sametcn99/reddit-rss-api/issues)\n\n## Table of Contents\n\n- [Features](#features)\n- [API Overview](#api-overview)\n- [Path Parameters](#path-parameters)\n- [Query Parameters](#query-parameters)\n- [Usage Examples](#usage-examples)\n- [Error Handling](#error-handling)\n- [Development](#development)\n  - [Quick Start](#quick-start)\n  - [Helpful Tasks](#helpful-tasks)\n  - [Testing](#testing)\n\n## Features\n\n- Merge multiple subreddits by delegating individual RSS requests and consolidating the payload for richer result sets.\n- Filter feed items to media-rich posts (images or videos) or fetch a random post from any combination of subreddits.\n- Sort posts by publish date (`asc`, `desc`) or shuffle them (`mixed`).\n- Limit response size with `count` while retaining the original `itemsLength` for reference.\n- Rewrite all Reddit links to `old.reddit.com` on demand for legacy views.\n- CORS-friendly JSON responses served by `[Deno.serve](https://deno.land/api?s=Deno.serve)` with a zero-dependency runtime.\n\n## API Overview\n\n- **Base URL**: `https://reddit-rss-api.deno.dev`\n- **Root (`GET /`)**: provides basic API information and usage instructions.\n- **Feed (`GET /r/{subreddits}`)**: fetches RSS-derived JSON for one or more subreddits.\n\n### Path Parameters\n\n- `subreddits` – one or more subreddit names separated by `+` (URL-encoded space). Example: `deno+typescript`.\n\n## Query Parameters\n\n- **`option`** _(string)_\n\n  - **Values:** `random`\n  - **Default:** `null`\n  - **Description:** Returns a single random item from the processed feed.\n\n- **`sort`** _(string)_\n\n  - **Values:** `asc`, `desc`, `mixed`\n  - **Default:** `asc`\n  - **Description:** Orders items by publish date or shuffles them (`mixed`). Applied before `count`.\n\n- **`filter`** _(string)_\n\n  - **Values:** `image`, `video`, `image+video`\n  - **Default:** `null`\n  - **Description:** Keeps only media-rich posts. Combine options with `+` (decoded as space).\n\n- **`merge`** _(boolean)_\n\n  - **Values:** `true`, `false`\n  - **Default:** `false`\n  - **Description:** When `true`, the API fetches each subreddit individually and merges the results.\n\n- **`count`** _(number)_\n\n  - **Values:** `\u003e= 1`\n  - **Default:** `null`\n  - **Description:** Truncates the response to the first _n_ items after all other operations.\n\n- **`old_reddit`** _(boolean)_\n\n  - **Values:** `true`, `false`\n  - **Default:** `false`\n  - **Description:** Rewrites feed and item links to use `old.reddit.com`.\n\n\u003e Combine parameters to compose custom feeds. Validation errors produce informative `400 Bad Request` messages.\n\u003e When `option=random` is used, the response is a single `ExtractedItem` object instead of the full feed payload.\n\n## Usage Examples\n\n### Fetch the Latest Posts from a Single Subreddit\n\n```bash\ncurl \"https://reddit-rss-api.deno.dev/r/deno\"\n```\n\n### Merge Two Subreddits and Return Only Image Posts\n\n```bash\ncurl \"https://reddit-rss-api.deno.dev/r/deno+typescript?merge=true\u0026filter=image\"\n```\n\n### Get a Random Video Post with Old Reddit Links\n\n```bash\ncurl \"https://reddit-rss-api.deno.dev/r/memes+videos?filter=video\u0026option=random\u0026old_reddit=true\"\n```\n\n### Limit the Response to Five Items, Sorted Descending\n\n```bash\ncurl \"https://reddit-rss-api.deno.dev/r/pics?sort=desc\u0026count=5\"\n```\n\n## Error Handling\n\n- `400 Bad Request` for invalid paths, malformed query parameters, or RSS parsing failures.\n- `405 Method Not Allowed` for non-`GET` requests.\n- Error bodies include the message where available to simplify debugging.\n\n## Development\n\nTo contribute to the project, follow these steps:\n\n1. Fork the repository.\n2. Create a new branch for your feature or bug fix.\n3. Make your changes and ensure all tests pass.\n4. Submit a pull request describing your changes.\n\n### Quick Start\n\n1. Install [Deno](https://deno.land/manual/getting_started/installation) (v1.41 or newer recommended).\n2. Clone the repository and switch into the project directory.\n3. Run the server:\n\n   ```bash\n   deno task start\n   ```\n\n   The service listens on `http://localhost:8000` by default.\n\n### Helpful Tasks\n\n- `deno task start` – run the API once with full permissions.\n- `deno task dev` – watch mode for local development.\n- `deno task test` – execute the unit test suite under `src/tests/`.\n- `deno task fmt` – format codebase.\n\n### Testing\n\nRun the full suite with:\n\n```bash\ndeno task test\n```\n\n\u003e Tests rely on live Reddit RSS endpoints; ensure you have network access when executing them.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsametcn99%2Freddit-rss-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsametcn99%2Freddit-rss-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsametcn99%2Freddit-rss-api/lists"}