API-Dokumentation

Haupt-URL:

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

Version:

Activation

  • Beschreibung

    Returns balance of account
  • URL

    ?action=getBalance
  • Methode

    GET
  • Abfrageparameter


  • Aufrufbeispiel

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

  • Antwortbeispiel

                                                                
    ACCESS_BALANCE:120.32
    
                                                            

  • Beschreibung

    Returns all countries
  • URL

    ?action=getCountries
  • Methode

    GET
  • Abfrageparameter


  • Aufrufbeispiel

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

  • Antwortbeispiel

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

  • Beschreibung

    Returns all services
  • URL

    ?action=getServicesList
  • Methode

    GET
  • Abfrageparameter



  • Aufrufbeispiel

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


  • Antwortbeispiel

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

  • Beschreibung

    Returns countries by service
  • URL

    ?action=getTopCountries
  • Methode

    GET
  • Abfrageparameter



  • Aufrufbeispiel

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

  • Antwortbeispiel

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

  • Beschreibung

    Returns all prices and availablity
  • URL

    ?action=getPrices
  • Methode

    GET
  • Abfrageparameter




  • Aufrufbeispiel

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





  • Antwortbeispiel

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

  • Beschreibung

    Returns availability for one country
  • URL

    ?action=getNumberStatus
  • Methode

    GET
  • Abfrageparameter



  • Aufrufbeispiel

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


  • Antwortbeispiel

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

  • Beschreibung

    Request a number for activation
  • URL

    ?action=getNumber
  • Methode

    GET
  • Abfrageparameter





  • Aufrufbeispiel

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



  • Antwortbeispiel

                                                                
    ACCESS_NUMBER:1:491731234567
    
                                                            

  • Beschreibung

    Request a number for activation
  • URL

    ?action=getNumberV2
  • Methode

    GET
  • Abfrageparameter





  • Aufrufbeispiel

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






  • Antwortbeispiel

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

  • Beschreibung

    Returns status of an activation
  • URL

    ?action=getStatus
  • Methode

    GET
  • Abfrageparameter



  • Aufrufbeispiel

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


  • Antwortbeispiel

                                                                
    STATUS_OK:123456
    
                                                            

  • Beschreibung

    Returns status of an activation
  • URL

    ?action=getStatusV2
  • Methode

    GET
  • Abfrageparameter



  • Aufrufbeispiel

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

  • Antwortbeispiel

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

  • Beschreibung

    Returns full text of an activation
  • URL

    ?action=getFullSms
  • Methode

    GET
  • Abfrageparameter



  • Aufrufbeispiel

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



  • Antwortbeispiel

                                                                
    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
    
                                                            

  • Beschreibung

    Cancel an activation
  • URL

    ?action=setStatus
  • Methode

    GET
  • Abfrageparameter




  • Aufrufbeispiel

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

  • Antwortbeispiel

                                                                
    ACCESS_CANCEL
    
                                                            

Rent

  • Beschreibung

    Returns availability for countries and services
  • URL

    ?action=getRentServicesAndCountries
  • Methode

    GET
  • Abfrageparameter




  • Aufrufbeispiel

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



  • Antwortbeispiel

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

  • Beschreibung

    Request a number for rent
  • URL

    ?action=getRentNumber
  • Methode

    GET
  • Abfrageparameter






  • Aufrufbeispiel

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


  • Antwortbeispiel

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

  • Beschreibung

    Returns status of a rent
  • URL

    ?action=getRentStatus
  • Methode

    GET
  • Abfrageparameter



  • Aufrufbeispiel

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



  • Antwortbeispiel

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

  • Beschreibung

    Returns all current rents
  • URL

    ?action=getRentList
  • Methode

    GET
  • Abfrageparameter


  • Aufrufbeispiel

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


  • Antwortbeispiel

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

  • Beschreibung

    Extend a rent number
  • URL

    ?action=continueRentNumber
  • Methode

    GET
  • Abfrageparameter




  • Aufrufbeispiel

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


  • Antwortbeispiel

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

Infos

  • Beschreibung

    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

  • Beschreibung

    Infos for response types
  • List

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