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

# Making Your First Request

> Code examples in Python, Node.js, and cURL to get started with Stat Proxies.

Once you've copied your proxy credentials from the dashboard, use any of the examples below to make your first request.

## Your proxy format

Your proxies follow this format:

```
host:port:username:password
```

For example: `192.168.1.1:3128:myuser:mypass`

## Code examples

<Tabs>
  <Tab title="Python">
    ```python theme={null}
    import requests

    proxies = {
        "http": "http://myuser:mypass@192.168.1.1:3128",
        "https": "http://myuser:mypass@192.168.1.1:3128"
    }

    response = requests.get("https://httpbin.org/ip", proxies=proxies)
    print(response.json())
    # {"origin": "192.168.1.1"}
    ```
  </Tab>

  <Tab title="Node.js">
    ```javascript theme={null}
    const axios = require('axios');
    const HttpsProxyAgent = require('https-proxy-agent');

    const agent = new HttpsProxyAgent('http://myuser:mypass@192.168.1.1:3128');

    axios.get('https://httpbin.org/ip', { httpsAgent: agent })
      .then(res => console.log(res.data))
      .catch(err => console.error(err));
    // {"origin": "192.168.1.1"}
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl -x http://myuser:mypass@192.168.1.1:3128 https://httpbin.org/ip
    # {"origin": "192.168.1.1"}
    ```
  </Tab>

  <Tab title="Go">
    ```go theme={null}
    package main

    import (
        "fmt"
        "net/http"
        "net/url"
        "io"
    )

    func main() {
        proxyURL, _ := url.Parse("http://myuser:mypass@192.168.1.1:3128")
        client := &http.Client{
            Transport: &http.Transport{Proxy: http.ProxyURL(proxyURL)},
        }

        resp, _ := client.Get("https://httpbin.org/ip")
        defer resp.Body.Close()
        body, _ := io.ReadAll(resp.Body)
        fmt.Println(string(body))
    }
    ```
  </Tab>
</Tabs>

## Verifying your connection

After running any of the examples above, the response should show your **proxy IP address**, not your real IP. If you see your real IP, double-check:

1. The proxy host and port are correct
2. Your username and password are correct
3. You're using the right protocol (`http://` prefix)

<Warning>
  Replace `192.168.1.1:3128:myuser:mypass` with your actual proxy credentials from the dashboard.
</Warning>

## Using SOCKS5

All Stat Proxies support SOCKS5. Simply change the protocol:

```bash theme={null}
curl --socks5 myuser:mypass@192.168.1.1:3128 https://httpbin.org/ip
```

## Next steps

<CardGroup cols={2}>
  <Card title="Using with Puppeteer" icon="browser" href="/articles/puppeteer">
    Set up browser automation with proxies
  </Card>

  <Card title="Python Requests Library" icon="python" href="/articles/requests-python">
    Deep dive into Python proxy configuration
  </Card>

  <Card title="Scrapy Integration" icon="spider" href="/articles/scrapy">
    Configure Scrapy middleware for proxies
  </Card>

  <Card title="Troubleshooting" icon="wrench" href="/articles/connection-errors">
    Fix common connection issues
  </Card>
</CardGroup>
