API

API KEY

YOUR_API_KEY

API URL

https://activate-api.smsverified.com/stubs/handler_api.php

getBalance

获取余额

资料描述

获取用户余额

参数

名称类型资料描述
api_keyStringYour API KEY
actionStringgetBalance

响应类型

text/html

示例请求

https://activate-api.smsverified.com/stubs/handler_api.php?api_key=API_KEY&action=getBalance

示例响应

ACCESS_BALANCE:44.60

getCountries

获取可用国家

资料描述

获取有可用号码的国家

参数

名称类型资料描述
api_keyStringYour API KEY
actionStringgetCountries

响应类型

application/json

示例请求

https://activate-api.smsverified.com/stubs/handler_api.php?api_key=API_KEY&action=getCountries

示例响应

{
  "31": {
    "id": 48,
    "rus": "Нидерланды",
    "eng": "Netherlands",
    "chn": "荷兰",
    "visible": 1,
    "rent": 0
  },
  "33": {
    "id": 78,
    "rus": "Франция",
    "eng": "France",
    "chn": "法國",
    "visible": 1,
    "rent": 0
  }
}

getNumbersStatus

获取可用号码信息

资料描述

获取服务的可用号码信息

参数

名称类型资料描述
api_keyStringYour API KEY
actionStringgetNumbersStatus
countryNumberID of the country

响应类型

application/json

示例请求

https://activate-api.smsverified.com/stubs/handler_api.php?api_key=API_KEY&action=getNumbersStatus&country=78

示例响应

{
  "yahoo_0": 167,
  "wolt_0": 416,
  "telegram_0": 76,
  "snapchat_0": 391,
  "yemeksepeti_0": 416,
  "amazon_0": 83
}

getNumber

获取激活号码

资料描述

获取激活号码。返回响应 ACCESS_NUMBER:ACCESS_ID:NUMBER,其中 ACCESS_ID 是号码的 ID,NUMBER 是号码本身

参数

名称类型资料描述
api_keyStringYour API KEY
actionStringgetNumber
countryNumberID of the country
serviceStringname of the service
maxPriceNumbermaximum price for the number in USD (for example 1.2)
activationTypeNumberactivation type (0 - receive SMS (code in SMS); 1 - call (code as the calling number); 2 - voice message (the robot calls and the code is spoken by the robot voice)). Default is 0 - SMS

响应类型

text/html

示例请求

https://activate-api.smsverified.com/stubs/handler_api.php?api_key=API_KEY&action=getNumber&country=48&service=vk

示例响应

ACCESS_NUMBER:8601705018416664:33774545375

getStatus

获取激活代码

资料描述

此请求返回指定号码收到的短信中的短代码(要查看消息的全文,请检查 getFullSms 请求)。当您确定消息中没有其他值得存储或使用的信息时,可以使用此请求。否则,请考虑使用 getFullSms 请求。

Server response:
STATUS_OK:CODE - Code received (where CODE - activation code)
STATUS_WAIT_CODE - We are waiting for the arrival of SMS
STATUS_WAIT_RETRY:LASTCODE - We are waiting for another SMS LASTCODE - last received sms
STATUS_CANCEL - activation canceled
NO_ACTIVATION - activation is not found,
BAD_ACTION - invalid action

参数

名称类型资料描述
api_keyStringYour API KEY
actionStringgetStatus
idNumberID of activation

响应类型

text/html

示例请求

https://activate-api.smsverified.com/stubs/handler_api.php?api_key=API_KEY&action=getStatus&id=2791705004917001

示例响应

STATUS_OK:877613

getFullSms

获取完整短信

资料描述

此请求返回指定号码收到的完整短信内容。当 getStatus 提供的信息不足以理解或您需要消息中包含的数据时,例如当短信不仅包含验证码,还包含促销代码链接、接收的日期和时间或您希望在应用程序中使用的任何其他信息时,您可能需要使用此请求。 如果有短信,响应格式将是:'FULL_SMS:[sender] SMS_message'

参数

名称类型资料描述
api_keyStringYour API KEY
actionStringgetFullSms
idNumberID of activation

响应类型

text/html

示例请求

https://activate-api.smsverified.com/stubs/handler_api.php?api_key=API_KEY&action=getFullSms&id=2791705004917001

示例响应

FULL_SMS:[vk] 877613

setStatus

更新激活状态

资料描述

此请求允许您根据操作结果更改操作状态(取消操作,获取下一个短信代码,关闭操作)。当您的应用程序需要从此号码收到的第二条消息中检索信息时,您可能希望使用此请求来明确更改操作状态。

Status code:
1 - inform when the phone number is ready (SMS was sent to this number),
3 - request digital code from the next message,
6 - close the operation
8 - Cancel the activation (if the number does not match you)
Server response:
ACCESS_READY - SMS waiting readiness
ACCESS_RETRY_GET - activation is successfully created, but the number is not ready yet,
ACCESS_ACTIVATION - Activation completed successfully
ACCESS_CANCEL - activation is canceled,
NO_ACTIVATION - activation is not found,
BAD_ACTION - invalid action

参数

名称类型资料描述
api_keyStringYour API KEY
actionStringsetStatus
idNumberID of activation
statusNumberActivation status

响应类型

text/html

示例请求

https://activate-api.smsverified.com/stubs/handler_api.php?api_key=API_KEY&action=setStatus&id=2791705004917001&status=1

示例响应

ACCESS_ACTIVATION

getPrices

Getting information about prices.

资料描述

Getting information about prices. Returns JSON {Country: {Service: {cost: Cost, count: Count}}}

参数

名称类型资料描述
api_keyStringYour API KEY
actionStringgetPrices

响应类型

application/json

示例请求

https://activate-api.smsverified.com/stubs/handler_api.php?api_key=API_KEY&action=getPrices

示例响应

{
  "england": {
    "mb": {
      "count": 4123,
      "price": 0.4
    },
    "am": {
      "count": 4017,
      "price": 0.11
    }
  },
  "france": {
    "mb": {
      "count": 2123,
      "price": 0.13
    },
    "am": {
      "count": 2014,
      "price": 0.2
    }
  }
}