Socket
Socket
Sign inDemoInstall

node-sms-active

Package Overview
Dependencies
9
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    node-sms-active

It performs functions such as number purchase and code waiting using sms active api.


Version published
Weekly downloads
2
decreased by-83.33%
Maintainers
1
Install size
2.16 MB
Created
Weekly downloads
 

Readme

Source

sms-active

This library provides the following features

  • Sms active api allows you to get a number with the api and get the status of whether the verification code has arrived.
  • If we don't have the type of number you want in stock, it waits until it arrives and returns the number information to you when you buy a number.
  • You don't need to constantly check if you have received a verification code. It contains a function that checks the status until the verification code arrives and returns the code when it arrives.
  • It allows you to cancel a number you have received, confirm that you have received the code, and receive another code for the same number for free.
  • You can read your account balance.
npm i node-sms-active

Buying a new number

const smsActive = require("node-sms-active");

smsActive.buyNumber({
    country: 6, // See the bottom of the documentation for the country list.
    service: 'dr', // See the bottom of the documentation for the service list.
    operator: 'any',
    apiKey: '',
    verification: false
})
.then(response=>{
    console.log(response)
})
.catch(error =>{
    console.log(error)
})

country: The number of sms active in the country where the number will be received. To find the country you are looking for, see the country codes at the bottom of the page.

service: The sms active short code of the service to receive the number. To find the service you are looking for, see the service codes at the bottom of the page.

operator: You can use it if you want to get a number from a private operator in your country. It is not mandatory to send it. Default any

apiKey: https://sms-activate.org/en/api2 You can create a key by saying create api key from this link.

verification: Default false. Sending is not mandatory. If true, a number that supports the call will be received.

Sample Successful Response
{
  status: true,
  data: {
    activationId: '1779177117',
    phoneNumber: '628973921615',
    activationCost: '4.50',
    countryCode: '6',
    canGetAnotherSms: true,
    activationTime: '2023-09-30 02:36:18',
    activationOperator: 'three'
  }
}
Sample Failed Response
{ 
    status: false, 
    data: 'WRONG_COUNTRY' 
}

Check if the Sms Code has arrived and receive it if so

const smsActive = require("node-sms-active");

smsActive.getCode({
    activationId: '',
    apiKey: '',
})
.then(response=>{
    console.log(response)
})
.catch(error =>{
    console.log(error)
})

activationId: When you buy the number, you need to send the value returned to you in json.

apiKey: https://sms-activate.org/en/api2 You can create a key by saying create api key from this link.

Sample Successful Response
{ 
    status: true, 
    data: '396989' 
}
Sample Failed Response
{ 
    status: false, 
    data: 'STATUS_WAIT_CODE' 
}

Attempts to purchase until the number matching your requirements is in stock

const smsActive = require("node-sms-active");

smsActive.waitForBuyNumber({
    country: 6, // See the bottom of the documentation for the country list.
    service: 'dr', // See the bottom of the documentation for the service list.
    operator: 'any',
    apiKey: '',
    verification: false,
    timeOut: 0
})
.then(response=>{
    console.log(response)
})
.catch(error =>{
    console.log(error)
})

country: The number of sms active in the country where the number will be received. To find the country you are looking for, see the country codes at the bottom of the page.

service: The sms active short code of the service to receive the number. To find the service you are looking for, see the service codes at the bottom of the page.

operator: You can use it if you want to get a number from a private operator in your country. It is not mandatory to send it. Default any

apiKey: https://sms-activate.org/en/api2 You can create a key by saying create api key from this link.

verification: Default false. Sending is not mandatory. If true, a number that supports the call will be received.

timeOut: 0 Wait indefinitely if sent. If sent in milliseconds, it will return the status when the time expires. 1 Second = 1000 Milliseconds

Sample Successful Response
{
  status: true,
  data: {
    activationId: '1779177117',
    phoneNumber: '628973921615',
    activationCost: '4.50',
    countryCode: '6',
    canGetAnotherSms: true,
    activationTime: '2023-09-30 02:36:18',
    activationOperator: 'three'
  }
}
Sample Failed Response
{ 
    status: false, 
    data: 'WRONG_COUNTRY' 
}

Attempts purchase until sms confirmation code arrives

const smsActive = require("node-sms-active");

smsActive.waitForCode({
    activationId: '',
    apiKey: '',
    timeOut: 0
})
.then(response=>{
    console.log(response)
})
.catch(error =>{
    console.log(error)
})

activationId: When you buy the number, you need to send the value returned to you in json.

