{"id":15550040,"url":"https://github.com/outdatedguy/search-trends","last_synced_at":"2025-04-10T15:52:41.123Z","repository":{"id":48109073,"uuid":"391686321","full_name":"OutdatedGuy/Search-Trends","owner":"OutdatedGuy","description":"Trends search made with Google Trends API","archived":false,"fork":false,"pushed_at":"2025-01-01T14:24:19.000Z","size":161,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-08T00:03:51.716Z","etag":null,"topics":["chartjs","google-trends","google-trends-api","trends"],"latest_commit_sha":null,"homepage":"https://outdated-trends.outdatedguy.rocks","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OutdatedGuy.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":"2021-08-01T16:57:24.000Z","updated_at":"2025-01-01T14:24:22.000Z","dependencies_parsed_at":"2023-10-11T07:45:17.055Z","dependency_job_id":"c7a34bb1-3ec5-4376-8d5a-b96f741c1689","html_url":"https://github.com/OutdatedGuy/Search-Trends","commit_stats":{"total_commits":64,"total_committers":3,"mean_commits":"21.333333333333332","dds":0.0625,"last_synced_commit":"248a198d18719f86d0fa4708d14c8450603295f5"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OutdatedGuy%2FSearch-Trends","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OutdatedGuy%2FSearch-Trends/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OutdatedGuy%2FSearch-Trends/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OutdatedGuy%2FSearch-Trends/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OutdatedGuy","download_url":"https://codeload.github.com/OutdatedGuy/Search-Trends/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248245499,"owners_count":21071501,"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","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":["chartjs","google-trends","google-trends-api","trends"],"created_at":"2024-10-02T13:48:01.882Z","updated_at":"2025-04-10T15:52:41.105Z","avatar_url":"https://github.com/OutdatedGuy.png","language":"JavaScript","readme":"# Search Trends\n\n- Search trends with the help of [Google Trends](https://trends.google.com/trends/) API\n- Compare multiple (upto 5) trends\n- Get line and bar graphs(charts) drawn with [Chart.js](https://www.chartjs.org/)\n\n# Technologies Used\n\n- [Chart.js](https://www.chartjs.org/)\n- [google-trends-api](https://www.npmjs.com/package/google-trends-api)\n- [express](https://expressjs.com/)\n\n# API\n\n- An NPM package called [google-trends-api](https://www.npmjs.com/package/google-trends-api)\n- Package is runned over the server side\n\nSyntax:\n\n```js\nimport googleTrends from \"google-trends-api\";\n\ngoogleTrends.interestOverTime({\n  keyword: \"string\",\n});\n```\n\n# Graphing\n\n- Chart.js script called over [CDN](https://cdn.jsdelivr.net/npm/chart.js)\n- Script is runned over the client side\n\nSyntax:\n\n```html\n\u003ccanvas id=\"myChart\" width=\"400\" height=\"400\"\u003e\u003c/canvas\u003e\n\u003cscript\u003e\n  var ctx = document.getElementById(\"myChart\").getContext(\"2d\");\n  var myChart = new Chart(ctx, { configurations });\n\u003c/script\u003e\n```\n\n# Using my API\n\n- Link:- https://outdated-trends.outdatedguy.rocks/trends\n- Request Body:- Object with property `word` whose value is array of string(s) [i.e array of words to be searched]\n- Method:- POST\n- Content-Type: application/json\n- Function: Use `async` `await` for calling fetch\n\nExample:\n\n```js\n(async function getTrends() {\n  const word = {\n    word: [\"some\", \"words\"], // example\n  };\n\n  const arg = {\n    method: \"POST\",\n    headers: {\n      \"Content-Type\": \"application/json\",\n    },\n    body: JSON.stringify(word),\n  };\n\n  const res = await fetch(\"https://outdated-trends.outdatedguy.rocks/trends\", arg);\n  const data = await res.json();\n  console.log(data);\n})();\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutdatedguy%2Fsearch-trends","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foutdatedguy%2Fsearch-trends","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutdatedguy%2Fsearch-trends/lists"}