Oil Price API Documentation - Quick Start in 5 Minutes | REST API
GitHub
GitHub
  • Energy Market Guides

    • Baker Hughes Rig Count - What It Means for Oil Prices & Your Business [2026 Guide]
    • Natural Gas Price Forecast 2026 - Seasonal Patterns & Data-Driven Analysis
    • Dutch TTF Gas Price - Everything You Need to Know [Real-Time Data]
  • API Integration Guides

    • How to Add Real-Time Oil Prices to Your Oilfield Software [Developer Guide]
    • Get Oil Prices in Excel - Complete Guide to Commodity Data Without Code
    • Diesel Price API - Real-Time Fuel Data for Trucking & Fleet Software
    • Bunker Fuel Prices by Port - Singapore, Rotterdam, Fujairah & 7 More [Live Data]
  • Platform Comparisons

    • 7 Bloomberg Terminal Alternatives for Commodity Price Data [2026 Cost Comparison]
    • Best Financial Data APIs for Commodity Trading [2026 Comparison]
  • Trading & Enterprise

    • CTRM Software - How Commodity Trading Systems Use Price Data

Baker Hughes Rig Count: What It Means for Oil Prices & Your Business [2026 Guide]

The Baker Hughes rig count is the most-watched leading indicator in the oil and gas industry. Released every Friday at 1:00 PM ET, this weekly report moves markets and drives billions in capital allocation decisions. This guide explains what the rig count means, how to interpret it, and how to programmatically access this data for your applications.

What Is the Baker Hughes Rig Count?

The Baker Hughes rig count tracks the number of active drilling rigs in North America and internationally. Started in 1944, it has become the definitive measure of oil and gas drilling activity.

Key Metrics Reported

MetricDescriptionWhy It Matters
US TotalAll active rigs in the United StatesOverall US drilling activity
Oil vs GasRigs targeting oil vs natural gasCommodity-specific production outlook
By BasinPermian, Bakken, Eagle Ford, etc.Regional production forecasting
OffshoreGulf of Mexico activityDeepwater production trends
CanadaCanadian rig activityNorth American supply picture

2026 Context

As of January 2026, the US rig count stands at approximately 580 rigs, down from the post-pandemic peak of 780+ but stable compared to the pre-2014 era when counts exceeded 1,900.

Why the Rig Count Matters for Your Business

For Oilfield Software Companies

If you build software for E&P operators, drilling contractors, or oilfield service companies, rig count data is essential:

  • Customer dashboards: Display current drilling activity alongside your operational data
  • Market context: Show clients how their activity compares to industry trends
  • Forecasting features: Use rig count trends to project future demand

For Oilfield Service Companies

Equipment manufacturers, frac providers, and drilling contractors use rig counts to:

  • Forecast demand: More rigs = more demand for equipment and services
  • Sales planning: Target regions with increasing activity
  • Inventory management: Anticipate parts and equipment needs

For Energy Traders & Analysts

The rig count is a leading indicator that moves oil and gas prices:

  • Production forecasting: Rig count changes predict production 6-12 months ahead
  • Price modeling: Incorporate drilling activity into price forecasts
  • Trading signals: Weekly changes can trigger position adjustments

How to Interpret Rig Count Data

Week-Over-Week Changes

ChangeTypical Interpretation
+10 or moreStrong bullish signal, increased activity
+1 to +9Modest growth, stable market
0 to -5Flat to slight consolidation
-6 to -20Meaningful pullback, operators cautious
-20 or moreSignificant contraction, potential supply impact

Basin-Level Analysis

The Permian Basin alone accounts for ~50% of US drilling activity. Tracking individual basins provides more granular insights:

Permian Basin: ~300 rigs (50% of US total)
Eagle Ford: ~50 rigs
Bakken: ~35 rigs
Appalachian (Marcellus/Utica): ~40 rigs (gas-focused)

Seasonal Patterns

Canadian rig counts follow pronounced seasonal patterns due to spring breakup (thaw) conditions. US counts are more stable year-round.

Accessing Rig Count Data via API

Manual collection from Baker Hughes PDFs is time-consuming and error-prone. OilPriceAPI provides programmatic access to rig count data, updated within 30 minutes of each weekly release.

Get Latest Rig Count

curl "https://api.oilpriceapi.com/v1/ei/rig_counts/latest" \
  -H "Authorization: Token YOUR_API_KEY"

Response:

{
  "data": {
    "report_date": "2026-01-24",
    "us_total": 584,
    "us_oil": 479,
    "us_gas": 101,
    "us_misc": 4,
    "week_over_week": -3,
    "basins": {
      "permian": { "count": 298, "week_over_week": -2 },
      "eagle_ford": { "count": 48, "week_over_week": 0 },
      "bakken": { "count": 35, "week_over_week": -1 },
      "niobrara": { "count": 12, "week_over_week": 0 }
    }
  },
  "meta": {
    "source": "baker_hughes",
    "release_time": "2026-01-24T18:00:00Z",
    "api_version": "v1"
  }
}

Get Historical Rig Count Data

Track trends over time for forecasting and analysis:

# Get 52 weeks of history
curl "https://api.oilpriceapi.com/v1/ei/rig_counts/historical?weeks=52" \
  -H "Authorization: Token YOUR_API_KEY"

Filter by Basin

Get data for specific basins:

# Permian Basin only
curl "https://api.oilpriceapi.com/v1/ei/rig_counts/by_basin?basins=permian" \
  -H "Authorization: Token YOUR_API_KEY"

# Multiple basins
curl "https://api.oilpriceapi.com/v1/ei/rig_counts/by_basin?basins=permian,bakken,eagle_ford" \
  -H "Authorization: Token YOUR_API_KEY"

