{"id":25847542,"url":"https://github.com/dakdevs/rest-api-proxy","last_synced_at":"2026-05-14T10:33:00.959Z","repository":{"id":34998031,"uuid":"195105784","full_name":"dakdevs/rest-api-proxy","owner":"dakdevs","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-04T03:36:21.000Z","size":925,"stargazers_count":0,"open_issues_count":11,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T05:25:06.778Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dakdevs.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}},"created_at":"2019-07-03T18:13:40.000Z","updated_at":"2019-07-03T19:52:29.000Z","dependencies_parsed_at":"2023-01-15T11:44:58.940Z","dependency_job_id":null,"html_url":"https://github.com/dakdevs/rest-api-proxy","commit_stats":null,"previous_names":["dakdevs/rest-api-proxy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dakdevs%2Frest-api-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dakdevs%2Frest-api-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dakdevs%2Frest-api-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dakdevs%2Frest-api-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dakdevs","download_url":"https://codeload.github.com/dakdevs/rest-api-proxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241351948,"owners_count":19948757,"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-03-01T10:27:31.982Z","updated_at":"2026-05-14T10:33:00.921Z","avatar_url":"https://github.com/dakdevs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rest API Proxy\n\nThis package allows you to proxy a rest API. For use in API routers to create routes that proxy to the given API.\n\n# Installation\n```bash\nyarn add rest-api-proxy \n```\n\n# Usage\n```js\nimport express from 'express';\nimport restApiProxy from 'rest-api-proxy';\n\nconst app = express();\n\napp.all('/proxy/twitter/:path*', async (req, res) =\u003e {\n  const proxy = restApiProxy({\n    host: 'https://api.twitter.com/v1',\n    headers: {\n      'X-Auth-Token': 'XXXXXXX',\n    },\n  });\n  \n  const requestData = req.body || undefined;\n  \n  const response = await proxy(req.method, req.param.path, {\n    data: requestData,\n    query: req.query,\n    headers: req.headers,\n  });\n  \n  return res.status(response.statusCode).set(response.headers).send(response.body);\n});\n\napp.listen(4000, () =\u003e {\n  console.log('Server running...');\n});\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdakdevs%2Frest-api-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdakdevs%2Frest-api-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdakdevs%2Frest-api-proxy/lists"}