{"id":21492111,"url":"https://github.com/colddsam/trendingproducts","last_synced_at":"2026-02-28T01:42:49.205Z","repository":{"id":246613481,"uuid":"821644828","full_name":"colddsam/trendingProducts","owner":"colddsam","description":"This is a npm package for use in searching trending results from google live data","archived":false,"fork":false,"pushed_at":"2024-06-29T05:36:02.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-03T18:41:41.048Z","etag":null,"topics":["analytics","google","googletrends","javascript","javascript-library","js","node","nodemodules","npm","npm-package"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/trending-products","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/colddsam.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}},"created_at":"2024-06-29T03:35:00.000Z","updated_at":"2024-06-29T05:47:41.000Z","dependencies_parsed_at":"2024-06-29T04:39:20.024Z","dependency_job_id":"e33aa350-aa8f-4c21-a47b-92c29c9e323c","html_url":"https://github.com/colddsam/trendingProducts","commit_stats":null,"previous_names":["colddsam/trendingproducts"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/colddsam/trendingProducts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colddsam%2FtrendingProducts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colddsam%2FtrendingProducts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colddsam%2FtrendingProducts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colddsam%2FtrendingProducts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/colddsam","download_url":"https://codeload.github.com/colddsam/trendingProducts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colddsam%2FtrendingProducts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29922277,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T19:37:42.220Z","status":"ssl_error","status_checked_at":"2026-02-27T19:37:41.463Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["analytics","google","googletrends","javascript","javascript-library","js","node","nodemodules","npm","npm-package"],"created_at":"2024-11-23T15:22:27.953Z","updated_at":"2026-02-28T01:42:49.169Z","avatar_url":"https://github.com/colddsam.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Trending Products Node Module\n\nThis Node.js module allows you to fetch trending products from Amazon and related queries using Google Trends. It provides functions to interact with the Amazon Real-Time Data API and the Google Trends API.\n\n## Installation\n\n1. Clone the repository or download the source code.\n2. Navigate to the project directory.\n3. Install the dependencies using npm:\n\n```bash\nnpm install axios dotenv google-trends-api\n```\n\n## Usage\n\n### Configuration\n\n1. Create a `.env` file in the root directory of your project.\n2. Add your RapidAPI key to the `.env` file:\n\n```\nRAPIDAPI_KEY=your_rapidapi_key\n```\n\n### Functions\n\n#### `getTrendingProducts`\n\nFetches trending products from Amazon based on a query.\n\n```javascript\nconst { getTrendingProducts } = require('./path_to_your_module');\n\nconst query = 'laptop';\nconst key = process.env.RAPIDAPI_KEY;\n\ngetTrendingProducts({ query, key });\n```\n\n#### `googleTrendsFunc`\n\nFetches related queries from Google Trends based on a keyword.\n\n```javascript\nconst { googleTrendsFunc } = require('./path_to_your_module');\n\nconst query = 'laptop';\n\ngoogleTrendsFunc({ query }).then((relatedQuery) =\u003e {\n    console.log(relatedQuery);\n});\n```\n\n#### `main`\n\nCombines the functionalities of `googleTrendsFunc` and `getTrendingProducts` to fetch related queries and then fetch trending products based on those queries.\n\n```javascript\nconst { main } = require('./path_to_your_module');\n\nconst query = 'laptop';\nconst key = process.env.RAPIDAPI_KEY;\n\nmain({ query, key });\n```\n\n### Example\n\nHere's an example of how to use the module in your project:\n\n```javascript\nconst { main } = require('./path_to_your_module');\n\nconst query = 'laptop';\nconst key = process.env.RAPIDAPI_KEY;\n\nmain({ query, key }).then(() =\u003e {\n    console.log('Trending products fetched successfully.');\n}).catch((error) =\u003e {\n    console.error('Error fetching trending products:', error);\n});\n```\n\n### File Structure\n\n```\n.\n├── .env\n├── index.js\n├── package.json\n└── README.md\n```\n\n### Dependencies\n\n- `axios`\n- `dotenv`\n- `fs`\n- `google-trends-api`\n\n### License\n\nThis project is licensed under the MIT License.\n\n### Author\n\ncolddsam\n\n### Acknowledgements\n\n- [Axios](https://github.com/axios/axios)\n- [Google Trends API](https://github.com/pat310/google-trends-api)\n- [RapidAPI](https://rapidapi.com)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolddsam%2Ftrendingproducts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcolddsam%2Ftrendingproducts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolddsam%2Ftrendingproducts/lists"}