Skip to content

allows you to use sms active api with node.js in a very easy way.

Notifications You must be signed in to change notification settings

ZFC-Digital/sms-active

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Number Country Title
0 Russia Russia
1 Ukraine Ukraine
2 Kazakhstan Kazakhstan
3 China China
4 Philippines Philippines
5 Myanmar Myanmar
6 Indonesia Indonesia
7 Malaysia Malaysia
8 Kenya Kenya
9 Tanzania Tanzania
10 Vietnam Vietnam
11 Kyrgyzstan Kyrgyzstan
12 USA (virtual) USA (virtual)
13 Israel Israel
14 HongKong HongKong
15 Poland Poland
16 England England
17 Madagascar Madagascar
18 DCongo DCongo
19 Nigeria Nigeria
20 Macao Macao
21 Egypt Egypt
22 India India
23 Ireland Ireland
24 Cambodia Cambodia
25 Laos Laos
26 Haiti Haiti
27 Ivory Ivory
28 Gambia Gambia
29 Serbia Serbia
30 Yemen Yemen
31 Southafrica Southafrica
32 Romania Romania
33 Colombia Colombia
34 Estonia Estonia
35 Azerbaijan Azerbaijan
36 Canada Canada
37 Morocco Morocco
38 Ghana Ghana
39 Argentina Argentina
40 Uzbekistan Uzbekistan
41 Cameroon Cameroon
42 Chad Chad
43 Germany Germany
44 Lithuania Lithuania
45 Croatia Croatia
46 Sweden Sweden
47 Iraq Iraq
48 Netherlands Netherlands
49 Latvia Latvia
50 Austria Austria
51 Belarus Belarus
52 Thailand Thailand
53 Saudiarabia Saudiarabia
54 Mexico Mexico
55 Taiwan Taiwan
56 Spain Spain
57 Iran Iran
58 Algeria Algeria
59 Slovenia Slovenia
60 Bangladesh Bangladesh
61 Senegal Senegal
62 Turkey Turkey
63 Czech Czech
64 Srilanka Srilanka
65 Peru Peru
66 Pakistan Pakistan
67 Newzealand Newzealand
68 Guinea Guinea
69 Mali Mali
70 Venezuela Venezuela
71 Ethiopia Ethiopia
72 Mongolia Mongolia
73 Brazil Brazil
74 Afghanistan Afghanistan
75 Uganda Uganda
76 Angola Angola
77 Cyprus Cyprus
78 France France
79 Papua Papua
80 Mozambique Mozambique
81 Nepal Nepal
82 Belgium Belgium
83 Bulgaria Bulgaria
84 Hungary Hungary
85 Moldova Moldova
86 Italy Italy
87 Paraguay Paraguay
88 Honduras Honduras
89 Tunisia Tunisia
90 Nicaragua Nicaragua
91 Timorleste Timorleste
92 Bolivia Bolivia
93 Costarica Costarica
94 Guatemala Guatemala
95 Uae Uae
96 Zimbabwe Zimbabwe
97 Puertorico Puertorico
98 Sudan Sudan
99 Togo Togo
100 Kuwait Kuwait
101 Salvador Salvador
102 Libyan Libyan
103 Jamaica Jamaica
104 Trinidad Trinidad
105 Ecuador Ecuador
106 Swaziland Swaziland
107 Oman Oman
108 Bosnia Bosnia
109 Dominican Dominican
110 Syrian Syrian
111 Qatar Qatar
112 Panama Panama
113 Cuba Cuba
114 Mauritania Mauritania
115 Sierraleone Sierraleone
116 Jordan Jordan
117 Portugal Portugal
118 Barbados Barbados
119 Burundi Burundi
120 Benin Benin
121 Brunei Brunei
122 Bahamas Bahamas
123 Botswana Botswana
124 Belize Belize
125 Caf Caf
126 Dominica Dominica
127 Grenada Grenada
128 Georgia Georgia
129 Greece Greece
130 Guineabissau Guineabissau
131 Guyana Guyana
132 Iceland Iceland
133 Comoros Comoros
134 Saintkitts Saintkitts
135 Liberia Liberia
136 Lesotho Lesotho
137 Malawi Malawi
138 Namibia Namibia
139 Niger Niger
140 Rwanda Rwanda
141 Slovakia Slovakia
142 Suriname Suriname
143 Tajikistan Tajikistan
144 Monaco Monaco
145 Bahrain Bahrain
146 Reunion Reunion
147 Zambia Zambia
148 Armenia Armenia
149 Somalia Somalia
150 Congo Congo
151 Chile Chile
152 Burkinafaso Burkinafaso
153 Lebanon Lebanon
154 Gabon Gabon
155 Albania Albania
156 Uruguay Uruguay
157 Mauritius Mauritius
158 Bhutan Bhutan
159 Maldives Maldives
160 Guadeloupe Guadeloupe
161 Turkmenistan Turkmenistan
162 Frenchguiana Frenchguiana
163 Finland Finland
164 Saintlucia Saintlucia
165 Luxembourg Luxembourg
166 Saintvincentgrenadines Saintvincentgrenadines
167 Equatorialguinea Equatorialguinea
168 Djibouti Djibouti
169 Antiguabarbuda Antiguabarbuda
170 Caymanislands Caymanislands
171 Montenegro Montenegro
172 Denmark Denmark
173 Switzerland Switzerland
174 Norway Norway
175 Australia Australia
176 Eritrea Eritrea
177 Southsudan Southsudan
178 Saotomeandprincipe Saotomeandprincipe
179 Aruba Aruba
180 Montserrat Montserrat
181 Anguilla Anguilla
183 Northmacedonia Northmacedonia
184 Seychelles Seychelles
185 Newcaledonia Newcaledonia
186 Capeverde Capeverde
187 USA USA
189 Fiji Fiji
196 Singapore Singapore
201 Gibraltar Gibraltar

Service List

Service Code Name
full Full Rent
full Full rent
tg Telegram
ig Instagram+Threads
wa Whatsapp
fb Facebook
go Google,youtube,Gmail
tw Twitter
mm Microsoft
hw Alipay/Alibaba/1688
am Amazon
oi Tinder
ma Mail.ru
ds Discord
mt Steam
ju Indomaret
lf TikTok/Douyin
me Line messenger
ot Any other call forwarding
ot Any other
of urent/jet/RuSharing
da MTS CashBack
nv Naver
dr OpenAI
tn LinkedIn
vk vk.com
ew Nike
mb Yahoo
ya Yandex
ya Yandex call forwarding
dh eBay
pm AOL
vs WinzoGame
ts PayPal
dl Lazada
ok ok.ru
ka Shopee
av avito
av avito call forwarding
nz Foodpanda
ub Uber
ki 99app
uu Wildberries
wb WeChat
yw Grindr
acz Claude
bw Signal
vi Viber
xd Tokopedia
kt KakaoTalk
fw 99acres
sn OLX
kc Vinted
be СберМегаМаркет
ft Букмекерские
pf pof.com
qf RedBook
ll 888casino
wx Apple
yl Yalla
mj Zalo
fu Snapchat
xk DiDi
pd IFood
ni Gojek
xh OVO
vm OkCupid
fr Dana
xj СберМаркет
df Happn
cy РСА
bc GCash
jg Grab
mv Fruitz
tk МВидео
im Imo
pc Casino/bet/gambling
gf GoogleVoice
sg OZON
act Maxis
ly Olacabs
vz Hinge
nf Netflix
cq Mercado
mo Bumble
yy Venmo
bz Blizzard
vr MotorkuX
uk Airbnb
fx PGbonus call forwarding
fx PGbonus
bv Metro
do Leboncoin
cb Bazos
zp Pinduoduo
wh TanTan
ac DoorDash
ev Picpay
ado SmartyPig
gx Hepsiburadacom
kf Weibo
tx Bolt
acp BonusLink
qq Tencent QQ
rr Wolt
cp Uklon
aav Alchemy
yr Miravia
ie bet365
acy Airtime
fo MobiKwik
ep Temu
ns Oldubil
em ZéDelivery
zk Deliveroo
dt Delivery Club
acb Spark Driver
et Clubhouse
tu Lyft
ah EscapeFromTarkov
gp Ticketmaster
ad Iti
xq MPL
abx Kaching
abk GMX
ze Shpock
pu Justdating
ada TRUTH SOCIAL
ke Эльдорадо
zb FreeNow
gj Carousell
ib Immowelt
qv Badoo
ls Careem
hu Ukrnet
fd Mamba
zu BigC
hs Asda
fk BLIBLI
aaa Nubank
rd Lenta
yu Xiaomi
ua BlaBlaCar
xy Depop
ym youla.ru call forwarding
ym youla.ru
bn Alfagift
kj YAPPY
nc Payoneer
xm Лэтуаль
jr Самокат
mg Magnit
nt Sravni
abq Upwork
abt ArenaPlus
kl kolesa.kz
ge Paytm
wv AIS
aec JinJiang
zs Bilibili
lx DewuPoison
ae myGLO
acc LuckyLand Slots
za JDcom
yk СпортМастер
gu Fora
adc PlayOJO
hx AliExpress
vd Betfair
zh Zoho
zo Kaggle
bd X5ID
mx SoulApp
ov Beget
lj Santander
qz Faceit
gq Freelancer
bl BIGO LIVE
bm MarketGuru
vg ShellBox
fz KFC
ff AVON
rl inDriver
lc Subito
bo Wise
at Perfluence
jx Swiggy
abl gpnbonus
io ЗдравСити
wc Craigslist
ue Onet
km Rozetka
gr Astropay
jl Hopi
cm Prom
ex Linode
tl Truecaller
ps Zdorov
rt hily
acn Radium
xu RecargaPay
jq Paysafecard
gk AptekaRU
ng FunPay
acj Meituan
li Baidu
mi Zupee
rn neftm
abc Taptap Send
cn Fiverr
ta Wink
sh Vkusvill
sm YoWin
qy Zhihu
hb Twitch
kx Vivo
nl Myntra
vp Kwai
abn Namars
dp ProtonMail
re Coinbase
gi Hotline
rc Skype
ys ZCity
yj eWallet
co Rediffmail
ye ZaleyCash
yx JTExpress
th WestStein
vy Meta
cr TenChat
bh Uteka
ix Celcoin
zm OfferUp
hy Ininal
ml ApostaGanha
mz Zolushka
hz Drom
po premium.one
bb LazyPay
tz Лейка
hp Meesho
aau RockeTreach
ip Burger King
acw YouDo
oj LoveRu
aq Glovo
wg Skout
cj Dotz
xt Flipkart
rk Fotka
fh Lalamove
jv Consultant
vc Banqi
my CAIXA
ky SpatenOktoberfest
sd dodopizza
ln Grofers
kh Bukalapak
zd Zilch
ve Dream11
xz paycell
ul Getir
aeb GoPayz
oz Poshmark
ao UU163
wd CasinoPlus
js GolosZa
aba Rappi
kk Idealista
rj Детский мир
adp Cabify
uz OffGamers
oe Codashop
adr Boosty
ck BeReal
sr Starbucks
il IQOS
ady ТОКИО-CITY
fj Potato Chat
sy Brahma
yi Yemeksepeti
aby Couponscom
ax CrefisaMais
dn Paxful
no Virgo
wr Walmart
ko AdaKami
acs Tata CLiQ Palette
rm Faberlic
aaq Netease
sz Pivko24
jc IVI
fa XadrezFeliz
mc Michat
ow RegRu
an Adidas
kq FotoCasa
tm Akulaku
gw CallApp
fl RummyLoot
jd GiraBank
ld Cashmine
adl EarnEasy
kb kufarby
abo WEBDE
dd CloudChat
ks Hirect
lt BitClout
zr Papara
je Nanovest
rf Akudo
cg Gemgala
vh Штолле
sc Crypto
xg Дзен
ilr YANDEX
uwc Odobrenie
lsq Spoiler
acf ShopeeMY
syg JustDates
tc AmazonML
twm Solana
kd IviNews
ktp Divo
lp CryptoMining
dx CubeTV
yuq CCB
atq Авто2Ру
adq ACMarket
ijd INTENCITY
lyd Birge
adg иРНД
iud AdGuard
adw Wolt
lyw Трк ГуляйПоле
fp Buy+
liq Limpkin
fpq YouZik
adk Однокласники
abp Youzik
kn KINOPOISK
lxq Lmz
fwq Новая почта
ffq Тануки
fq Розетка
flq GuaiGuai
fn Shopee
fzq СмартьФинанс
qfq Амедиа
fqq BlockParty
bf Olx
fqq Firestarter

About

allows you to use sms active api with node.js in a very easy way.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published