apiKey: https://sms-activate.org/en/api2 You can create a key by saying create api key from this link.

timeOut: 0 Wait indefinitely if sent. If sent in milliseconds, it will return the status when the time expires. 1 Second = 1000 Milliseconds

Sample Successful Response
{ 
    status: true, 
    data: '396989' 
}
Sample Failed Response
{ 
    status: false, 
    data: 'STATUS_WAIT_CODE' 
}

Change the status of the order

const smsActive = require("node-sms-active");

smsActive.setStatusActivation({
    activationId: '',
    apiKey: '',
    status: 8
})
.then(response=>{
    console.log(response)
})
.catch(error =>{
    console.log(error)
})

activationId: When you buy the number, you need to send the value returned to you in json.

apiKey: https://sms-activate.org/en/api2 You can create a key by saying create api key from this link.

status: Can only take values 1, 3, 6, 8

1 inform about the readiness of the number (SMS sent to the number)

3 request another code (free)

6 complete activation *

8 inform that the number has been used and cancel the activation

Sample Successful Response
{ 
    status: true, 
    data: 'ACCESS_CANCEL' 
}
Sample Failed Response
{
  status: false,
  data: 'EARLY_CANCEL_DENIED - You can‘t cancel the number within the first 2 minutes'
}

Get account balance

const smsActive = require("node-sms-active");

smsActive.getBallance({
    apiKey: '',
})
.then(response=>{
    console.log(response)
})
.catch(error =>{
    console.log(error)
})

apiKey: https://sms-activate.org/en/api2 You can create a key by saying create api key from this link.

Sample Successful Response
{ 
    status: true, 
    data: 498.28
}
Sample Failed Response
{
  status: false,
  data: 'ERROR_SQL'
}

Country Code List

NumberCountryTitle
0RussiaRussia
1UkraineUkraine
2KazakhstanKazakhstan
3ChinaChina
4PhilippinesPhilippines
5MyanmarMyanmar
6IndonesiaIndonesia
7MalaysiaMalaysia
8KenyaKenya
9TanzaniaTanzania
10VietnamVietnam
11KyrgyzstanKyrgyzstan
12USA (virtual)USA (virtual)
13IsraelIsrael
14HongKongHongKong
15PolandPoland
16EnglandEngland
17MadagascarMadagascar
18DCongoDCongo
19NigeriaNigeria
20MacaoMacao
21EgyptEgypt
22IndiaIndia
23IrelandIreland
24CambodiaCambodia
25LaosLaos
26HaitiHaiti
27IvoryIvory
28GambiaGambia
29SerbiaSerbia
30YemenYemen
31SouthafricaSouthafrica
32RomaniaRomania
33ColombiaColombia
34EstoniaEstonia
35AzerbaijanAzerbaijan
36CanadaCanada
37MoroccoMorocco
38GhanaGhana
39ArgentinaArgentina
40UzbekistanUzbekistan
41CameroonCameroon
42ChadChad
43GermanyGermany
44LithuaniaLithuania
45CroatiaCroatia
46SwedenSweden
47IraqIraq
48NetherlandsNetherlands
49LatviaLatvia
50AustriaAustria
51BelarusBelarus
52ThailandThailand
53SaudiarabiaSaudiarabia
54MexicoMexico
55TaiwanTaiwan
56SpainSpain
57IranIran
58AlgeriaAlgeria
59SloveniaSlovenia
60BangladeshBangladesh
61SenegalSenegal
62TurkeyTurkey
63CzechCzech
64SrilankaSrilanka
65PeruPeru
66PakistanPakistan
67NewzealandNewzealand
68GuineaGuinea
69MaliMali
70VenezuelaVenezuela
71EthiopiaEthiopia
72MongoliaMongolia
73BrazilBrazil
74AfghanistanAfghanistan
75UgandaUganda
76AngolaAngola
77CyprusCyprus
78FranceFrance
79PapuaPapua
80MozambiqueMozambique
81NepalNepal
82BelgiumBelgium
83BulgariaBulgaria
84HungaryHungary
85MoldovaMoldova
86ItalyItaly
87ParaguayParaguay
88HondurasHonduras
89TunisiaTunisia
90NicaraguaNicaragua
91TimorlesteTimorleste
92BoliviaBolivia
93CostaricaCostarica
94GuatemalaGuatemala
95UaeUae
96ZimbabweZimbabwe
97PuertoricoPuertorico
98SudanSudan
99TogoTogo
100KuwaitKuwait
101SalvadorSalvador
102LibyanLibyan
103JamaicaJamaica
104TrinidadTrinidad
105EcuadorEcuador
106SwazilandSwaziland
107OmanOman
108BosniaBosnia
109DominicanDominican
110SyrianSyrian
111QatarQatar
112PanamaPanama
113CubaCuba
114MauritaniaMauritania
115SierraleoneSierraleone
116JordanJordan
117PortugalPortugal
118BarbadosBarbados
119BurundiBurundi
120BeninBenin
121BruneiBrunei
122BahamasBahamas
123BotswanaBotswana
124BelizeBelize
125CafCaf
126DominicaDominica
127GrenadaGrenada
128GeorgiaGeorgia
129GreeceGreece
130GuineabissauGuineabissau
131GuyanaGuyana
132IcelandIceland
133ComorosComoros
134SaintkittsSaintkitts
135LiberiaLiberia
136LesothoLesotho
137MalawiMalawi
138NamibiaNamibia
139NigerNiger
140RwandaRwanda
141SlovakiaSlovakia
142SurinameSuriname
143TajikistanTajikistan
144MonacoMonaco
145BahrainBahrain
146ReunionReunion
147ZambiaZambia
148ArmeniaArmenia
149SomaliaSomalia
150CongoCongo
151ChileChile
152BurkinafasoBurkinafaso
153LebanonLebanon
154GabonGabon
155AlbaniaAlbania
156UruguayUruguay
157MauritiusMauritius
158BhutanBhutan
159MaldivesMaldives
160GuadeloupeGuadeloupe
161TurkmenistanTurkmenistan
162FrenchguianaFrenchguiana
163FinlandFinland
164SaintluciaSaintlucia
165LuxembourgLuxembourg
166SaintvincentgrenadinesSaintvincentgrenadines
167EquatorialguineaEquatorialguinea
168DjiboutiDjibouti
169AntiguabarbudaAntiguabarbuda
170CaymanislandsCaymanislands
171MontenegroMontenegro
172DenmarkDenmark
173SwitzerlandSwitzerland
174NorwayNorway
175AustraliaAustralia
176EritreaEritrea
177SouthsudanSouthsudan
178SaotomeandprincipeSaotomeandprincipe
179ArubaAruba
180MontserratMontserrat
181AnguillaAnguilla
183NorthmacedoniaNorthmacedonia
184SeychellesSeychelles
185NewcaledoniaNewcaledonia
186CapeverdeCapeverde
187USAUSA
189FijiFiji
196SingaporeSingapore
201GibraltarGibraltar

