Available3 endpoints$0.01 per successful call
Firearms & Explosives API
ATF Federal Firearms License lookup, verification, and search.
Base URL · https://api.compliancegrid.ai/v1/firearms
Try ComplianceGrid · no signup
A live check for this product is not on the site yet. These ones run real checks with no API key:
What it checks
The Firearms & Explosives API provides programmatic access to ATF Federal Firearms License (FFL) data. Search and verify FFLs by license number, licensee name, state, or license type. Parse and validate FFL numbers against ATF formatting rules. Access reference data for FFL types, Federal Explosives License (FEL) types, ATF regions, and state codes. Built on ATF's monthly FFL data releases.
- FFL search by name, state, city, ZIP, license type, or expiration status
- FFL verification — validate a specific license number and get full details
- FFL number parsing — extract region, district, county, type, and sequence
- FFL number format validation against ATF pattern (R-DD-CCC-TT-EX-SSSSS)
- DEA number checksum validation (the DEA registrant database is not public, so registrations cannot be looked up)
- Reference data: 11 FFL types, 4 FEL types, 9 ATF regions, 56 state/territory codes
- Statistics endpoint for data coverage overview
- Admin data reload endpoint for monthly ATF data updates
Request and response
// Search for FFLs in Texas
const response = await fetch(
"https://api.compliancegrid.ai/v1/firearms/ffl/search?state=TX&type=01&limit=5",
{ headers: { "Authorization": "Bearer " + process.env.CG_TOKEN } }
);
const data = await response.json();
console.log(data.totalResults); // 4250
console.log(data.results[0].licenseName);
console.log(data.results[0].premiseState); // "TX"
// Verify a specific FFL
const verify = await fetch(
"https://api.compliancegrid.ai/v1/firearms/ffl/verify/5-73-123-01-8A-12345",
{ headers: { "Authorization": "Bearer " + process.env.CG_TOKEN } }
);
const result = await verify.json();
console.log(result.found); // true
console.log(result.record.licenseType); // "01 - Dealer in Firearms"Example response
{
"success": true,
"query": { "state": "TX", "type": "01" },
"results": [
{
"licenseNumber": "5-73-123-01-8A-12345",
"licenseName": "LONE STAR FIREARMS LLC",
"businessName": "LONE STAR GUNS",
"premiseStreet": "1234 MAIN ST",
"premiseCity": "HOUSTON",
"premiseState": "TX",
"premiseZip": "77001",
"licenseType": "01",
"licenseTypeName": "Dealer in Firearms",
"expirationDate": "2027-06-01",
"expired": false
}
],
"totalResults": 4250,
"limit": 5,
"offset": 0
}Good to know
- Results are information for your review, not legal advice or a compliance determination. Your reviewer makes the final call.
- Every response carries its source and the list version, so the result can go in your audit file.
- The sandbox returns mock data and production returns live data. Build in the sandbox and switch your key to go live.
Pricing
$0.01per successful call
Only successful calls are billed. Volume discounts start at 10,001 calls a month, and the sandbox is free.See pricing and estimate your bill →