AFE Leaks API

This REST API provides access to oil & gas well cost data, completions, locations, production, and associated metadata. Access is protected by Firebase authentication and Stripe subscription validation.

Authentication

All requests must include a valid Firebase ID token in the Authorization header as:

Authorization: Bearer <id_token>

Base URL

https://api.afeleaks.com

Endpoints

GET /api/cost-data

Returns summarized cost data by well (API-level).

GET /api/cost-breakdown

Returns line-item level cost details.

GET /api/wells

Returns general well metadata. Supports dynamic column selection.

GET /api/production

Returns production records.

GET /api/casing

Returns casing design records.

GET /api/locations

Returns well-path or location data.

GET /api/surveys

Returns directional survey records.

GET /api/welltests

Returns flow/pressure test data.

GET /api/formations

Returns formation tops and geology records.

GET /api/files

Returns regulatory file links.

GET /api/product

Returns product data with associated well information. Supports filtering by product details and well metadata.

Product Filters:

Well Filters:

Common Query Parameters

Filtering

All endpoints that join with og_data support the following filters:

Column Selection (Wells Endpoint)

Use the ?columns= parameter to return a subset of columns.

/api/wells?columns=API,lease,leaseNum,wellNum,state,county,operator,...

Errors

Pagination Example

/api/cost-data?limit=5000&offset=10000

Returns rows 10,001–15,000.

Example Full Filter

https://api.afeleaks.com/api/wells?state=TX&county=Reeves&operator=Devon&reservoir=Wolfcamp%20A&lease=Example&wellNum=1234&spudDateMin=2018-01-01&spudDateMax=2022-12-31&fpYearMin=2019&fpYearMax=2023&perfIntervalMin=4000&perfIntervalMax=7000&tvdMin=9000&tvdMax=11000&limit=200

Questions? bd@afeleaks.com

Compare Plans

Basic ($10/mo or $100/yr)

  • ✔ Basic App Access
  • ✔ Benchmark well costs
  • ✔ Key driver trends
  • ✔ Access paid research
  • ❌ No single-well detail
  • ❌ No cost breakdowns
Subscribe Monthly Subscribe Yearly

Premium ($100/mo or $1000/yr)

  • ✔ All Basic features
  • ✔ Premium App Access
  • ✔ Single-well cost data
  • ✔ Detailed cost breakdowns
  • ✔ Outlier & savings analysis
Subscribe Monthly Subscribe Yearly

API Access (Contact Us)

  • ✔ All Premium features
  • ✔ Direct API access to all endpoints
  • ✔ Integrate into Power BI / internal systems
  • ✔ Ideal for teams & dashboards
  • 📌 Requires separate license agreement
Contact Us