Registry / http-networking / api-autoresbot

api-autoresbot

JSON →
library1.0.6jsnpmunverified

A lightweight Node.js client for fetching data from REST APIs using API keys and query parameters. Version 1.0.6 is the latest stable release. It provides a straightforward fetch() method to make GET requests with automatic JSON parsing. Minimal dependencies and simple API design. Not actively maintained; last update over a year ago.

npm install api-autoresbot
INSTALL
IMPORT
SIG · API-AUTORESBOT
A
api-autoresbot
http-networkingjavascriptv1.0.6
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import client from 'api-autoresbot'
const client = require('api-autoresbot')
ESM default export. CJS not supported.
fetch
client.fetch(endpoint, options)
client.fetch({endpoint})
fetch() expects endpoint string as first argument, optional options object second.
ApiClient
import type { ApiClient } from 'api-autoresbot'
import { ApiClient } from 'api-autoresbot'
ApiClient is a type export for TypeScript only.

Demonstrates basic usage: importing the client, calling fetch with an API key and query parameters, and handling the response.

import client from 'api-autoresbot'; async function main() { const apiKey = process.env.API_KEY ?? ''; const data = await client.fetch('/users', { apiKey, params: { limit: 10 } }); console.log(data); } main().catch(console.error);
Debug
Known issues
gotchafetch() does not append the base URL automatically; you must provide the full endpoint path.
fix
Pass the absolute URL or ensure the endpoint includes the full path relative to your API's base.
affects: >=1.0.0
gotchaThe library uses `eval` internally for parsing JSON responses, which can be a security risk if the response is not trusted.
fix
Avoid using this library with untrusted data sources, or consider using a more secure alternative.
affects: >=1.0.0
deprecatedThe `fetch` API may change in future versions; the current implementation is considered experimental.
fix
Pin your version to 1.0.x and monitor updates.
affects: 1.0.x
gotchaTypeScript definitions are incomplete; some properties may not be typed correctly.
fix
Use `@ts-ignore` or augment the types if needed.
affects: >=1.0.0
gotchaThe library does not handle network errors gracefully; fetch() will throw an unhelpful error on failure.
fix
Wrap calls in try-catch and implement custom error handling.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'api-autoresbot'
Package not installed or module resolution issue.
fix
Run `npm install api-autoresbot` and ensure your project is using a compatible Node.js version.
TypeError: client.fetch is not a function
Incorrect import (e.g., using named import instead of default).
fix
Use `import client from 'api-autoresbot'` (default import).
SyntaxError: Unexpected token < in JSON at position 0
The API returned HTML instead of JSON, possibly due to incorrect endpoint or authentication.
fix
Check the endpoint URL and ensure API key is correct.
ReferenceError: process is not defined
Environment variable accessed in a browser environment where `process` does not exist.
fix
Use a polyfill or set API key via a different mechanism in browser (e.g., dotenv-webpack).
Upgrade
Version history
1.0.6latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
22
OpenAI (training)
1
Resources