{"id":45878184,"url":"https://github.com/carbonalabel/esi-request","last_synced_at":"2026-02-27T12:57:04.779Z","repository":{"id":190737491,"uuid":"182467857","full_name":"CarbonAlabel/esi-request","owner":"CarbonAlabel","description":"Zero-dependency Node.js library for making requests to EVE Online's ESI API.","archived":false,"fork":false,"pushed_at":"2020-07-14T23:07:06.000Z","size":40,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-01-29T22:48:20.362Z","etag":null,"topics":["esi","eve","eve-online","eveonline"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/CarbonAlabel.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}},"created_at":"2019-04-21T00:34:45.000Z","updated_at":"2021-07-26T05:36:00.000Z","dependencies_parsed_at":"2023-08-26T06:07:50.518Z","dependency_job_id":null,"html_url":"https://github.com/CarbonAlabel/esi-request","commit_stats":null,"previous_names":["carbonalabel/esi-request"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CarbonAlabel/esi-request","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarbonAlabel%2Fesi-request","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarbonAlabel%2Fesi-request/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarbonAlabel%2Fesi-request/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarbonAlabel%2Fesi-request/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CarbonAlabel","download_url":"https://codeload.github.com/CarbonAlabel/esi-request/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarbonAlabel%2Fesi-request/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29896206,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T12:09:13.686Z","status":"ssl_error","status_checked_at":"2026-02-27T12:09:13.282Z","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":["esi","eve","eve-online","eveonline"],"created_at":"2026-02-27T12:57:04.296Z","updated_at":"2026-02-27T12:57:04.768Z","avatar_url":"https://github.com/CarbonAlabel.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# esi-request\n\nZero-dependency Node.js library for making requests to EVE Online's ESI API.\n\n## Features\n\n* Simple promise-based interface.\n* Utilizes HTTP/2 and request compression to make the most efficient use of your bandwidth.\n* Automatic pagination of requests.\n* Simple ETag usage.\n\n## Not Included\n\n* Caching.\n\n## Usage\n\nNode.js 13.2.0 or newer is required. Import the class, and create a new instance of it.\n\n```js\nimport {ESIRequest} from \"@esi/request\";\nconst ESI = new ESIRequest();\n```\n\n**The documentation below may be slightly out of date**\n\nOptionally, an options object can be passed to the constructor. Available options are:\n\n* `esi_url`: URL of the ESI the instance should connect to. Defaults to https://esi.evetech.net. \n* `http2_options`: An options object to be passed to the Node http2 library. See the [Node.js documentation](https://nodejs.org/api/http2.html#http2_http2_connect_authority_options_listener) for full details on available options. Usage example: [markets.js](examples/markets.js)\n* `default_headers`: HTTP headers to be added to all requests. Usage example: [defaults.js](examples/defaults.js)\n* `default_query`: Query parameters to be added to all requests. Usage example: [defaults.js](examples/defaults.js)\n* `max_time`: Maximum amount of time to spend retrying a single request, in milliseconds. Defaults to 30 seconds.\n* `max_retries`: Maximum number of times to retry a single request. Defaults to 3.\n* `retry_delay`: A function which returns a number producing iterable, telling the instance how long to wait before request retries. Defaults to fixed delays of 3, 10, and 15 seconds. Usage example: [status.js](examples/status.js)\n* `strip_headers`: Array of header names which should be stripped from responses. Defaults to a list of CORS and STS headers which are irrelevant outside of a browser context.\n\nOnce the instance is ready, use the `request` method, preferably in an async context, to make requests to ESI.\n\n```js\nlet status = await ESI.request(\"/v1/status/\").data;\nconsole.log(`There are currently ${status.players} players online.`);\n```\n\nIn addition to the request path, an options object can be passed. Available options are:\n\n* `method`: HTTP method to use for the request.\n* `headers`: HTTP headers to be added to the request.\n* `query`: Query parameters to be added to the request.\n* `body`: Object to be sent as request body. \n* `body_page_size`: Used to split the request body into multiple parts. Usage example: [names.js](examples/names.js)\n* `token`: SSO token to be used in the request. \n* `previous_response`: A response object object returned by a previous request. Usage example: [etags.js](examples/etags.js)\n\nThe promise should resolve to a response object:\n\n* `headers`: Response headers.\n* `data`: Parsed response body.\n* `body`: Response body, present instead of `data` if the response wasn't a JSON document.\n* `responses`: If pagination was performed, this will be an array containing the individual responses.\n\nIf the promise is rejected, the error may come with a `responses` property, which will be an array of response objects from requests made before giving up.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarbonalabel%2Fesi-request","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarbonalabel%2Fesi-request","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarbonalabel%2Fesi-request/lists"}