API-文档

主网址:

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

版本:

Activation

  • 描述

    Returns balance of account
  • 网址

    ?action=getBalance
  • 方法

    GET
  • 查询参数


  • 调用示例

    https://www.anosim.net/api/stubs/handler_api.php?api_key=XXX&action=getBalance
  • 响应参数

  • 响应示例

                                                                
    ACCESS_BALANCE:120.32
    
                                                            

  • 描述

    Returns all countries
  • 网址

    ?action=getCountries
  • 方法

    GET
  • 查询参数


  • 调用示例

    https://www.anosim.net/api/stubs/handler_api.php?api_key=XXX&action=getCountries
  • 响应参数

  • 响应示例

                                                                
    {
        "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
        },
        ...
    }
    
                                                            

  • 描述

    Returns all services
  • 网址

    ?action=getServicesList
  • 方法

    GET
  • 查询参数



  • 调用示例

    https://www.anosim.net/api/stubs/handler_api.php?api_key=XXX&action=getServicesList&country=43
  • 响应参数


  • 响应示例

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

  • 描述

    Returns countries by service
  • 网址

    ?action=getTopCountries
  • 方法

    GET
  • 查询参数



  • 调用示例

    https://www.anosim.net/api/stubs/handler_api.php?api_key=XXX&action=getTopCountriesByService&service=wa
  • 响应参数

  • 响应示例

                                                                
    {
        "0": {
            "country": 43,
            "price": 2.13,
            "count": 450,
            "priceMap": {
                "1.00": 100,
                "1.30": 150,
                "2.13": 200
            },
        },
        "1": {
            "country": 63,
            "price": 1.43
            "count": 160
            "priceMap": {
                "1.05": 70,
                "1.43": 30,
                "2.00": 60
            },
        },
        ...
    }
    
    OR without service in query
    
    {
        "wa": {
            "0": {
                "country": 43,
                "price": 2.13,
                "count": 450,
                "priceMap": {
                    "1.00": 300,
                    "1.30": 100,
                    "2.13": 50
                },
            },
            "1": {
                "country": 63,
                "price": 1.43,
                "count": 160,
                "priceMap": {
                    "1.05": 70,
                    "1.43": 30,
                    "2.00": 60
                },
            },
            ...
        },
        ...
        "go": {
            "0": {
                "country": 43,
                "price": 0.80,
                "count": 400,
                "priceMap": {
                    "1.00": 300,
                    "1.30": 100,
                    "2.13": 50
                },
            },
            "1": {
                "country": 63,
                "price": 0.47,
                "count": 150,
                "priceMap": {
                    "1.05": 70,
                    "1.43": 30,
                    "2.00": 50
                },
            },
            ...
        },
        ...
    }
    
                                                            

  • 描述

    Returns all prices and availablity
  • 网址

    ?action=getPrices
  • 方法

    GET
  • 查询参数




  • 调用示例

    https://www.anosim.net/api/stubs/handler_api.php?api_key=XXX&action=getPrices&country=43&service=fb
  • 响应参数





  • 响应示例

                                                                
    {
        ...
        "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
            },
            ...
        },
        ...
    }
                                                            

  • 描述

    Returns availability for one country
  • 网址

    ?action=getNumberStatus
  • 方法

    GET
  • 查询参数



  • 调用示例

    https://www.anosim.net/api/stubs/handler_api.php?api_key=XXX&action=getNumberStatus&country=43
  • 响应参数


  • 响应示例

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

  • 描述

    Request a number for activation
  • 网址

    ?action=getNumber
  • 方法

    GET
  • 查询参数





  • 调用示例

    https://www.anosim.net/api/stubs/handler_api.php?api_key=XXX&action=getNumber&country=43&service=wa&maxPrice=0
  • 响应参数



  • 响应示例

                                                                
    ACCESS_NUMBER:1:491731234567
    
                                                            

  • 描述

    Request a number for activation
  • 网址

    ?action=getNumberV2
  • 方法

    GET
  • 查询参数





  • 调用示例

    https://www.anosim.net/api/stubs/handler_api.php?api_key=XXX&action=getNumberV2&country=43&service=wa&maxPrice=0
  • 响应参数






  • 响应示例

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

  • 描述

    Returns status of an activation
  • 网址

    ?action=getStatus
  • 方法

    GET
  • 查询参数



  • 调用示例

    https://www.anosim.net/api/stubs/handler_api.php?api_key=XXX&action=getStatus&id=1
  • 响应参数


  • 响应示例

                                                                
    STATUS_OK:123456
    
                                                            

  • 描述

    Returns status of an activation
  • 网址

    ?action=getStatusV2
  • 方法

    GET
  • 查询参数



  • 调用示例

    https://www.anosim.net/api/stubs/handler_api.php?api_key=XXX&action=getStatusV2&id=1
  • 响应参数

  • 响应示例

                                                                
    {
        "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
    }
    
                                                            

  • 描述

    Returns full text of an activation
  • 网址

    ?action=getFullSms
  • 方法

    GET
  • 查询参数



  • 调用示例

    https://www.anosim.net/api/stubs/handler_api.php?api_key=XXX&action=getFullSms&id=1
  • 响应参数



  • 响应示例

                                                                
    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
    
                                                            

  • 描述

    Cancel an activation
  • 网址

    ?action=setStatus
  • 方法

    GET
  • 查询参数




  • 调用示例

    https://www.anosim.net/api/stubs/handler_api.php?api_key=XXX&action=setStatus&id=1&status=8
  • 响应参数

  • 响应示例

                                                                
    ACCESS_CANCEL
    
                                                            

Rent

  • 描述

    Returns availability for countries and services
  • 网址

    ?action=getRentServicesAndCountries
  • 方法

    GET
  • 查询参数




  • 调用示例

    https://www.anosim.net/api/stubs/handler_api.php?api_key={{api_key}}&action=getRentServicesAndCountries&country=43&time=168
  • 响应参数



  • 响应示例

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

  • 描述

    Request a number for rent
  • 网址

    ?action=getRentNumber
  • 方法

    GET
  • 查询参数






  • 调用示例

    https://www.anosim.net/api/stubs/handler_api.php?api_key=XXX&action=getRentNumber&country=43&service=wa&time=168&maxPrice=5.00
  • 响应参数


  • 响应示例

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

  • 描述

    Returns status of a rent
  • 网址

    ?action=getRentStatus
  • 方法

    GET
  • 查询参数



  • 调用示例

    https://www.anosim.net/api/stubs/handler_api.php?api_key=XXX&action=getRentStatus&id=1
  • 响应参数



  • 响应示例

                                                                
    {
        "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"
            }
        }
    }
    
                                                            

  • 描述

    Returns all current rents
  • 网址

    ?action=getRentList
  • 方法

    GET
  • 查询参数


  • 调用示例

    https://www.anosim.net/api/stubs/handler_api.php?api_key=XXX&action=getRentList
  • 响应参数


  • 响应示例

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

  • 描述

    Extend a rent number
  • 网址

    ?action=continueRentNumber
  • 方法

    GET
  • 查询参数




  • 调用示例

    https://www.anosim.net/api/stubs/handler_api.php?api_key=XXX&action=continueRentNumber&id=98&time=168
  • 响应参数


  • 响应示例

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

Infos

  • 描述

    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

  • 描述

    Infos for response types
  • List

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