
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
brainly-api
Advanced tools

Now some commands have been divided into sections and must be installed separately
Now you can use "find question highlight" to search for the highlighted questions
const { BrainlyAPI, Server } = require('brainly-api');
BrainlyAPI.startWorker({ experimental: true, server: Server.ID }, async brainly => {
// find question
console.log(await brainly.findQuestion('Indonesian!!'));
});
Example:
const { Server } = require('brainly-api');
Server.{Code}
| Code | Name | Refers to |
|---|---|---|
| PL | Poland 🇵🇱 | brainly.pl |
| RU | Russian Federation (the) | znanija.com |
| ES | Spain | brainly.lat |
| PT | Portugal 🇵🇹 | brainly.com.br |
| TR | Turkey | eodev.com |
| RO | Romania 🇷🇴 | brainly.ro |
| ID | Indonesia 🇮🇩 | brainly.co.id |
| HI | India 🇮🇳 | brainly.in |
| PH | Philippines (the) 🇵🇭 | brainly.ph |
| US | United States of America (the) 🇺🇸 | brainly.com (deprecated) |
Source ℹ️ : https://www.iban.com/country-codes
All the features below can only be used anonymously (temporarily disabled in auth mode) 😿.
All the available features are still under development and will continue to be improved.
| Feature | Method | Status |
|---|---|---|
| Find question | findQuestion | ✔️ |
| Find question by id | ❌ | ❌ |
| Find question highlight | findQuestionHighlight | ✔️ |
| Fetch user profile | fetchUserProfile | ✔️ |
$ npx brainly-api
Brainly api makes helper tools to simplify the development process. Here is a list of tools that can be used:
The random user agent can be activated by installing the random-useragent library.
AnonymousWorker.findQuestion(question: string)Used to search for questions based on the server and search queries.
AnonymousWorker.findQuestionById(id: string)Used to search for questions based on the server and id.
AnonymousWorker.fetchUserProfile(userId: string)Under development
AnonymousWorker.findQuestionHighlight(lesson: number)Used to search for highlight questions based on the server and lesson type.
Many people say that brainly-api has problems when deploying to Heroku. This was not caused by a flaw in the program, but from the security of the Brainly itself. They use Cloudflare for security. As another experiment, brainly-api works well with Microsoft Azure. If you have any suggestions for deploying brainly-api for free, you can do a pull request.
Usually, many people ask why when the test on localhost is running well while on hosting it gives a 403 error. However, in this case, if you use US as the server then it will not work well on local and hosting. This is due to the security of Cloudflare.
Currently no project names are displayed. If you want your project name included here, then contact me with the following format:
See code of conduct
Thank you for wanting to contribute to this project. The contribution page can be found on contribution page
Licensed under MIT License
See package license
FAQs
Unofficial brainly.com API
We found that brainly-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.