![Dun & Bradstreet Scraper avatar](https://images.apifyusercontent.com/b3MKWGqBR-hv8JhGngimpdsdkJ_hzqhdzE-dyZINgDk/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9XZU90eTdMVzd0TFJyRDJVRC8zajcyOGdkeVhENzVxYnRxdS0xNTE5ODY2MTI0NTgwLnBuZw.webp)
Dun & Bradstreet Scraper
Try for free
3 days trial then $25.00/month - No credit card required now
View all Actors![Dun & Bradstreet Scraper](https://images.apifyusercontent.com/b3MKWGqBR-hv8JhGngimpdsdkJ_hzqhdzE-dyZINgDk/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9XZU90eTdMVzd0TFJyRDJVRC8zajcyOGdkeVhENzVxYnRxdS0xNTE5ODY2MTI0NTgwLnBuZw.webp)
![Dun & Bradstreet Scraper](https://images.apifyusercontent.com/b3MKWGqBR-hv8JhGngimpdsdkJ_hzqhdzE-dyZINgDk/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9XZU90eTdMVzd0TFJyRDJVRC8zajcyOGdkeVhENzVxYnRxdS0xNTE5ODY2MTI0NTgwLnBuZw.webp)
Dun & Bradstreet Scraper
epctex/dnb-scraper
Try for free
3 days trial then $25.00/month - No credit card required now
Effortlessly extract valuable company information, financial projections, industry insights, and more from the extensive Dun & Bradstreet commercial database. Dive deep into the D&B Data Cloud, Business Directory, articles, companies, and industries with customized search terms.
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
1# Set API token
2API_TOKEN=<YOUR_API_TOKEN>
3
4# Prepare Actor input
5cat > input.json <<'EOF'
6{
7 "startUrls": [
8 "https://www.dnb.com/business-directory/industry-analysis.commercial_and_industrial_machinery_and_equipment_rental_and_leasing.html",
9 "https://www.dnb.com/perspectives/analytics/us-business-economic-trends.html",
10 "https://www.dnb.com/business-directory/company-profiles.alibaba_(china)_technology_co_ltd.e3529c2476c569b9912000545d3314d6.html"
11 ],
12 "maxItems": 50,
13 "extendOutputFunction": "($) => {\n const result = {};\n // Uncomment to add a title to the output\n // result.title = $('title').text().trim();\n\n return result;\n}",
14 "proxy": {
15 "useApifyProxy": true
16 }
17}
18EOF
19
20# Run the Actor using an HTTP API
21# See the full API reference at https://docs.apify.com/api/v2
22curl "https://api.apify.com/v2/acts/epctex~dnb-scraper/runs?token=$API_TOKEN" \
23 -X POST \
24 -d @input.json \
25 -H 'Content-Type: application/json'