Skip to main content
U.S. flag

An official website of the United States government

Here’s how you know

Dot gov

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

HTTPS

Secure .gov websites use HTTPS
A lock (LockA locked padlock) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

    • Environmental Topics
    • Air
    • Bed Bugs
    • Chemicals, Toxics, and Pesticide
    • Emergency Response
    • Environmental Information by Location
    • Health
    • Land, Waste, and Cleanup
    • Lead
    • Mold
    • Radon
    • Research
    • Science Topics
    • Water Topics
    • A-Z Topic Index
    • Laws & Regulations
    • By Business Sector
    • By Topic
    • Compliance
    • Enforcement
    • Guidance
    • Laws and Executive Orders
    • Regulations
    • Report a Violation
    • Environmental Violations
    • Fraud, Waste or Abuse
    • About EPA
    • Our Mission and What We Do
    • Headquarters Offices
    • Regional Offices
    • Labs and Research Centers
    • Planning, Budget, and Results
    • Organization Chart
    • EPA History

Breadcrumb

  1. Home
  2. Envirofacts

Envirofacts Data Service API

On this page

  • About this page
  • Overview
  • Constructing requests
  • Filtering and sorting
  • Paging large result sets
  • Examples
  • Related Envirofacts API tools
  • Help and feedback

About this page

This page documents the Envirofacts Data Service API, a RESTful service that provides direct, programmatic access to Envirofacts environmental data tables. This API is designed for table-based queries, filtering, sorting, and paging of results.

For advanced joins across datasets or GraphQL-based access, see the Envirofacts Web Services hub for links to additional APIs.

Overview

The Envirofacts Data Service API allows users to query individual Envirofacts database tables using simple URL-based requests. Responses are returned in machine-readable formats suitable for analysis, integration, and automation.

This API is best suited for:

  • Direct access to Envirofacts tables
  • Filtering and sorting records
  • Paging through large datasets
  • Exporting results in multiple formats

Constructing requests

Requests are constructed by specifying a table name followed by optional filters, sorting, paging, and output format.

Base URL pattern:

https://data.epa.gov/efservice/{program}.{table}

Table names follow the format {program}.{table}, where program is the source system (for example, tri, frs, rcrainfo, sems).

Filtering and sorting

Filters are applied using column-based operators appended to the URL. Multiple filters may be combined using logical conjunctions.

Common operators include:

  • equals
  • notEquals
  • greaterThan, lessThan
  • beginsWith, contains
  • in, notIn

Sorting is applied using the /sort/ keyword followed by one or more columns.

Paging large result sets

To manage large result sets, requests must include a paging range using the format:

/{first}:{last}

Paging begins at record 1. For example, 1:1000 returns the first 1,000 records.

Paging is required for large tables to ensure reliable performance and to prevent timeouts.

Examples

Example 1: Filter records by state

Returns facilities located in Virginia:

https://data.epa.gov/efservice/frs.frs_facility/state_code/equals/VA/1:100

Example 2: Sort results

Returns TRI facilities in Texas, sorted by facility name:

https://data.epa.gov/efservice/tri.tri_facility/state/equals/TX/sort/facility_name/1:100

Example 3: Export results as CSV

Returns the first 500 records in CSV format:

https://data.epa.gov/efservice/rcrainfo.handler/1:500/csv

Related Envirofacts API tools

  • Envirofacts Web Services
    Central hub for Envirofacts APIs and related services.
  • Envirofacts REST API Viewer 
    Interactive tool for exploring and testing API requests.
  • API usage statistics 
    API call counts by year, month, and program.

Help and feedback

For Envirofacts Data Service API questions or suggestions, please contact the Envirofacts team.

Envirofacts

  • Multisystem Search
  • Search Tools
  • Maps & Visualizations
  • Data & Developer Services
  • TRI Search
Contact Us About Envirofacts
Contact Us About Envirofacts to ask a question, provide feedback, or report a problem.
Last updated on December 16, 2025
  • Assistance
  • Spanish
  • Arabic
  • Chinese (simplified)
  • Chinese (traditional)
  • French
  • Haitian Creole
  • Korean
  • Portuguese
  • Russian
  • Tagalog
  • Vietnamese
United States Environmental Protection Agency

Discover.

  • Accessibility Statement
  • Budget & Performance
  • Contracting
  • EPA www Web Snapshot
  • Grants
  • No FEAR Act Data
  • Plain Writing
  • Privacy and Security Notice

Connect.

  • Data
  • Inspector General
  • Jobs
  • Newsroom
  • Regulations.gov
  • Subscribe
  • USA.gov
  • White House

Ask.

  • Contact EPA
  • EPA Disclaimers
  • Hotlines
  • FOIA Requests
  • Frequent Questions

Follow.