Virtual Phone Number Capture API

The Virtual Phone Number Capture API allows users to create phone numbers for multiple countries, making it ideal for applications that require phone verification and SMS reception.

About the API: 

The Virtual Phone Number Capture API is a robust tool that allows users to create virtual phone numbers in various countries effortlessly. This API is especially beneficial for applications that require phone verification, as it provides a quick and easy way to generate phone numbers capable of receiving SMS messages.

A key advantage of the API is its flexibility. It supports a wide range of countries, allowing users to generate virtual phone numbers for global locations. This makes it an invaluable resource for applications with international reach or that need verification in different regions.

The API is also designed for ease of use. Users can generate virtual phone numbers with a few simple API calls, specifying the country and other parameters as needed. The API then provides a unique phone number for SMS verification, effectively streamlining the process.

In addition to its ease of use and flexibility, the API is highly secure. It employs advanced encryption and authentication techniques to protect user privacy and prevent fraud, ensuring secure use of the generated phone numbers.

Suitable for a variety of applications, such as e-commerce, social media and financial software, the API helps online retailers verify customer phone numbers and social media platforms confirm user identities.

Overall, the Virtual Phone Number Capture API is an essential tool for developers who need virtual phone numbers for SMS verification, combining flexibility, ease of use and strong security for multi-country applications.

 

What this API receives and what your API provides (input/output)?

Call the API to receive a generated phone number, and check the sms received as well. 

 

What are the most common uses cases of this API?

  1. SMS Verification: One of the most common use cases for the Virtual Phone Number Capture API is SMS verification. Many applications require users to verify their phone numbers by entering a code sent to their phone via SMS. The API can be used to generate virtual phone numbers for this purpose, allowing users to receive the verification code without having to share their personal phone number.

  2. Customer Support: The Virtual Phone Number Capture API can also be used in customer support applications. By generating a virtual phone number, businesses can provide customers with a phone number to call for support without having to share their personal phone number. This can help to protect the privacy of both the business and the customer.

  3. Marketing Campaigns: Virtual phone numbers generated by the API can also be used in marketing campaigns. Businesses can use the numbers to track the effectiveness of their campaigns by assigning different numbers to different campaigns or channels. This can help businesses to better understand which marketing channels are most effective for reaching their target audience.

  4. Fraud Prevention: The Virtual Phone Number Capture API can also be used for fraud prevention. By generating a virtual phone number for a user, businesses can ensure that the user is not using a fake or fraudulent phone number. This can help to prevent fraud in applications such as financial software, where verifying the identity of the user is critical.

  5. International Expansion: Finally, the Virtual Phone Number Capture API can be used for international expansion. By generating virtual phone numbers for different countries, businesses can expand their operations into new regions without having to establish a physical presence. This can be particularly useful for online businesses or startups that are looking to expand globally.

 

Are there any limitations to your plans?

Besides the number of API calls, there is no other limitation

API Documentation

Endpoints


Use this endpoint to get the list of all available countries. Where you can get the country code to use in the Get Number by Country Id endpoint.



                                                                            
GET https://zylalabs.com/api/4956/virtual+phone+number+capture+api/6244/get+countries
                                                                            
                                                                        

Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"status":200,"success":true,"message":"","data":[{"countryCode":"1","countryName":"United States\n                                        "},{"countryCode":"1","countryName":"Canada\n                                        "},{"countryCode":"44","countryName":"United Kingdom\n                                        "},{"countryCode":"34","countryName":"Spain\n                                        "},{"countryCode":"380","countryName":"Ukraine\n                                        "},{"countryCode":"972","countryName":"Israel\n                                        "},{"countryCode":"230","countryName":"Mauritius\n                                        "},{"countryCode":"91","countryName":"India\n                                        "},{"countryCode":"385","countryName":"Croatia\n                                        "},{"countryCode":"351","countryName":"Portugal\n                                        "},{"countryCode":"66","countryName":"Thailand\n                                        "},{"countryCode":"381","countryName":"Serbia\n                                        "},{"countryCode":"52","countryName":"Mexico\n                                        "},{"countryCode":"55","countryName":"Brazil\n                                        "},{"countryCode":"234","countryName":"Nigeria\n                                        "}]}
                                                                                                                                                                                                                    
                                                                                                    

