Commodities Scraper avatar
Commodities Scraper

Pricing

$4.00/month + usage

Go to Apify Store
Commodities Scraper

Commodities Scraper

Scrape real-time commodity prices from financial websites. Supports oil, gold, silver, natural gas, and more. Extract price, change, volume, technical indicators, and contract details. Currently supports Investing.com with more sites coming soon.

Pricing

$4.00/month + usage

Rating

0.0

(0)

Developer

No-Code Venture

No-Code Venture

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

6 days ago

Last modified

Categories

Share

Commodity Price Scraper ๐Ÿ“ˆ

Real-time commodity prices. Track crude oil, gold, silver, natural gas, and more from leading financial websites. Get current prices, trading data, contract details, and technical indicators โ€” all extracted automatically.

Currently supports: Investing.com Coming soon: More financial data sources

โœจ Features

  • ๐Ÿ’ฐ Real-Time Prices โ€“ Current price, change, and change percentage
  • ๐Ÿ“Š Trading Data โ€“ Previous close, open, day's range, 52-week range, volume
  • ๐Ÿ“‹ Contract Details โ€“ Settlement date, tick size, contract size, months, rollover dates
  • ๐Ÿ“ˆ Technical Indicators โ€“ Summary signals (Buy/Sell/Neutral)
  • โ“ FAQ Extraction โ€“ Optionally extract FAQ questions and answers about the commodity
  • ๐Ÿ“ฆ Multiple Commodities โ€“ Scrape multiple commodities in a single run
  • ๐Ÿ” Login Support โ€“ Authenticate with email/password for full data access
  • ๐ŸŽญ Stealth Mode โ€“ Uses Camoufox (stealthy Firefox fork) to avoid detection
  • ๐Ÿ”„ Multi-Site Architecture โ€“ Easily extensible to support more financial sites

๐Ÿš€ Getting Started

Basic Usage

Scrape multiple commodity prices from Investing.com:

{
"site": "investing.com",
"commodities": ["crude-oil", "gold", "natural-gas"]
}

Or scrape a single commodity:

{
"site": "investing.com",
"commodities": ["crude-oil"]
}

๐Ÿ“ฆ Supported Commodities

CommoditySlugDescription
Crude Oil WTIcrude-oilWest Texas Intermediate crude
Brent Oilbrent-oilNorth Sea Brent crude
Natural Gasnatural-gasHenry Hub natural gas
GoldgoldGold futures
SilversilverSilver futures
CoppercopperCopper futures
PlatinumplatinumPlatinum futures
PalladiumpalladiumPalladium futures
Heating Oilheating-oilNo. 2 heating oil
Gasoline RBOBgasoline-rbobReformulated gasoline

๐Ÿ’ก Tip: You can use any commodity slug from Investing.com. Just use the URL path (e.g., https://www.investing.com/commodities/crude-oil โ†’ crude-oil).

๐Ÿ”‘ Authentication

Authentication is optional but provides full data access on Investing.com.

{
"site": "investing.com",
"commodities": ["gold", "silver"],
"skipAuthentication": false,
"investingEmail": "your-email@example.com",
"investingPassword": "your-password"
}

โš™๏ธ Input Parameters

ParameterTypeRequiredDescriptionDefault
siteStringโœ…Website to scrape frominvesting.com
commoditiesString[]โœ…List of commodity slugs (e.g., ["crude-oil", "gold"])["crude-oil"]
skipAuthenticationBooleanโŒSkip login (some data may be limited)true
investingEmailStringโŒInvesting.com emailโ€”
investingPasswordStringโŒInvesting.com passwordโ€”
includeFaqBooleanโŒExtract FAQ questions and answersfalse
maxConcurrencyIntegerโŒMax concurrent browsers (1-10)1
proxyConfigurationObjectโŒProxy settings (not required, works without proxies)Disabled
debugScreenshotsBooleanโŒSave screenshots for debuggingtrue

๐Ÿ“Š Output Example

{
"name": "Crude Oil WTI",
"symbol": "CL",
"url": "https://www.investing.com/commodities/crude-oil",
"scrapedAt": "2024-01-15T14:30:00.000Z",
"source": "investing.com",
"price": "72.45",
"currency": "USD",
"change": "-0.53",
"changePercent": "(-0.73%)",
"priceType": "Real-time derived",
"prevClose": "72.98",
"open": "72.98",
"dayRange": "71.85-73.12",
"weekRange52": "63.64-95.03",
"volume": "218,634",
"yearChange1": "-12.21%",
"settlementDate": "01/22/2024",
"settlementType": "Physical",
"month": "02, 2024",
"baseSymbol": "CL",
"pointValue": "1 = $1000",
"tickSize": "0.01",
"tickValue": "10",
"contractSize": "1,000 Barrels",
"months": "FGHJKMNQUVXZ",
"lastRolloverDay": "01/18/2024",
"technicalSummary": "Sell",
"faq": [
{
"question": "What Is the Current Price of Crude Oil?",
"answer": "The current price of Crude Oil WTI is $72.45 per barrel."
},
{
"question": "What Is the Daily Trading Range for Crude Oil?",
"answer": "Today's trading range for Crude Oil is $71.85 - $73.12."
}
]
}

๐Ÿ’ก Note: The faq field is only included when includeFaq is set to true.

๐ŸŽฏ Use Cases

  • Trading & Investment โ€“ Track real-time commodity prices for trading decisions
  • Portfolio Monitoring โ€“ Monitor commodities in your investment portfolio
  • Market Research โ€“ Analyze price trends and technical indicators
  • Data Analytics โ€“ Build datasets for price analysis and forecasting
  • Price Alerts โ€“ Integrate with workflows to trigger alerts on price changes
  • Business Intelligence โ€“ Track commodity costs for business planning

โš™๏ธ How It Works

  1. Navigate โ€“ Opens the commodity page on Investing.com
  2. Handle Cookies โ€“ Automatically rejects tracking cookies (OneTrust)
  3. Authenticate โ€“ Logs in with your email and password
  4. Extract โ€“ Scrapes all available price and trading data
  5. Output โ€“ Saves structured data to the dataset

๐Ÿ›ก๏ธ Proxy Support

Proxies are disabled by default and typically not needed. The scraper uses Camoufox (a stealthy Firefox fork) which works well without proxies in most cases.

If you experience blocking issues, you can enable proxies:

{
"proxyConfiguration": {
"useApifyProxy": true,
"apifyProxyGroups": ["RESIDENTIAL"]
}
}

๐Ÿ’ก Tip: Try running without proxies first. Only enable them if you encounter blocking.

๐Ÿ’ก Tips

  • Check commodity slugs โ€“ Use the exact slug from the site's URL
  • Enable debug screenshots โ€“ Helpful for troubleshooting issues
  • Multiple commodities โ€“ Add as many commodities as you need to the commodities array
  • Speed up scraping โ€“ Increase maxConcurrency (up to 10) to run multiple browsers in parallel

๐Ÿ”ฎ Coming Soon

  • More Sites โ€“ Support for additional financial data sources
  • Historical Data โ€“ Extract historical price data
  • Price Alerts โ€“ Built-in price threshold notifications
  • Forex & Indices โ€“ Support for currency pairs and market indices

This Actor is intended for legitimate data collection purposes. Please:

  • Respect each site's Terms of Service
  • Use reasonable request rates
  • Comply with applicable data protection laws
  • Don't use for market manipulation or illegal activities

๐Ÿค Support

Having issues? Found a bug? Want a feature?

  • Open an issue on the Actor's page
  • Contact the developer through Apify

Built by nocodeventure โ€ข Made with โค๏ธ for the Apify community