Skip to main content

mobileproxy - Unofficial python library for working with mobileproxy.space

Site: https://mobileproxy.space

Docs: https://mobileproxy.space/user.html?api

pip install mobileproxy

Example (sync):

from mobileproxy import MobileProxy

api_key = "YOUR_API_KEY"
mobileproxy = MobileProxy(api_key)

print(mobileproxy.get_balance())

Example (async):

import asyncio

from mobileproxy._async import MobileProxy as AsyncMobileProxy


async def main() -> None:
    api_key = "YOUR_API_KEY"
    mobileproxy = AsyncMobileProxy(api_key)
    print(await mobileproxy.get_balance())


if __name__ == "__main__":
    asyncio.run(main())

Methods (sync):

# No Authorization needed (User-Agent is optional)
mobileproxy.change_ip(proxy_key, format="json")

# Common methods
mobileproxy.get_balance()
mobileproxy.get_ipstat()
mobileproxy.get_geo_operator_list(
    equipments_back_list=None,
    operators_back_list=None,
    show_count_null=None,
    proxy_id=None,
)
mobileproxy.get_operators_list(geoid=None)
mobileproxy.get_id_country(only_avaliable=None, accept_language=None)
mobileproxy.get_id_city(accept_language=None)
mobileproxy.get_geo_list(proxy_id=None, geoid=None)
mobileproxy.get_price(id_country, currency=None, accept_language=None)
mobileproxy.see_the_url_from_different_IPs(url, id_country=None)
mobileproxy.get_task_result(tasks_id=None)
mobileproxy.eid_available(eid)
mobileproxy.get_history(start=0, length=50)

# Examples
mobileproxy.get_ip(proxy_id=1, check_spam=True)
mobileproxy.see_the_url_from_different_IPs(
    url="https://mobileproxy.space",
    id_country="1,2,3",
)
task_result = mobileproxy.get_task_result(tasks_id=123)

# Proxy methods
mobileproxy.buy_proxy(
    period=30,
    num=1,
    proxy_id=None,
    geoid=None,
    operator=None,
    coupons_code=None,
    id_country=None,
    id_city=None,
    amount_only=False,
    auto_renewal=1,
)
mobileproxy.edit_proxy(
    proxy_id,
    proxy_reboot_time=None,
    proxy_ipauth=None,
    proxy_auto_renewal=None,
    proxy_auto_change_equipment=None,
    proxy_comment=None,
)
mobileproxy.get_ip(proxy_id, check_spam=None)
mobileproxy.get_black_list(proxy_id)
mobileproxy.add_operator_to_black_list(proxy_id, operator_id)
mobileproxy.remove_operator_from_black_list(proxy_id, operator_id)
mobileproxy.remove_black_list(proxy_id, black_list_id=None, eid=None)
mobileproxy.get_my_proxy(proxy_id)
mobileproxy.change_proxy_login_password(proxy_id, proxy_login, proxy_pass)
mobileproxy.reboot_proxy(proxy_id)
mobileproxy.change_equipment(
    proxy_id,
    operator=None,
    geoid=None,
    add_to_black_list=None,
    id_country=None,
    id_city=None,
    eid=None,
    check_after_change=None,
    check_spam=None,
)

Tests:

pytest -s

Main part of code was generated with DuckDuckGo AI & Cursor

Metadata

Release files for mobileproxy 1.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for mobileproxy 1.0.5
File Interpreter ABI Platform
mobileproxy-1.0.5-py3-none-any.whl Python 3 none any Details

Release files / mobileproxy-1.0.5-py3-none-any.whl

Download URL mobileproxy-1.0.5-py3-none-any.whl
Size 11.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5b26008bc818987f80fd171feb42f5d81957cf3bf7d2f91d9f4a5572f2883b3d
BLAKE2b-256 checksum
How to use checksums
a6a90ec2c1c6e75d502a6aef2da7c6088f3eab1ece9a85388910c8797f9d41dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.5

Release history Release notifications | RSS feed

This release

1.0.5 This release

1 release file

1.0.4

1 release file

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page