Get Countries - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/4956/virtual+phone+number+capture+api/6244/get+countries' --header 'Authorization: Bearer YOUR_API_KEY' 


    

Gets the currently available numbers listed by the given country id.

The numbers obtained can be used in the Check SMS history endpoint.



                                                                            
GET https://zylalabs.com/api/4956/virtual+phone+number+capture+api/6245/get+number+by+country+id
                                                                            
                                                                        

Get Number by Country Id - Endpoint Features

Object Description
countryCode [Required] The country id retrieved on "Get Code" endpoint.
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"status":200,"success":true,"message":"","data":["13132005402","13132008109","13135243034","16465386464","13132091910"]}
                                                                                                                                                                                                                    
                                                                                                    

Get Number by Country Id - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/4956/virtual+phone+number+capture+api/6245/get+number+by+country+id?countryCode=Required' --header 'Authorization: Bearer YOUR_API_KEY' 


    

View all SMS received from the indicated number and country code.

Note: Remember that when inserting a number obtained from the Get Number by Country Id endpoint, you must delete the first 2 digits, when loading them in the



                                                                            
GET https://zylalabs.com/api/4956/virtual+phone+number+capture+api/6246/check+sms+history
                                                                            
                                                                        

Check SMS history - Endpoint Features

Object Description
countryCode [Required]
phoneNumber [Required]
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"status":200,"success":true,"message":"SMS History for 13132005402","data":[{"from":"Loans4u","text":"Your DENT code is: 279806","myNumber":"13132005402","createdAt":"1 minute ago"},{"from":"16612013428","text":"LINK BASITN ll 365aibot.vip ll acc**nt:Richard Pa**rd:Time010835 Av**abe: 1,147,345.459 TG","myNumber":"13132005402","createdAt":"3 minutes ago"},{"from":"18559090331","text":"Your OKX verification code is: 307568. This code will expire in 10 minutes. Don't share this code with anyone; our employees will never ask for the co","myNumber":"13132005402","createdAt":"3 minutes ago"},{"from":"16508259598","text":"[WEBULL]The verification code is 104244, valid for 10 minutes. If you did not initiate this request, please check your account security.","myNumber":"13132005402","createdAt":"4 minutes ago"},{"from":"22395","text":"Your Nomad Seguran\u00e7a verification code is: 870732","myNumber":"13132005402","createdAt":"4 minutes ago"},{"from":"18559090331","text":"Your OKX verification code is: 971585. This code will expire in 10 minutes. Don't share this code with anyone; our employees will never ask for the co","myNumber":"13132005402","createdAt":"4 minutes ago"},{"from":"32665","text":"998067 is your Instagram code. Don't share it.","myNumber":"13132005402","createdAt":"4 minutes ago"},{"from":"2300","text":"0605040B8423F0,BF0605BE8D80AF848C82986D2D362D62662D382D3665393161662D61302D64352D35008D92891A8018832B31333433323931393630342F545950453D504C4D4E008A808","myNumber":"13132005402","createdAt":"5 minutes ago"},{"from":"69525","text":"Use verification code 656126 for Microsoft authentication.","myNumber":"13132005402","createdAt":"6 minutes ago"},{"from":"2300","text":"0605040B8423F0,2B0605BE8D80AF848C82986D2D372D32622D352D3665363936372D38312D35642D33008D92891A8018832B31333433323931393630342F545950453D504C4D4E008A808","myNumber":"13132005402","createdAt":"6 minutes ago"},{"from":"17606425802","text":"DO NOT share this code with anyone. DoorDash will NEVER ask you for this code: 354127.","myNumber":"13132005402","createdAt":"6 minutes ago"},{"from":"32665","text":"614863 is your Instagram code. Don't share it.","myNumber":"13132005402","createdAt":"6 minutes ago"},{"from":"74673","text":"Hi Kenn*** - welcome to Rinse! Reply \"Y\" by 7pm any day of the week to schedule a same-day pickup. You can also message our Customer Care team here at","myNumber":"13132005402","createdAt":"6 minutes ago"},{"from":"78008","text":"Login.gov: Your one-time code is 367968. It expires in 10 minutes. Don't share this code with anyone.\n\[email protected] #367968","myNumber":"13132005402","createdAt":"8 minutes ago"},{"from":"31061","text":"noplace code: 1933. Valid for 3 minutes.","myNumber":"13132005402","createdAt":"9 minutes ago"},{"from":"31061","text":"noplace code: 1027. Valid for 3 minutes.","myNumber":"13132005402","createdAt":"9 minutes ago"},{"from":"YTRIVIA","text":"4409 Verification Code from KakaoTalk. [KakaoTalk]","myNumber":"13132005402","createdAt":"10 minutes ago"},{"from":"18442360113","text":"767160 is your verification code. Don't share it with anyone.","myNumber":"13132005402","createdAt":"11 minutes ago"},{"from":"31061","text":"RealCaller code: 419253. Valid for 5 minutes.","myNumber":"13132005402","createdAt":"11 minutes ago"},{"from":"886961591265","text":"(Zalo) 3348 la ma kich hoat cua so dien thoai 14704278929. Vui long nhap ma nay vao ung dung Zalo de kich hoat tai khoan.","myNumber":"13132005402","createdAt":"11 minutes ago"},{"from":"14155499266","text":"3221 is your Uber code.","myNumber":"13132005402","createdAt":"11 minutes ago"},{"from":"20312","text":"43482 is your one time p***word to proceed on PhonePe. It is valid for 10 minutes. Do not share your OTP with anyone. gZBmDyq76e3","myNumber":"13132005402","createdAt":"12 minutes ago"},{"from":"18333022004","text":"BulkSMS.com covers over 1200 networks worldwide, including yours!","myNumber":"13132005402","createdAt":"13 minutes ago"},{"from":"14325353346","text":"\u0644\u0644\u062a\u062d\u0642\u0642 \u064a\u0631\u062c\u0649 \u0625\u062f\u062e\u0627\u0644 \u0631\u0645\u0632 636674","myNumber":"13132005402","createdAt":"13 minutes ago"},{"from":"12029789960","text":"[TikTok] 802543 is your verification code, valid for 5 minutes. To keep your account safe, never forward this code.","myNumber":"13132005402","createdAt":"14 minutes ago"},{"from":"35213","text":"103179 is your Amazon OTP. Do not share it with anyone.","myNumber":"13132005402","createdAt":"14 minutes ago"},{"from":"17606425802","text":"DO NOT share this code with anyone. DoorDash will NEVER ask you for this code: 261930.\n\neLJXxlCcpAm","myNumber":"13132005402","createdAt":"16 minutes ago"},{"from":"32665","text":"144500 is your Instagram code. Don't share it.","myNumber":"13132005402","createdAt":"16 minutes ago"},{"from":"35213","text":"719507 est votre mot de p***e \u00e0 usage unique Amazon. Ne le partagez pas avec qui que ce soit.","myNumber":"13132005402","createdAt":"17 minutes ago"},{"from":"17606425802","text":"DO NOT share this code with anyone. DoorDash will NEVER ask you for this code: 245165.\n\neLJXxlCcpAm","myNumber":"13132005402","createdAt":"18 minutes ago"},{"from":"28581","text":"Cash App: This code is for you and only you. Code: 410-299. To prevent fraud, never share it anywhere or with anyone, including people posing as Cash","myNumber":"13132005402","createdAt":"18 minutes ago"},{"from":"17606425802","text":"DO NOT share this code with anyone. DoorDash will NEVER ask you for this code: 119507.","myNumber":"13132005402","createdAt":"19 minutes ago"},{"from":"22395","text":"Your Accounts Dev verification code is: 065804","myNumber":"13132005402","createdAt":"20 minutes ago"},{"from":"18334405562","text":"[TikTok] 122980 is your verification code, valid for 5 minutes. To keep your account safe, never forward this code.","myNumber":"13132005402","createdAt":"20 minutes ago"},{"from":"22395","text":"297514 is your verification code for GoFundMe.","myNumber":"13132005402","createdAt":"21 minutes ago"},{"from":"18336935121","text":"[netease]Verification code: 325411","myNumber":"13132005402","createdAt":"22 minutes ago"},{"from":"18336935121","text":"[netease]Verification code: 399931","myNumber":"13132005402","createdAt":"25 minutes ago"},{"from":"18582642872","text":"Your DENT code is: 842711","myNumber":"13132005402","createdAt":"26 minutes ago"},{"from":"69525","text":"Use verification code 543982 for Microsoft authentication.","myNumber":"13132005402","createdAt":"26 minutes ago"},{"from":"22395","text":"Your Accounts Dev verification code is: 982048","myNumber":"13132005402","createdAt":"26 minutes ago"}]}
                                                                                                                                                                                                                    
                                                                                                    

