Skip to main content
This guide demonstrates how to programmatically purchase static residential proxies through the Byteful API and then export them to a text file. The process involves:
  1. Getting product information using the catalog endpoint
  2. Creating a checkout for static residential proxies
  3. Exporting the proxies to a text file using list_by_search

Prerequisites

Before you begin, you’ll need:
  • Your Byteful API keys (both public and private)
  • Enough credit balance in your account or a payment method set up

Implementation Examples

Process Overview

  1. Product Selection:
    • We directly use the product code for US static residential proxies (“isp_us”)
    • You can find available product codes in your dashboard or using the catalog endpoint
  2. Checkout Creation:
    • We create a checkout using the product code, quantity, and billing cycle
    • The API returns a service ID which we’ll use to access our proxies
  3. Proxy Export:
    • Once the purchase is complete, we use the list_by_search endpoint to get our proxies
    • We filter by service ID and specify the format we want (HTTP in this example)
    • Finally, we save the proxies to a text file

Additional Considerations

  • In a production environment, implement a polling mechanism to check if the service is active before attempting to export proxies
  • The default proxy user credentials are used in this example
  • You may want to create a custom proxy user for better organization and access control