SAM.gov Opportunity Explorer

Contract opportunities downloaded from SAM.gov and stored in MariaDB

Connecting…
0 opportunities
Posted Type Title Organization NAICS Response due State Award

Download from SAM.gov

Checking…

Each run pages through the Get Opportunities API, upserts notices into MariaDB, and records its progress. Large date ranges are split automatically to stay within SAM.gov's 10,000-record offset cap.

Quota & current run

Today (UTC)—
Daily limit—
Remaining—
Per-minute limit—

SAM.gov public keys are typically limited to 10 requests/minute and 1,000/day. The counter is persisted in api_usage.

Sync history

RunStatusPosted rangeFetchedStoredRequestsStartedFinishedNote
Loading…

Interaction log

Syncs, exports, emails, and notice views are recorded in activity_log.

Time (UTC)CategoryActionStatusActorDetailDuration
Loading…

Email deliveries

Sent (UTC)RecipientsSubjectRecordsAttachmentsStatusError
Loading…

How this works

  1. Download. The C++ sync worker calls the SAM.gov Get Opportunities API for the selected posted-date window, following pagination and respecting the configured per-minute and daily quota.
  2. Store. Each notice is upserted into the opportunities table by noticeId. The full SAM.gov payload is kept in raw_json, and first/last-seen timestamps are preserved.
  3. Explore. Search, filter, sort, and page through 25–500 rows at a time. Open a row for the complete record and direct SAM.gov links.
  4. Share. Export the current filtered set to CSV or PDF, open a print-ready page, or email the report with attachments.

Configuration

Secrets live in .env (loaded at startup; real environment variables take precedence). Restart the service after changing them.

VariablePurpose
SAM_API_KEYSAM.gov API key. Required for sync; get it from your SAM.gov account.
SAM_MAX_REQUESTS_PER_MINClient-side pacing (default 10).
SAM_MAX_REQUESTS_PER_DAYPersisted daily cap (default 1,000).
SYNC_MAX_REQUESTSSafety cap per run (default 100).
SMTP_HOST, SMTP_PORT, SMTP_SECUREOutbound mail relay. starttls, ssl, or none.
SMTP_USERNAME, SMTP_PASSWORDSMTP credentials, if required.
MAIL_FROM, MAIL_FROM_NAMEFrom address and display name for reports.
APP_USERNAME, APP_PASSWORDOptional HTTP Basic auth for the whole app.

Demo data

To explore the interface before wiring a SAM.gov key, load the synthetic dataset:

mysql -u root ai_csiis05 < database/seed_demo.sql

Demo notice IDs start with DEMO-. They are safe to delete with DELETE FROM opportunities WHERE notice_id LIKE 'DEMO-%';.

Operational notes

  • Dates and timestamps are stored in UTC. SAM.gov's original deadline text (including its offset) is preserved for display.
  • Large ranges are split into ≤365-day windows and further subdivided when a window exceeds the 10,000-record offset cap.
  • Only one sync runs at a time. Cancellation takes effect after the in-flight page completes.
  • This tool is an independent cache. Always verify the source notice on SAM.gov before acting.
Share

Email report

Attachments