SMSPVAdevelopers
Rental API
SMSPVA / DOCUMENTATION

Multi-service count

GET /api/rent.php?method=get_count_multi

SMSPVA API
GEThttps://smspva.com/api/rent.php?method=get_count_multi

Send a GET request and check status in the JSON response: 1 means success and 0 means failure, even with HTTP 200. If it fails, read msg for the reason.

Authentication

You can call this method without an API key.

Parameters

NameLocationTypeRequiredExampleDescription
methodquerystringYes"get_count_multi"Method name
countryquerystringYes"KZ"Country code of number Countries list
servicesquerystringYes"opt1,opt2"Services codes separated by commas Services list
dtypequerystringNo"week"Type of period: week or month
dcountqueryintegerNo1Count type of period, i.e. if dtype=week then counts of weeks

How to use this method

Check how many numbers support your combination of services. Send the codes together in services. Always pass dtype and dcount explicitly for this method; its backend defaults are not reliable.

Request examples

Environment and dependencies. Each example encodes query values and allows 30 seconds for the request. Check HTTP and JSON status before using data. cURL prints the response for you to check; Java uses Jackson to read the JSON.

curl --get --fail-with-body --max-time 30 "https://smspva.com/api/rent.php" \
  --data-urlencode "method=get_count_multi" \
  --data-urlencode "country=KZ" \
  --data-urlencode "services=opt1,opt2" \
  --data-urlencode "dtype=week" \
  --data-urlencode "dcount=1"

Responses

Check the response that matches your request. Example values and dates are illustrative. Optional fields can depend on the outcome or the response format you selected.

HTTP 200

Success

application/json

Illustrative response

{
  "status": 1,
  "data": {
    "count": 10
  }
}
NameTypeDescription
statusintegerStatus of the response: 1 for success, 0 for failure
dataobject
data.countinteger
msgstringError message when status is 0.

On this page