{"id":28294991,"url":"https://github.com/nazneenprojects/news_api_rate_limiting","last_synced_at":"2026-05-01T18:32:03.134Z","repository":{"id":291755018,"uuid":"978601853","full_name":"nazneenprojects/news_api_rate_limiting","owner":"nazneenprojects","description":"This project focuses on implementation of News API Rate limiting usigng FastAPI, Asyncio, SQLModel","archived":false,"fork":false,"pushed_at":"2025-05-08T10:42:48.000Z","size":912,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-14T05:35:05.457Z","etag":null,"topics":["asyncio","fastapi","rate-limiting","sqlmodel"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nazneenprojects.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2025-05-06T08:34:56.000Z","updated_at":"2025-05-08T10:42:51.000Z","dependencies_parsed_at":"2025-06-16T00:16:40.520Z","dependency_job_id":null,"html_url":"https://github.com/nazneenprojects/news_api_rate_limiting","commit_stats":null,"previous_names":["nazneenprojects/news_api_rate_limiting"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nazneenprojects/news_api_rate_limiting","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nazneenprojects%2Fnews_api_rate_limiting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nazneenprojects%2Fnews_api_rate_limiting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nazneenprojects%2Fnews_api_rate_limiting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nazneenprojects%2Fnews_api_rate_limiting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nazneenprojects","download_url":"https://codeload.github.com/nazneenprojects/news_api_rate_limiting/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nazneenprojects%2Fnews_api_rate_limiting/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32508900,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["asyncio","fastapi","rate-limiting","sqlmodel"],"created_at":"2025-05-22T11:18:50.484Z","updated_at":"2026-05-01T18:32:03.112Z","avatar_url":"https://github.com/nazneenprojects.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# news_api_rate_limiting\nThis project focuses on implementation of News API Rate limiting usigng FastAPI, Asyncio, SQLModel\n\n\n##  Project Summary: Async News Fetcher with Rate Limiting\n\n### Features:\n\n- Fetch 20 news articles from NewsAPI.org (external API) and store them into PostgreSQL.\n\n- Serve local news data via FastAPI, with a rate limit of 5 fetches per day per IP.\n\n### Tech Stack:\n\n| Component                  | Tool                                        |\n| -------------------------- | ------------------------------------------- |\n| API server                 | FastAPI                                     |\n| Async support              | `httpx`, `\n`, `asyncio`               |\n| Database                   | PostgreSQL (accessed via `asyncpg`)         |\n| ORM (optional but helpful) | `SQLModel` or `SQLAlchemy` (async mode)     |\n| Rate Limiting              | `slowapi` (Flask-style limiter for FastAPI) |\n| Environment variables      | `python-dotenv`                             |\n\n### Run\nuvicorn app.main:app --reload\n\n\n### Testing\ncurl http://localhost:8000/news\n\n\n### Future Improvements\nAdd user registration/auth with rate limit per user instead of IP\n\nStore full request logs and timestamps\n\nAdd endpoint to trigger news fetch manually (POST /fetch-news)\n\nAdd pagination or search filters\n\nBug Fix : duplication issue\n\n\n### Output snaps\n\n![img_1.png](img_1.png)\n\n![img_2.png](img_2.png)\n\n\n![img.png](img.png)\n\n![img_3.png](img_3.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnazneenprojects%2Fnews_api_rate_limiting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnazneenprojects%2Fnews_api_rate_limiting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnazneenprojects%2Fnews_api_rate_limiting/lists"}