API-Documentation

Main-Url

https://anosim.net/api/stubs/handler_api.php

Version

Activation

  • Description

    Returns balance of account
  • Url

    ?action=getBalance
  • Method

    GET
  • Query Parameters


  • Call Example

    https://anosim.net/api/stubs/handler_api.php?api_key=XXX&action=getBalance
  • Response Parameter

  • Response Example

                                                                
    ACCESS_BALANCE:120.32
    
                                                                                

  • Description

    Returns all countries
  • Url

    ?action=getCountries
  • Method

    GET
  • Query Parameters


  • Call Example

    https://anosim.net/api/stubs/handler_api.php?api_key=XXX&action=getCountries
  • Response Parameter

  • Response Example

                                                                
    {
        "0": {
            "id": 0,
            "rus": "Россия",
            "eng": "Russia",
            "chn": "俄罗斯",
            "visible": 0,
            "retry": 0,
            "rent": 0,
            "multiService": 0
        },
        ...
        "41": {
            "id": 43,
            "rus": "Германия",
            "eng": "Germany",
            "chn": "德国",
            "visible": 1,
            "retry": 0,
            "rent": 1,
            "multiService": 0
        },
        ...
    }
    
                                                                                

  • Description

    Returns all services
  • Url

    ?action=getServicesList
  • Method

    GET
  • Query Parameters



  • Call Example

    https://anosim.net/api/stubs/handler_api.php?api_key=XXX&action=getServicesList&country=43
  • Response Parameter


  • Response Example

                                                                
    {
        "status": "success",
        "services": [
            {
                "code": "wa",
                "name": "WhatsApp"
            },
            {
                "code": "fb",
                "name": "Facebook"
            },
            {
                "code": "11a",
                "name": "11admiral-x.com"
            },
            ...
        ]
    }
                                                                                

  • Description

    Returns countries by service
  • Url

    ?action=getTopCountries
  • Method

    GET
  • Query Parameters



  • Call Example

    https://anosim.net/api/stubs/handler_api.php?api_key=XXX&action=getTopCountriesByService&service=wa
  • Response Parameter

  • Response Example

                                                                
    {
        "0": {
            "country": 43,
            "price": 2.13,
            "count": 450
        },
        "1": {
            "country": 63,
            "price": 1.43
            "count": 160
        },
        ...
    }
    
    OR without service in query
    
    {
        "wa": {
            "0": {
                "country": 43,
                "price": 2.13,
                "count": 450
            },
            "1": {
                "country": 63,
                "price": 1.43,
                "count": 160
            },
            ...
        },
        ...
        "go": {
            "0": {
                "country": 43,
                "price": 0.80,
                "count": 400
            },
            "1": {
                "country": 63,
                "price": 0.47,
                "count": 150
            },
            ...
        },
        ...
    }
    
                                                                                

  • Description

    Returns all prices and availablity
  • Url

    ?action=getPrices
  • Method

    GET
  • Query Parameters




  • Call Example

    https://anosim.net/api/stubs/handler_api.php?api_key=XXX&action=getPrices&country=43&service=fb
  • Response Parameter





  • Response Example

                                                                
    {
        ...
        "43": {
            "wa": {
                "cost": 2.1,
                "count": 60,
                "physicalCount": 60
            },
            "fb": {
                "cost": 0.3,
                "count": 96,
                "physicalCount": 96
            },
            ...
        },
        ...
        "63": {
            "wa": {
                "cost": 1.45,
                "count": 430,
                "physicalCount": 430
            },
            "fb": {
                "cost": 0.35,
                "count": 575,
                "physicalCount": 575
            },
            ...
        },
        ...
    }
                                                                                

  • Description

    Returns availability for one country
  • Url

    ?action=getNumberStatus
  • Method

    GET
  • Query Parameters



  • Call Example

    https://anosim.net/api/stubs/handler_api.php?api_key=XXX&action=getNumberStatus&country=43
  • Response Parameter


  • Response Example

                                                                
    {
        "wa": "450",
        "go": "400",
        ...
    }
                                                                                

  • Description

    Request a number for activation
  • Url

    ?action=getNumber
  • Method

    GET
  • Query Parameters




  • Call Example

    https://anosim.net/api/stubs/handler_api.php?api_key=XXX&action=getNumber&country=43&service=wa
  • Response Parameter



  • Response Example

                                                                
    ACCESS_NUMBER:1:491731234567
    
                                                                                

  • Description

    Request a number for activation
  • Url

    ?action=getNumberV2
  • Method

    GET
  • Query Parameters




  • Call Example

    https://anosim.net/api/stubs/handler_api.php?api_key=XXX&action=getNumberV2&country=43&service=wa
  • Response Parameter






  • Response Example

                                                                
    {
        "activationId": 1,
        "phoneNumber": "491731234567",
        "activationCost": 2.13,
        "countryCode": 43,
        "canGetAnotherSms": 0,
        "activationTime": "2024-01-01 12:15:00"
    }
                                                                                

  • Description

    Returns status of an activation
  • Url

    ?action=getStatus
  • Method

    GET
  • Query Parameters



  • Call Example

    https://anosim.net/api/stubs/handler_api.php?api_key=XXX&action=getStatus&id=1
  • Response Parameter


  • Response Example

                                                                
    STATUS_OK:123456
    
                                                                                

  • Description

    Returns status of an activation
  • Url

    ?action=getStatusV2
  • Method

    GET
  • Query Parameters



  • Call Example

    https://anosim.net/api/stubs/handler_api.php?api_key=XXX&action=getStatusV2&id=1
  • Response Parameter

  • Response Example

                                                                
    {
        "sms": {
            "dateTime": "2024-01-01 12:16:13",
            "code": "123456",
            "text": "Your WhatsApp code: 123-456 You can also tap on this link to verify your phone: v.whatsapp.com/123456 Don't share this code with others 1abCd2g3iJ4"
        }
    }
    
    or when STATUS_WAIT_CODE
    
    {
        "sms": null
    }
    
                                                                                

  • Description

    Returns full text of an activation
  • Url

    ?action=getFullSms
  • Method

    GET
  • Query Parameters



  • Call Example

    https://anosim.net/api/stubs/handler_api.php?api_key=XXX&action=getFullSms&id=1
  • Response Parameter



  • Response Example

                                                                
    FULL_SMS:[WhatsApp] Your WhatsApp code: 123-456 You can also tap on this link to verify your phone: v.whatsapp.com/123456 Don't share this code with others 1abCd2g3iJ4
    
                                                                                

  • Description

    Cancel an activation
  • Url

    ?action=setStatus
  • Method

    GET
  • Query Parameters




  • Call Example

    https://anosim.net/api/stubs/handler_api.php?api_key=XXX&action=setStatus&id=1&status=8
  • Response Parameter

  • Response Example

                                                                
    ACCESS_CANCEL
    
                                                                                

