{"id":24958571,"url":"https://github.com/willuhmjs/gotquestions","last_synced_at":"2025-07-10T19:36:54.831Z","repository":{"id":130343652,"uuid":"393556454","full_name":"willuhmjs/gotquestions","owner":"willuhmjs","description":"gotquestions is a package designed to scrape the gotquestions.org api","archived":false,"fork":false,"pushed_at":"2022-03-07T21:49:24.000Z","size":22,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T20:16:35.568Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/willuhmjs.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-07T02:27:11.000Z","updated_at":"2024-03-13T21:24:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"3eb3d182-00d9-4431-b97f-6331774afb6c","html_url":"https://github.com/willuhmjs/gotquestions","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/willuhmjs/gotquestions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willuhmjs%2Fgotquestions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willuhmjs%2Fgotquestions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willuhmjs%2Fgotquestions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willuhmjs%2Fgotquestions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willuhmjs","download_url":"https://codeload.github.com/willuhmjs/gotquestions/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willuhmjs%2Fgotquestions/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264640067,"owners_count":23642335,"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":[],"created_at":"2025-02-03T07:27:27.932Z","updated_at":"2025-07-10T19:36:54.811Z","avatar_url":"https://github.com/willuhmjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gotquestions\n\u003cdiv\u003e\n  \u003cimg src=\"https://img.shields.io/github/license/willuhm-js/gotquestions?style=for-the-badge\"/\u003e\n\u003c/div\u003e\n\u003cbr\u003e\ngotquestions is a package designed to scrape the gotquestions.org api\n\n```js\nconst gq = require(\"/path/to/gotquestions/src/index.js\");\n(async () =\u003e {\n  await gq.fetchDataByQuery(\"Jesus\");\n  /*\n  {\n    error: false,\n    articleTitle: \"How many prophecies did Jesus fulfill? | GotQuestions.org\",\n    articleBody: \"...\",\n    url: \"...\"\n  }\n  */\n})();\n```\n\n## Documentation\n### Error Handling\nAll errors return the following object\n```js\n{\n  error: true,\n  errorStack: \"...\"\n}\n```\n\n### gq.fetchDataByUrl(url)\n```js\nawait gq.fetchDataByUrl(\"https://www.gotquestions.org/prophecies-of-Jesus.html\");\n/*\n{\n  error: false,\n  articleTitle: \"How many prophecies did Jesus fulfill? | GotQuestions.org\",\n  articleBody: \"...\",\n  url: \"...\"\n}\n*/\n```\n\n### gq.fetchDataByQuery(query, index)\n```js\nawait gq.fetchDataByQuery(\"Jesus\", 0);\n/*\n{\n  error: false,\n  articleTitle: \"How many prophecies did Jesus fulfill? | GotQuestions.org\",\n  articleBody: \"...\"\n}\n*/\n```\n\n### gq.search(query)\n```js\nawait gq.search(\"Jesus\")\n/* \n{ \n  error: false,\n  queryResults: [\n    {\n      articleTitle: \"How many prophecies did Jesus fulfill? | GotQuestions.org\",\n      url: \"https://www.gotquestions.org/prophecies-of-Jesus.html\"\n    },\n    ...\n  ]\n}\n*/\n```\n\n## License\n**gotquestions** is licensed under the [MIT License](https://github.com/willuhm-js/gotquestions/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilluhmjs%2Fgotquestions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwilluhmjs%2Fgotquestions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilluhmjs%2Fgotquestions/lists"}