{"id":24848693,"url":"https://github.com/lucasgianine/google-trending-now","last_synced_at":"2025-10-14T20:30:42.661Z","repository":{"id":216216891,"uuid":"740732212","full_name":"lucasgianine/google-trending-now","owner":"lucasgianine","description":"🔍 Get the most relevant and trending news with the Google Trends API","archived":false,"fork":false,"pushed_at":"2024-08-01T13:36:55.000Z","size":92,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T12:21:14.612Z","etag":null,"topics":["google-trends-api","trending-news"],"latest_commit_sha":null,"homepage":"https://serpapi.com/google-trends-api","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/lucasgianine.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":"2024-01-09T00:23:00.000Z","updated_at":"2024-08-19T14:51:42.000Z","dependencies_parsed_at":"2024-01-13T03:50:58.265Z","dependency_job_id":null,"html_url":"https://github.com/lucasgianine/google-trending-now","commit_stats":null,"previous_names":["lucasgianine/google-trending-now"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lucasgianine/google-trending-now","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasgianine%2Fgoogle-trending-now","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasgianine%2Fgoogle-trending-now/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasgianine%2Fgoogle-trending-now/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasgianine%2Fgoogle-trending-now/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucasgianine","download_url":"https://codeload.github.com/lucasgianine/google-trending-now/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasgianine%2Fgoogle-trending-now/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279020905,"owners_count":26086948,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"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":["google-trends-api","trending-news"],"created_at":"2025-01-31T12:16:46.739Z","updated_at":"2025-10-14T20:30:42.354Z","avatar_url":"https://github.com/lucasgianine.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🔍 Google Trends: Trending Now\nO objetivo desse projeto é trazer uma aplicação que salva no seu banco de dados as noticias mais relevantes disponibilizadas pela API Google Trends.\n## Tecnologia\nNome | Descrição | Função\n--- | --- | ---\n[TypeScript](https://www.typescriptlang.org/) | Linguagem | Backend\n[Node.js](https://nodejs.org/en) | Biblioteca | Backend\n[PostgreSQL](https://www.postgresql.org/) | Linguagem SQL | Database\n[Prisma](https://www.prisma.io/) | ORM | Database Querys\n[Google Trends](https://serpapi.com/google-trends-api) | API | Trendings Topics\n\n## Antes de começar\n1. Crie na pasta raíz uma variável de ambiente (`.env`)\n2. `SERPAPI_API_KEY=sua_chave_serpapi`\n3. Crie na pasta do Prisma uma variável de ambiente (`.env`)\n4. `DATABASE_URL='postgresql://username:password@localhost:port/postgres'`\n5. Rode os comandos abaixo\n\n## Comandos\nComando | Descrição\n--- | ---\n`docker compose up` | Executa o PostgreSQL usando Docker\n`npm install` | Instala todas as dependências do package-lock.json\n`npm run daily` | Executa o endpoind para criar notícias do trend diário no seu banco de dados\n`npm run month` | Executa o endpoind para criar notícias do trend mensal (daily) no seu banco de dados\n`npm run realtime` | Executa o endpoind para criar notícias do trend realtime no seu banco de dados\n\n# Requisições parametrizáveis\nÉ possível parâmetrizar as requisições que desejar enviando um json body para esses endpoints:\n### `http://localhost:3000/daily`\nParâmetros | Obrigatoriedade | Descrição\n--- | --- | ---\n`date` | Obrigatório | Passa a data do dia que deseja pegar as noticias relevantes (e.g. `20240108`)\n`geo` | Opcional | A localização geográfica de onde quer pegar as notícias (`US` como padrão)\n`hl` | Opcional | A linguagem que será retornada as notícias (e.g. `pt`)\n\n### `http://localhost:3000/realtime`\nParâmetros | Obrigatoriedade | Descrição\n--- | --- | ---\n`cat` | Obrigatório | Passa a categoria das notícias que deseja obter (`b` - Business, `e` - Entertainment, `m` - Health, `t` - Sci/Tech, `s` - Sport, `h` - Top Stories)\n`amount` | Obrigatório | Passa a quantidade de noticias que deseja obter (min: `1`, max: `20`)\n`geo` | Opcional | A localização geográfica de onde quer pegar as notícias (`US` como padrão)\n`hl` | Opcional | A linguagem que será retornada as notícias (e.g. `pt`)\n\n### `http://localhost:3000/month`\nParâmetros | Obrigatoriedade | Descrição\n--- | --- | ---\n`month` | Obrigatório | Passa o mês que deseja obter as notícias (e.g. `'11'`)\n`year` | Obrigatório | Passa o ano que deseja obter as notícias (e.g. `'2023'`)\n`geo` | Opcional | A localização geográfica de onde quer pegar as notícias (`US` como padrão)\n`hl` | Opcional | A linguagem que será retornada as notícias (e.g. `pt`)\n\n### `http://localhost:3000/trends`\nRecebe todas as trends diárias que contenham links iguais.\n\n## Saiba mais em: https://serpapi.com/google-trends-trending-now\n\n## About repo\n![GitHub last commit](https://img.shields.io/github/last-commit/lucasgianine/google-trending-now)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasgianine%2Fgoogle-trending-now","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucasgianine%2Fgoogle-trending-now","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasgianine%2Fgoogle-trending-now/lists"}