Dun and Bradstreet (DNB) Scraper avatar
Dun and Bradstreet (DNB) Scraper
Try for free

1 day trial then $25.00/month - No credit card required now

View all Actors
Dun and Bradstreet (DNB) Scraper

Dun and Bradstreet (DNB) Scraper

Try for free

1 day trial then $25.00/month - No credit card required now

Scrape companies and contacts details from DnB database based on industry, job title, employee count, entity types etc.

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn more

1from apify_client import ApifyClient
3# Initialize the ApifyClient with your Apify API token
4client = ApifyClient("<YOUR_API_TOKEN>")
6# Prepare the Actor input
7run_input = {
8    "action": "scrapeSearch",
9    "searchTerm": "marketing",
10    "searchType": "company",
11    "startPage": 1,
12    "proxy": {
13        "useApifyProxy": True,
14        "apifyProxyGroups": ["RESIDENTIAL"],
15        "apifyProxyCountry": "US",
16    },
19# Run the Actor and wait for it to finish
20run = client.actor("curious_coder/dun-and-bradstreet-dnb-com-scraper").call(run_input=run_input)
22# Fetch and print Actor results from the run's dataset (if there are any)
23print("πŸ’Ύ Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
24for item in client.dataset(run["defaultDatasetId"]).iterate_items():
25    print(item)
27# πŸ“š Want to learn more πŸ“–? Go to β†’ https://docs.apify.com/api/client/python/docs/quick-start
Maintained by Community
Actor metrics
  • 18 monthly users
  • 0 stars
  • 48.6% runs succeeded
  • Created in Jun 2023
  • Modified 18 days ago