Rent

  • Description

    Returns availability for countries and services
  • Url

    ?action=getRentServicesAndCountries
  • Method

    GET
  • Query Parameters




  • Call Example

    https://anosim.net/api/stubs/handler_api.php?api_key={{api_key}}&action=getRentServicesAndCountries&country=43&time=168
  • Response Parameter



  • Response Example

                                                                
    {
        "countries": {
            "0": 43,
            "1": 63,
            ...
        },
        "operators": {
            "0": "Any"
        },
        "services": {
            "full": {
                "cost": 10.85,
                "quant": 150
            },
            ...
            "wa": {
                "cost": 6.00,
                "quant": 200
            },
            ...
        },
        "realHours": 168
    }
                                                                                

  • Description

    Request a number for rent
  • Url

    ?action=getRentNumber
  • Method

    GET
  • Query Parameters





  • Call Example

    https://anosim.net/api/stubs/handler_api.php?api_key=XXX&action=getRentNumber&country=43&service=wa&time=168
  • Response Parameter


  • Response Example

                                                                
    {
        "status": "success",
        "phone": {
            "id": 2,
            "endDate": "2024-01-07 13:00:00",
            "number": "491731234568"
        }
    }
    
                                                                                

  • Description

    Returns status of a rent
  • Url

    ?action=getRentStatus
  • Method

    GET
  • Query Parameters



  • Call Example

    https://anosim.net/api/stubs/handler_api.php?api_key=XXX&action=getRentStatus&id=1
  • Response Parameter



  • Response Example

                                                                
    {
        "status": "success",
        "quantity": 2,
        "values": {
            "0": {
                "phoneFrom": "WhatsApp",
                "text": "Your WhatsApp code: 345-678 You can also tap on this link to verify your phone: v.whatsapp.com/3456789 Don't share this code with others 3abCd4g5iJ6",
                "service": "wa",
                "date": "2024-01-01 13:16:30"
            },
            "1": {
                "phoneFrom": "WhatsApp",
                "text": "Your WhatsApp code: 234-567 You can also tap on this link to verify your phone: v.whatsapp.com/234567 Don't share this code with others 2abCd3g4iJ5",
                "service": "wa",
                "date": "2024-01-01 13:15:15"
            }
        }
    }
    
                                                                                

  • Description

    Returns all current rents
  • Url

    ?action=getRentList
  • Method

    GET
  • Query Parameters


  • Call Example

    https://anosim.net/api/stubs/handler_api.php?api_key=XXX&action=getRentList
  • Response Parameter


  • Response Example

                                                                
    {
        "status": "success",
        "values": {
            "0": {
                "id": 2,
                "number": "491731234568"
            },
            "1": {
                "id": 3,
                "number": "491731234569"
            }
        }
    }
    
                                                                                

  • Description

    Extend a rent number
  • Url

    ?action=continueRentNumber
  • Method

    GET
  • Query Parameters




  • Call Example

    https://anosim.net/api/stubs/handler_api.php?api_key=XXX&action=continueRentNumber&id=98&time=168
  • Response Parameter


  • Response Example

                                                                
    {
        "status": "success",
        "phone": {
            "id": 2,
            "endDate": "2024-01-07 13:00:00",
            "number": "491731234568"
        }
    }
    
                                                                                

Infos

  • Description

    List of possible errors
  • List

    wrong or no action found

    invalid apikey

    wrong service name

    wrong country id

    activation id does not exist

    no country found

    not enough balance to create order

    account is banned (BANNED:'{till-date}')

    request is blocked due to too many concurrent requests

    activation is ready

    activation was successful

    activation was canceled or not used

    waiting for sms

    activation was canceled or not used

    activation-code received

    rent ID is not specified

    no rented numbers

    incorrect rent ID

    rent cannot be extended because the number has expired

  • Description

    Infos for response types
  • List

    will always returned in UTC as string. Format: yyyy-MM-dd HH:mm:ss