Integration Examples

Python: Rig Count Dashboard

import requests

API_KEY = "YOUR_API_KEY"
BASE_URL = "https://api.oilpriceapi.com/v1"

def get_rig_count():
    """Get latest US rig count with basin breakdown."""
    response = requests.get(
        f"{BASE_URL}/ei/rig_counts/latest",
        headers={"Authorization": f"Token {API_KEY}"}
    )
    return response.json()

def analyze_trend(weeks=12):
    """Analyze rig count trend over specified weeks."""
    response = requests.get(
        f"{BASE_URL}/ei/rig_counts/historical",
        params={"weeks": weeks},
        headers={"Authorization": f"Token {API_KEY}"}
    )
    data = response.json()["data"]["history"]

    # Calculate average weekly change
    changes = [w["week_over_week"] for w in data if w.get("week_over_week")]
    avg_change = sum(changes) / len(changes) if changes else 0

    return {
        "period_weeks": weeks,
        "avg_weekly_change": round(avg_change, 1),
        "total_change": sum(changes),
        "trend": "increasing" if avg_change > 0 else "decreasing"
    }

# Usage
latest = get_rig_count()
print(f"US Total Rigs: {latest['data']['us_total']}")
print(f"Permian: {latest['data']['basins']['permian']['count']}")
print(f"Week-over-Week: {latest['data']['week_over_week']:+d}")

trend = analyze_trend(12)
print(f"12-Week Trend: {trend['trend']} ({trend['total_change']:+d} rigs)")

JavaScript: Real-Time Widget

class RigCountWidget {
  constructor(apiKey) {
    this.apiKey = apiKey;
    this.baseUrl = "https://api.oilpriceapi.com/v1";
  }

  async getLatest() {
    const response = await fetch(`${this.baseUrl}/ei/rig_counts/latest`, {
      headers: { Authorization: `Token ${this.apiKey}` },
    });
    return response.json();
  }

  async getBasinComparison(basins = ["permian", "eagle_ford", "bakken"]) {
    const response = await fetch(
      `${this.baseUrl}/ei/rig_counts/by_basin?basins=${basins.join(",")}`,
      { headers: { Authorization: `Token ${this.apiKey}` } },
    );
    return response.json();
  }

  formatChange(change) {
    if (change > 0) return `+${change}`;
    return change.toString();
  }
}

// Usage
const widget = new RigCountWidget(process.env.OILPRICE_API_KEY);
const data = await widget.getLatest();

console.log(`US Rig Count: ${data.data.us_total}`);
console.log(`Change: ${widget.formatChange(data.data.week_over_week)}`);

Use Cases

1. Oilfield Software Dashboard

Embed rig count data into your E&P software to show operators how market activity relates to their operations. Display regional counts alongside well performance metrics.

2. Sales Intelligence for OFS Companies

Alert your sales team when rig counts increase in specific basins. Higher activity means more demand for your services and equipment.

3. Energy Trading Models

Incorporate rig count data into production forecasting models. A sustained rig count increase typically translates to production growth 6-12 months later.

4. Investor Relations Presentations

E&P companies reference rig counts to contextualize their drilling programs. Automate the inclusion of current counts in IR materials.

5. Market Research Reports

Energy consultancies and research firms use rig count trends as a baseline for drilling activity analysis and market sizing.

Data Release Schedule

ReportRelease TimeCoverage
Weekly US/CanadaFriday 1:00 PM ETPrior week activity
Monthly InternationalMonthlyGlobal rig counts

OilPriceAPI updates rig count data within 30 minutes of each Baker Hughes release.

Why Use an API Instead of Manual Collection?

Manual CollectionOilPriceAPI
Download PDF each FridayAuto-updated in your system
Parse tables manuallyStructured JSON response
Build your own databaseHistorical data included
Handle format changesConsistent API contract
~2 hours per week~2 hours one-time integration

Getting Started

  1. Sign up at oilpriceapi.com/signup (free tier available)
  2. Get your API key from the dashboard
  3. Test the rig count endpoint with the examples above
  4. Integrate into your application or dashboard

The free tier includes 1,000 API requests per month—enough to fetch rig count data multiple times per day for evaluation.

Frequently Asked Questions

How quickly is rig count data available after Baker Hughes releases it?

OilPriceAPI updates rig count data within 30 minutes of the official Baker Hughes release (Fridays at 1:00 PM ET). The data is validated and structured into JSON format, ready for immediate programmatic access.

What historical rig count data is available?

Historical rig count data is available going back several years. Use the /historical endpoint with a weeks parameter to retrieve weekly data for trend analysis. Premium tiers include deeper historical access.

Can I get rig counts for specific basins only?

Yes, use the /by_basin endpoint with a basins parameter to retrieve data for specific regions. Supported basins include Permian, Bakken, Eagle Ford, Niobrara, and others.

How does this compare to scraping Baker Hughes directly?

OilPriceAPI eliminates the need to download PDFs, parse inconsistent formats, and maintain scraping scripts. You get clean JSON responses with a stable API contract, automatic updates, and historical data storage.

What pricing tier do I need for rig count data?

Rig count data is available on the Reservoir Mastery tier ($129/month), which includes access to all Energy Intelligence endpoints: rig counts, oil inventories, OPEC production, drilling productivity, and forecasts.

Related Resources

  • Rig Counts API Reference - Complete API documentation
  • Oil Inventories API - EIA weekly petroleum status
  • OPEC Production Data - OPEC member production
  • Energy Intelligence Quickstart - Get started guide
  • Power BI Integration - Build rig count dashboards
Last Updated: 2/3/26, 1:30 AM
Next
Natural Gas Price Forecast 2026 - Seasonal Patterns & Data-Driven Analysis