The `hxz-api` package, currently at version 1.0.1, provides a JavaScript client for the Hexa-API, a consolidated service that aggregates data from various online sources and offers media download functionalities. This library enables developers to interact with a wide array of services including searching anime (Otakudesu) and manga (Komiku), retrieving global COVID-19 statistics, accessing Islamic prayer times (Sholat) and Quran surah information, fetching song lyrics, character data, Wattpad stories, Play Store app information, WhatsApp group links, and Pinterest images. It also facilitates downloading content from popular social media platforms like Instagram, Twitter, Facebook, YouTube, and TikTok. The library primarily exposes a Promise-based API for asynchronous operations. While a specific release cadence is not documented, updates likely occur as new features are added or underlying services require maintenance. Its key differentiator is providing a single interface to numerous, often unofficial, content aggregation and scraping services.
npm install hxz-apiVerified import paths — ran on the pinned version, not inferred.
Fetches current global COVID-19 statistics and retrieves a 'Guess the Picture' challenge, demonstrating two basic API calls.
Regularly update the `hxz-api` package. If issues persist after updating, check the GitHub repository for reported issues or contact the maintainer.
Wrap all asynchronous API calls with `try...catch` blocks or use `.catch()` with Promises to gracefully handle network errors, invalid inputs, or upstream service failures.
Implement delays between consecutive requests, use proxies if necessary, and review the terms of service of the targeted platforms to ensure compliance.
Validate and sanitize all user inputs before passing them to `hxz-api` functions. Check for expected formats (e.g., valid URLs for downloaders, numeric IDs for `surah`).
Verify the method name against the documentation or available methods (e.g., `otakudesu`, `covid`, `igdl`). Remember functions are accessed as `hx.methodName`.
Check your internet connection. If your connection is fine, the upstream Hexa-API might be down. Wait and retry later, or check the project's GitHub for status updates.
Ensure the provided link is a complete and correctly formatted URL, and that it points to a supported content type/platform for the specific downloader function.
Try a different or more general search term. Verify that the input is in the expected language or format for the specific function.
No dependency data recorded yet.