Skip to main content

NulledAPI - UnOfficial Nulled API

Project description

NulledAPI - Unofficial Nulled.to API

NulledAPI is an unofficial nulled.to API to better and more easily integrate features such as a ramped up version of nulled auth, and have access to useful functions such as searching for users, getting user info (much more functions in the works).

It has been created by M3GZ

REQUIREMENTS:

Python 3

INSTALLATION:

pip install NulledAPI

EXAMPLE USAGE:

from NulledAPI import Nulled
nulled = Nulled()
print(nulled.get_user_info(1234144))
Output

(In Dict Format)

{
    'user_found': True,
    'username': 'finndev',
    'id': 1234144,
    'group': 'reverser',
    'shouts': 1,
    'discord': None,
    'error': (False, 'NO_ERROR_USER_FOUND')
}

METHODS:

  1. auth(auth_code: str)

    Returns dictionary in the format below

    Example usage
    print(nulled.auth('NULLED-5E72C-60984-4D332-5B526-X'))

    {
    	'authenticated': True,
    	'user_found': True,
    	'username': 'M3GZ',
    	'id': 4103370,
    	'group': 'aqua',
    	'shouts': 348,
    	'discord': '_megz#1304',
    	'error': (False, 'NO_ERROR_USER_FOUND')
    }
    

    Now you can limit parts of your programs for different usergroups Kappa

    Parameters
    auth_code : str Description: Nulled auth code (https://www.nulled.to/auth.php)

  2. get_user_info(user_name_or_id, secure_hash, session_id)

    Returns dictionary in the format below

    Example usage
    print(nulled.get_user_info('brian','secure_hash','session_id'))
    OR
    print(nulled.get_user_info(1468487))

    {
    	'user_found': True,
    	'username': 'Brian',
    	'id': 1468487,
    	'group': 'disinfector',
    	'shouts': 2381,
    	'discord': None,
    	'error': (False, 'NO_ERROR_USER_FOUND')
    }
    
    Go crazy with the information, information is power, especially when it's just one line of code to get it

    Parameters
    1. user_name_or_id : str/int Description: Use either UID or username UID: Standalone usage Username: You need to put in your session_id and secure_hash (Check notes)

     2. secure_hash : str, not required with UID
         Description: Your nulled.to secure_hash
             UID: Standalone usage
             Username: You need to put in your secure_hash
                       (Check notes)
     
     3. session_id : str, not required with UID
         Description: Your nulled.to secure_hash
             UID: Standalone usage
             Username: You need to put in your latest session_id
                       (Check notes)
    
  3. search_user(username: str, secure_hash: str, session_id: str)

    Returns dictionary of all similarly named users found

    Example usage
    print(nulled.search_user('m3gz','secure_hash','session_id'))

    {
        '4103370': {        #Dict keys are the UIDs
            'name': 'M3GZ',
            'group': 'Aqua',
            'profile_pic': 'https://www.nulled.to/uploads/profile/photo-thumb-4103370.png?_r=1598880866'
        },
        '2515890': {
            'name': 'm3gzz',
            'group': 'Members',
            'profile_pic': 'https://media.nulled.to/public/style_images/images/profile/default_large.png'
        }
    }
    
    User search function might be useful to get user-list for various purposes,
    you could check each user with get_user_info() to get more information

    Parameters
    1. username : str Description: Username to search

     2. secure_hash : str
         Description: Your nulled.to secure_hash
         You need to put in your secure_hash
         (Check notes)
     
     3. session_id : str
         Description: Your nulled.to secure_hash
         You need to put in your latest session_id
         (Check notes)
    
  4. More functions WIP

Notes

To get the session_id and secure_hash:

  1. Open any nto page on your browser being logged in
  2. Then press Ctrl + U
  3. In the source page, search for the term secure_hash
  4. There'll be a line like ipb.vars['secure_hash'] = 'xyz';
    xyz is the secure_hash, use that in the methods
  5. The line below the secure_hash line will contain the session_id

Note: session_id keeps changing occasionally, so you'll need to input the latest one while calling the method.

Documentation can also be viewed using Visual Studio Code - https://i.imgur.com/PkEUaLo.png
While we are on the topic, might I suggest using VSCodium

Important: The API might fail to return results if Nulled is having cloudflare (or any general) errors.
If you keep getting error codes like BAD_SESSION_ID_OR_CF_ERROR even with the correct session_id, open your browser page, solve the cloudflare captcha and run the code again.
Unfortunately this will be an issue till the stable release of V4.

Made with 🖤 by M3GZ
For Terms of Service visit https://bit.ly/3aeIVfl

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

NulledAPI-1.2.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

NulledAPI-1.2-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file NulledAPI-1.2.tar.gz.

File metadata

  • Download URL: NulledAPI-1.2.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.8.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for NulledAPI-1.2.tar.gz
Algorithm Hash digest
SHA256 77997df6f62abec96de9c6e221d8198ca0c99cdda31284f9b16dfdde59a641bf
MD5 1c80078843620a8129b14c738dba9129
BLAKE2b-256 16341bdc3e006c9f40618de96b82d48335888ab3abca524e36cc50d487f43172

See more details on using hashes here.

File details

Details for the file NulledAPI-1.2-py3-none-any.whl.

File metadata

  • Download URL: NulledAPI-1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.8.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for NulledAPI-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 39fa26edc5780f8a0264caddaeaf5dd85f98fe42efc83446ceb823bd15a32be2
MD5 8b4b6fecb8502d9faf3a39372c29d48e
BLAKE2b-256 2c49408777af173b62adedede7ca18d53b5599026f64d0f19d0ba55824a8428a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page