Check SMS history - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/4956/virtual+phone+number+capture+api/6246/check+sms+history?countryCode=Required&phoneNumber=Required' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Virtual Phone Number Capture API REST API, simply include your bearer token in the Authorization header.
Headers
Header Description
Authorization [Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.

Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

πŸš€ Enterprise

Starts at
$ 10,000/Year


  • Custom Volume
  • Custom Rate Limit
  • Specialized Customer Support
  • Real-Time API Monitoring

Customer favorite features

  • βœ”οΈŽ Only Pay for Successful Requests
  • βœ”οΈŽ Free 7-Day Trial
  • βœ”οΈŽ Multi-Language Support
  • βœ”οΈŽ One API Key, All APIs.
  • βœ”οΈŽ Intuitive Dashboard
  • βœ”οΈŽ Comprehensive Error Handling
  • βœ”οΈŽ Developer-Friendly Docs
  • βœ”οΈŽ Postman Integration
  • βœ”οΈŽ Secure HTTPS Connections
  • βœ”οΈŽ Reliable Uptime

The Virtual Phone Number Capture API allows users to generate virtual phone numbers for various countries. By making API calls, developers can request a phone number and specify parameters such as the country. The API then returns a generated phone number that can be used for SMS verification.

To generate a virtual phone number, you need to call the API without any specific input parameters. The API will automatically generate a phone number for you.

The API provides a generated phone number as output. This phone number can be used for SMS verification purposes. Developers can receive SMS messages sent to the generated phone number and use them for phone verification in their applications.

Yes, the Virtual Phone Number Generator API supports a wide range of countries. You can specify the desired country as a parameter when making the API call. This allows you to generate phone numbers for specific countries or regions as needed.

Yes, the API prioritizes user privacy and security. It incorporates advanced encryption and authentication techniques to ensure the safe and secure generation and usage of phone numbers. The API is designed to protect user privacy and prevent fraud, making it a secure option for generating virtual phone numbers for SMS verification.

Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world’s most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.

The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.

Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]

Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.

API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.

Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.

To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.

To check how many API calls you have left for the current month, refer to the β€˜X-Zyla-API-Calls-Monthly-Remaining’ field in the response header. For example, if your plan allows 1000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.

To see the maximum number of API requests your plan allows, check the β€˜X-Zyla-RateLimit-Limit’ response header. For instance, if your plan includes 1000 requests per month, this header will display 1000.

The β€˜X-Zyla-RateLimit-Reset’ header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3600, it means 3600 seconds are left until the limit resets.

Yes, you can cancel your plan anytime by going to your account and selecting the cancellation option on the Billing page. Please note that upgrades, downgrades, and cancellations take effect immediately. Additionally, upon cancellation, you will no longer have access to the service, even if you have remaining calls left in your quota.

You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

To let you experience our APIs without any commitment, we offer a 7-day free trial that allows you to make API calls at no cost during this period. Please note that you can only use this trial once, so make sure to use it with the API that interests you the most. Most of our APIs provide a free trial, but some may not support it.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it’s important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.

When you subscribe to an API trial, you can make only 25% of the calls allowed by that plan. For example, if the API plan offers 1000 calls, you can make only 250 during the trial. To access the full number of calls offered by the plan, you will need to subscribe to the full plan.


Related APIs