US Lottery API Logo
US Lottery API
Active Region: Pennsylvania (PA)

Pennsylvania Lottery JSON API

Developer-friendly REST API for Pennsylvania Lottery winning numbers. Get reliable, real-time results for Match 6 and Treasure Hunt with JSON payloads.

Supported PA Games

Quick Integration

cURL ExamplePA Match 6
curl -X GET "https://api.uslotteryapi.com/v1/states/pa/match-6/latest" \
  -H "X-API-Key: YOUR_API_KEY"
Node.jsPA Match 6
const res = await fetch('https://api.uslotteryapi.com/v1/states/pa/match-6/latest', {
  headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const { data } = await res.json();
console.log(data.winning_numbers);

Start Building Today

Access Pennsylvania endpoints and 20+ other US states with our free developer tier.

Get Free API Key

Frequently Asked Questions

Which Pennsylvania lottery games are supported via API?

Currently, we provide endpoints for PA Match 6 and PA Treasure Hunt. Both support latest draws and historical archives.

How often does the Pennsylvania API update?

The API updates within 5 minutes of the official PA Lottery drawing time for each specific game.

Do I need an API key to test the endpoints?

Yes, you need a free API key. We offer a developer tier with 500 free requests per month.

Explore State Lottery APIs