> ## Documentation Index
> Fetch the complete documentation index at: https://docs.proxylane.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Python

> Make your first request with Python and Requests.

Use these steps on **macOS or Linux** with Python 3 and a [generated connection](/quickstart). Select **HTTP / HTTPS** for this example. Use the same terminal throughout.

<Steps>
  <Step title="Install Requests">
    In your terminal:

    ```bash theme={null}
    python3 -m venv .venv
    source .venv/bin/activate
    python -m pip install requests
    ```
  </Step>

  <Step title="Save this as proxy_check.py">
    ```python theme={null}
    from getpass import getpass
    import requests

    proxy = getpass("Paste your connection URL: ")
    response = requests.get(
        "https://api.ipify.org?format=json",
        proxies={"http": proxy, "https": proxy},
        timeout=30,
    )
    response.raise_for_status()
    print(response.json()["ip"])
    ```
  </Step>

  <Step title="Run it">
    ```bash theme={null}
    python proxy_check.py
    ```

    Choose the full URL in **Format**, then click **Copy** in ProxyLane. Paste it at the prompt and press Enter. It stays hidden while you paste.

    The script prints the IP used for that request. On the same computer, open [the IP check](https://api.ipify.org?format=json) in a browser with its proxy off. If the IPs match, check your proxy settings. Otherwise, test your intended website.
  </Step>
</Steps>

Keep the copied URL private. [Fix an error](/troubleshooting) · [Get help](mailto:hello@proxylane.dev) · [Requests proxy reference](https://docs.python-requests.org/en/latest/user/advanced/#proxies)
