Apify proxy integration

Apify Proxy Integration

What is Apify?

Apify is a powerful web scraping, data extraction, and web RPA platform. It can automate anything you can do manually in a web browser, and run it at scale. Apify Store has hundreds of ready-to-use scraping tools that just require you to change a few settings.

Proxies are often an essential part of web scraping. You should always secure your identity when web scraping and you may also need to deal with anti-scraping measures and other restrictions deployed by your target website.

That’s where Bright Data comes in 💪

Bright Data’s proxies can help you successfully complete your scraping and automation tasks. Bright Data proxies seamlessly integrate with Apify so you can perform your job without being blocked.

How to setup Apify
with Bright Data proxies:

Head over to Bright Data:

  1. Log in into your Bright Data account and go to the dashboard
  2. Click on Proxies & Infra and create a zone
  3. You can choose between Datacenter, Residential, ISP, & Mobile IPs
  4. Configure and create the zone according to your project requirements
  5. Click on the Settings icon next to the zone name.
  6. Get the username and password.

Head over to Apify:

  • Head over to apify.com and log in into your account.
  • Once you’re in Apify Console, click on Actors in the left-hand menu.
apify actors
  • Under the Store tab you’ll find Web scraper. We’ll use this as our example. Click on it.
Apfiy web scraper
  • Navigate to the Input tab.
  • Enter lumtest as start URL to scrape : https://lumtest.com/myip.json
lum test
  • In the Page function paste this code :
      async function pageFunction(context) {
    // jQuery is handy for finding DOM elements and extracting data from them.
    // To use it, make sure to enable the "Inject jQuery" option.
    const $ = context.jQuery;

    // Select the element using the 'body > pre' CSS selector and extract its text content.
    const data = $('body > pre').text();

    // Return an object with the extracted data. It will be stored in the resulting dataset.
    return {
        data: data
    };
}
    
  • Then scroll down to find proxy and browser configuration.
apify proxy config
  • Click on own proxy and input your proxy credentials in the following format.
add proxy credentials
  • http://username:[email protected]:22225 and password can be taken from the zone settings that we just created.
  • The hostname for Bright Data proxies is :brd.superproxy.io and the port is 22225.
  • This is what the final Bright Data proxy URL will look like: http://lum-customer-c_375eb5c4-zone-zone5:[email protected]:22225
  • Then just click Start.
details and start
  • You can then preview and download the data as HTML, JSON, CSV, Excel, XML, and RSS feed, or view it in the output tab
  • To confirm that Apify used the proxy, go to your Bright Data dashboard, navigate to proxies and then check the event log.
output tab

Get proxies for Apify

Proxy badges

Alimenté par une infrastructure de proxy résidentiel primée

Plus de 72 millions d’adresses IP résidentielles, la meilleure technologie avec la possibilité de cibler n’importe quel pays, ville et opérateur mobile font de nos services de proxy premium le meilleur choix pour les développeurs.

Des types de proxys adaptés à tous vos besoins

Proxys résidentiels

  • de 72,000,000+ adresses IP
  • Disponibles dans 195 pays
  • Le plus grand réseau permettant la rotation d’adresses IP de pairs réels
  • Accédez et parcourez tous les sites web les plus complexes

Proxys de centre de données

  • + de 770,000+ adresses IP
  • Disponibles dans 98 pays
  • Pools d’adresses IP partagés et dédiés disponibles
  • Accès rapide aux sites web peu complexes

Proxys ISP

  • + de 700,000+ adresses IP
  • Disponibles dans 35 pays
  • Adresses IP résidentielles statiques d’utilisateurs réels sans rotation d’adresses IP
  • Idéal pour vous connecter simultanément à différents comptes

Proxys mobiles

  • + de 7,000,000+ adresses IP
  • Disponibles dans 195 pays
  • Le réseau d’adresses IP 3G/4G d’utilisateurs réels le plus développé au monde
  • Vérifiez les publicités et parcourez les sites destinés aux appareils mobiles

Leader de la catégorie des proxys et de la collecte de données

Category leader in proxies
650 To de données publiques collectés chaque jour
Number of ISP proxies
De nouvelles fonctionnalités sont publiées chaque jour
Serving 7/10 universities
Montée en échelle de qualité entreprise
Trust pilot ratings
Une note exceptionnelle de 4.6/5 sur TrustPilot

La meilleure expérience client du secteur

Nous développons pour vous

De nouvelles fonctionnalités tous les jours

Support 24h/24, 7j/7

Pour répondre à toutes vos questions quand vous en avez besoin

Une transparence totale

Tableau de bord des performances en temps réel

Chargés de comptes dédiés

Pour optimiser votre performance

Solutions sur mesure

Pour atteindre vos objectifs de collecte de données

Ready to get started?