{"id":16082212,"url":"https://github.com/zastinian/stackoverflowapi","last_synced_at":"2025-04-05T11:44:54.233Z","repository":{"id":181497922,"uuid":"660432337","full_name":"Zastinian/StackOverflowApi","owner":"Zastinian","description":"An api to collect questions from stackoverflow","archived":false,"fork":false,"pushed_at":"2023-08-13T02:33:58.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-10T22:49:53.032Z","etag":null,"topics":["api","express","overflow","stack","stack-overflow","stackoverflow","stackoverflow-api","stackoverflow-questions","stackoverflowapi"],"latest_commit_sha":null,"homepage":"https://hedystia.com","language":"JavaScript","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/Zastinian.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":"2023-06-30T02:09:10.000Z","updated_at":"2024-03-17T10:35:06.000Z","dependencies_parsed_at":"2024-10-31T04:04:26.798Z","dependency_job_id":"cd010d4c-3fdf-4b32-863e-37ec4bad0abb","html_url":"https://github.com/Zastinian/StackOverflowApi","commit_stats":null,"previous_names":["zastinian/stackoverflowapi"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zastinian%2FStackOverflowApi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zastinian%2FStackOverflowApi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zastinian%2FStackOverflowApi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zastinian%2FStackOverflowApi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zastinian","download_url":"https://codeload.github.com/Zastinian/StackOverflowApi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247332546,"owners_count":20921853,"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":["api","express","overflow","stack","stack-overflow","stackoverflow","stackoverflow-api","stackoverflow-questions","stackoverflowapi"],"created_at":"2024-10-09T11:26:35.237Z","updated_at":"2025-04-05T11:44:54.217Z","avatar_url":"https://github.com/Zastinian.png","language":"JavaScript","readme":"# StackOverflowApi\n\n## Links:\n\n- [Discord Bot](https://hedystia.com/invite) You need `Administrator` permission to enter the dashboard\n- [Discord](https://hedystia.com/support)\n- [Website](https://hedystia.com/)\n\n## app\n\nCreates an instance of the Express application.\n\n### Returns\n\n- {Object} - The Express application object.\n\n## getQuestions(tag, page_number)\n\nRetrieves a list of questions from a website based on the specified tag and page number.\n\n### Parameters\n\n- {string} tag - The tag to filter the questions by.\n- {number} page_number - The page number of the questions to retrieve.\n\n### Returns\n\n- {Promise\u003cArray\u003c{id: string}\u003e\u003e} - A promise that resolves to an array of question objects, each containing an ID.\n\n## getQuestionAndAnswerById(questionId)\n\nRetrieves a question and its corresponding answer from a website based on the provided question ID.\n\n### Parameters\n\n- {number} questionId - The ID of the question to retrieve.\n\n### Returns\n\n- {Promise\u003c{question: {title: string, body: string}, answer: {body: string}}\u003e} - A promise that resolves to an object containing the question and answer.\n\n## app.get(\"/\")\n\nHandles GET requests to the root endpoint (\"/\").\n\n### Parameters\n\n- {Object} req - The request object.\n- {Object} res - The response object.\n\n## app.get(\"/api\")\n\nHandles a GET request to the \"/api\" endpoint. Retrieves questions based on the provided query parameters and returns a JSON response.\n\n### Parameters\n\n- {Object} req - The request object.\n- {Object} res - The response object.\n\n## app.listen(port)\n\nStarts the application server and listens for incoming requests on the specified port.\n\n### Parameters\n\n- {number} port - The port number to listen on.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzastinian%2Fstackoverflowapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzastinian%2Fstackoverflowapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzastinian%2Fstackoverflowapi/lists"}