{"id":26287740,"url":"https://github.com/siddydutta/youtube-search","last_synced_at":"2026-05-01T20:31:12.941Z","repository":{"id":144119848,"uuid":"579621838","full_name":"siddydutta/YouTube-Search","owner":"siddydutta","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-18T12:47:38.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-02T00:57:18.999Z","etag":null,"topics":["flask","postgresql","youtube-api-v3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":false,"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/siddydutta.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2022-12-18T10:13:59.000Z","updated_at":"2022-12-18T12:47:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"d19e598d-710d-4060-82a9-19088e4adc2f","html_url":"https://github.com/siddydutta/YouTube-Search","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/siddydutta/YouTube-Search","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siddydutta%2FYouTube-Search","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siddydutta%2FYouTube-Search/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siddydutta%2FYouTube-Search/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siddydutta%2FYouTube-Search/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/siddydutta","download_url":"https://codeload.github.com/siddydutta/YouTube-Search/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siddydutta%2FYouTube-Search/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32512662,"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":["flask","postgresql","youtube-api-v3"],"created_at":"2025-03-14T21:52:13.744Z","updated_at":"2026-05-01T20:31:12.454Z","avatar_url":"https://github.com/siddydutta.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Project Goal\n\nTo make an API to fetch the latest videos sorted in reverse chronological order of their publishing date-time from YouTube for a given tag/search query in a paginated response.\n\n\n# Basic Requirements\n\n- Server should call the YouTube API continuously in background (async) with some interval (say 10 seconds) for fetching the latest videos for a predefined search query and should store the data of videos (specifically these fields - Video title, description, publishing datetime, thumbnails URLs and any other fields you require) in a database with proper indexes.\n- A GET API which returns the stored video data in a paginated response sorted in descending order of published datetime.\n- A basic search API to search the stored videos using their title and description.\n- Dockerize the project.\n- It should be scalable and optimised.\n\n\n# Running the Project\n\n1. Clone the repository.\n    ```commandline\n    git clone https://github.com/siddydutta/YouTube-Search.git\n    ```\n\n\n2. Add environment variables.\n    ```commandline\n    cd YouTube-Search/\n    touch .env\n    ```\n    \u003cdetails\u003e\n        \u003csummary\u003eSample variables.\u003c/summary\u003e\n   \n   ```properties\n    DATABASE_URL=postgresql://postgres:root@db/youtube\n    DEVELOPER_KEY=yOuTubeApIKey\n    SEARCH_QUERY=F1\n    REFRESH_ENABLED=true\n    REFRESH_INTERVAL=24\n    POSTGRES_USER=postgres\n    POSTGRES_PASSWORD=root\n    POSTGRES_DB=youtube\n    ```\n   \u003c/details\u003e\n\n\n3. Start application.\n   ```commandline\n   docker-compose up --build\n   ```\n\n\n# API Usage\n\n- Get all videos.\n   ```shell\n   curl -XGET 'http://127.0.0.1/videos?page=1\u0026limit=10'\n   ```\n- Search videos.\n   ```shell\n   curl -XGET 'http://127.0.0.1/videos/search?query=f1'\n   ```\n- Refresh Database Manually\n   ```shell\n   curl -XGET 'http://127.0.0.1/refresh'\n   ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiddydutta%2Fyoutube-search","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiddydutta%2Fyoutube-search","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiddydutta%2Fyoutube-search/lists"}