Service List

Service CodeName
fullFull Rent
fullFull rent
tgTelegram
igInstagram+Threads
waWhatsapp
fbFacebook
goGoogle,youtube,Gmail
twTwitter
mmMicrosoft
hwAlipay/Alibaba/1688
amAmazon
oiTinder
maMail.ru
dsDiscord
mtSteam
juIndomaret
lfTikTok/Douyin
meLine messenger
otAny other call forwarding
otAny other
ofurent/jet/RuSharing
daMTS CashBack
nvNaver
drOpenAI
tnLinkedIn
vkvk.com
ewNike
mbYahoo
yaYandex
yaYandex call forwarding
dheBay
pmAOL
vsWinzoGame
tsPayPal
dlLazada
okok.ru
kaShopee
avavito
avavito call forwarding
nzFoodpanda
ubUber
ki99app
uuWildberries
wbWeChat
ywGrindr
aczClaude
bwSignal
viViber
xdTokopedia
ktKakaoTalk
fw99acres
snOLX
kcVinted
beСберМегаМаркет
ftБукмекерские
pfpof.com
qfRedBook
ll888casino
wxApple
ylYalla
mjZalo
fuSnapchat
xkDiDi
pdIFood
niGojek
xhOVO
vmOkCupid
frDana
xjСберМаркет
dfHappn
cyРСА
bcGCash
jgGrab
mvFruitz
tkМВидео
imImo
pcCasino/bet/gambling
gfGoogleVoice
sgOZON
actMaxis
lyOlacabs
vzHinge
nfNetflix
cqMercado
moBumble
yyVenmo
bzBlizzard
vrMotorkuX
ukAirbnb
fxPGbonus call forwarding
fxPGbonus
bvMetro
doLeboncoin
cbBazos
zpPinduoduo
whTanTan
acDoorDash
evPicpay
adoSmartyPig
gxHepsiburadacom
kfWeibo
txBolt
acpBonusLink
qqTencent QQ
rrWolt
cpUklon
aavAlchemy
yrMiravia
iebet365
acyAirtime
foMobiKwik
epTemu
nsOldubil
emZéDelivery
zkDeliveroo
dtDelivery Club
acbSpark Driver
etClubhouse
tuLyft
ahEscapeFromTarkov
gpTicketmaster
adIti
xqMPL
abxKaching
abkGMX
zeShpock
puJustdating
adaTRUTH SOCIAL
keЭльдорадо
zbFreeNow
gjCarousell
ibImmowelt
qvBadoo
lsCareem
huUkrnet
fdMamba
zuBigC
hsAsda
fkBLIBLI
aaaNubank
rdLenta
yuXiaomi
uaBlaBlaCar
xyDepop
ymyoula.ru call forwarding
ymyoula.ru
bnAlfagift
kjYAPPY
ncPayoneer
xmЛэтуаль
jrСамокат
mgMagnit
ntSravni
abqUpwork
abtArenaPlus
klkolesa.kz
gePaytm
wvAIS
aecJinJiang
zsBilibili
lxDewuPoison
aemyGLO
accLuckyLand Slots
zaJDcom
ykСпортМастер
guFora
adcPlayOJO
hxAliExpress
vdBetfair
zhZoho
zoKaggle
bdX5ID
mxSoulApp
ovBeget
ljSantander
qzFaceit
gqFreelancer
blBIGO LIVE
bmMarketGuru
vgShellBox
fzKFC
ffAVON
rlinDriver
lcSubito
boWise
atPerfluence
jxSwiggy
ablgpnbonus
ioЗдравСити
wcCraigslist
ueOnet
kmRozetka
grAstropay
jlHopi
cmProm
exLinode
tlTruecaller
psZdorov
rthily
acnRadium
xuRecargaPay
jqPaysafecard
gkAptekaRU
ngFunPay
acjMeituan
liBaidu
miZupee
rnneftm
abcTaptap Send
cnFiverr
taWink
shVkusvill
smYoWin
qyZhihu
hbTwitch
kxVivo
nlMyntra
vpKwai
abnNamars
dpProtonMail
reCoinbase
giHotline
rcSkype
ysZCity
yjeWallet
coRediffmail
yeZaleyCash
yxJTExpress
thWestStein
vyMeta
crTenChat
bhUteka
ixCelcoin
zmOfferUp
hyIninal
mlApostaGanha
mzZolushka
hzDrom
popremium.one
bbLazyPay
tzЛейка
hpMeesho
aauRockeTreach
ipBurger King
acwYouDo
ojLoveRu
aqGlovo
wgSkout
cjDotz
xtFlipkart
rkFotka
fhLalamove
jvConsultant
vcBanqi
myCAIXA
kySpatenOktoberfest
sddodopizza
lnGrofers
khBukalapak
zdZilch
veDream11
xzpaycell
ulGetir
aebGoPayz
ozPoshmark
aoUU163
wdCasinoPlus
jsGolosZa
abaRappi
kkIdealista
rjДетский мир
adpCabify
uzOffGamers
oeCodashop
adrBoosty
ckBeReal
srStarbucks
ilIQOS
adyТОКИО-CITY
fjPotato Chat
syBrahma
yiYemeksepeti
abyCouponscom
axCrefisaMais
dnPaxful
noVirgo
wrWalmart
koAdaKami
acsTata CLiQ Palette
rmFaberlic
aaqNetease
szPivko24
jcIVI
faXadrezFeliz
mcMichat
owRegRu
anAdidas
kqFotoCasa
tmAkulaku
gwCallApp
flRummyLoot
jdGiraBank
ldCashmine
adlEarnEasy
kbkufarby
aboWEBDE
ddCloudChat
ksHirect
ltBitClout
zrPapara
jeNanovest
rfAkudo
cgGemgala
vhШтолле
scCrypto
xgДзен
ilrYANDEX
uwcOdobrenie
lsqSpoiler
acfShopeeMY
sygJustDates
tcAmazonML
twmSolana
kdIviNews
ktpDivo
lpCryptoMining
dxCubeTV
yuqCCB
atqАвто2Ру
adqACMarket
ijdINTENCITY
lydBirge
adgиРНД
iudAdGuard
adwWolt
lywТрк ГуляйПоле
fpBuy+
liqLimpkin
fpqYouZik
adkОднокласники
abpYouzik
knKINOPOISK
lxqLmz
fwqНовая почта
ffqТануки
fqРозетка
flqGuaiGuai
fnShopee
fzqСмартьФинанс
qfqАмедиа
fqqBlockParty
bfOlx
fqqFirestarter

Keywords

FAQs

Last updated on 30 Sep 2023

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc