How the APIURL API Works: Buying Numbers Programmatically

If you buy numbers one at a time in the shop, you already know the flow: top up the wallet, pick a service and a country, pay, and read the code. The APIURL API is that same flow, driven by software instead of clicks — your program checks your balance, buys the number, and reads the code back. No inbox-watching, no copy-paste. This guide explains how it works and the two tools APIURL gives you.

1. Two tools, one job: the private link and the reseller API

APIURL gives you two ways to buy and read numbers without touching the shop pages.

The first is the private link that comes with every API Number. Opening it — or letting your software call it — returns the latest OTP code for that number in a clean machine-readable reply, and it keeps working for a full 30 days from purchase. Plug the link into your panel, your bot or your spreadsheet: if a code exists, the link returns it.

The second is the APIURL reseller API inside your account. With your personal API key you can check your balance, list providers, buy numbers and fetch OTPs — the same engine this website runs on. The private link reads one number's codes; the reseller API buys numbers and manages everything at scale. Most resellers use both: the API to buy, the private links to read codes.

2. Step 1: create your account and top up in PKR

Create your free APIURL account and top up the wallet in PKR — the API spends from the same wallet balance as the shop, so no separate billing and no foreign card is needed. Open the deposit page inside your account for the current wallet top-up options, or message WhatsApp support at +92 313 5679467 if you need help. Keep enough balance for the numbers you plan to buy: a purchase fails if the wallet is short.

3. Step 2: find your API key in the API Reseller section

Sign in and open the API Reseller section inside your account — that is where your personal API key lives. Treat it like a password: never paste it into a public chat or a screenshot, and if it ever leaks, generate a fresh one. The exact endpoints and parameters are listed in that same section, so follow what your account shows you there.

4. Step 3: check balance and list providers before you buy

Before buying, your program should do two checks: the balance, so you never start a purchase the wallet cannot cover, and the providers for the service and country. Prices vary by provider and stock — check the live price at the moment you buy, because that is the price you pay. USA, UK, Canada and many more countries are available, for WhatsApp, Telegram, Facebook, Instagram, Gmail and many more services.

5. Step 4: buy the number

Buying through the API is one call: service, country, and the provider you chose. The number is delivered the second you pay, exactly as in the shop, and it arrives with its private link. Save both together, and note which number belongs to which job right away — a pile of bare numbers with no notes is how codes end up in the wrong account.

One thing to settle before you automate buying: API Numbers are final sale. They are delivered instantly with a private link, they keep checking for codes for 30 days, and they are never refunded — not at 25 minutes, not during the 30 days, and not when they expire. Do not automate API Number purchases for one-off verifications — that is what the OTP Numbers lane is for.

6. Step 5: fetch the code

Once the number is bought, enter it in the app you are verifying — set the country to match the number, type the digits exactly as shown, and ask the app to send the code by SMS. Then call the number's private link, or fetch the OTP through the reseller API. If nothing has arrived yet, wait and check again rather than hammering the request. Codes expire, so enter the one you receive right away.

For numbers bought by hand in the shop, sign in, open Check OTPs and enter the phone number to see every OTP it received with its exact date and time. Only the account that bought the number can view its history — your codes are not public.

7. API Numbers or OTP Numbers — which lane for automation?

Use API Numbers when the account will live: a WhatsApp Business profile, a Telegram channel, an exchange account, anything that may ask you to re-verify later. The 30-day private link covers re-verification after a reinstall or a new phone. Use the reseller API to buy them in quantity from Buy API Numbers and hand each one its own link.

Use OTP Numbers when it is a single registration and you want money-back protection: if no OTP arrives within 25 minutes, the full price returns to your wallet automatically — no ticket, no request, no waiting for an admin. If a code does arrive in time, the purchase is complete and is not refundable. Buy them from OTP Numbers whenever the guarantee matters more than a month of re-verification cover.

8. Running a shop on the API

This is what the API is really for. If you run your own number shop, the reseller API is your stock room: your system checks balance, lists providers, buys numbers as your customers order them, and reads the codes back through the links. Keep one number per customer account, keep your key out of anything a customer can see, and keep enough wallet balance topped up that a busy hour never leaves an order unpaid.

9. Three mistakes that cost API buyers money

First, sharing the key or a private link. A leaked key can spend your balance; a leaked link lets anyone read that number's codes. Both are private tokens — treat them that way. Second, automating API Number purchases for one-off jobs and then expecting a refund. There is none, by design; use OTP Numbers for those. Third, buying before checking live stock and price — availability changes through the day, and the price on the service page is the only price that counts.

Frequently asked questions

Do I need a separate account to use the API?

No. Every APIURL account gets API access — open the API Reseller section inside your account to find your personal API key. Same account, same wallet, same numbers.

What can the reseller API do?

With your personal API key you can check your balance, list providers, buy numbers and fetch OTPs.

How long does a number bought through the API keep working?

An API Number keeps receiving codes for 30 days from purchase, and its private link answers with the latest code the whole time.

Are numbers bought through the API refundable?

API Numbers are final sale — never refunded, not at 25 minutes, not during the 30 days, and not when they expire. For a refundable single verification, buy from OTP Numbers instead, which carry the 25-minute no-OTP full refund guarantee.

What if a platform rejects the number I bought?

Occasionally a platform refuses a specific number. Try a different country or provider. On OTP Numbers the 25-minute guarantee still protects you whenever no code arrives.

Is my API key the same as a number's private link?

No. Your API key is your account credential for the reseller API; a private link belongs to one number only and returns that number's latest code. Keep both private.

Create a free account, top up your wallet in PKR, and buy your first number through the API — delivered instantly, with its own private link.

Create a free account, top up your wallet in PKR, and your number is delivered instantly.