Product brochure (PDF)
Download the product brochure
All our school district data in one document: what each file contains, example records, how we collect the data, and how orders and licences work.
One read-only API over five kinds of record
Every endpoint answers a GET request with JSON by default. Lists are paginated, can be sorted and can be downloaded as CSV with format=csv.
https://www.schooldistrictrfp.com/api/v1Formatapplication/json; charset=utf-8The API is organised around the records a sales or bid team works with:
- Districts. Every district in the federal finance survey for fiscal year 2023, keyed by its 7-digit NCES district ID (
leaid), with enrollment, total spending, capital outlay and counts of the records we hold for it. - Contracts. Contract and purchase items approved by Texas school boards, with the supplier, the amount, start and end dates, the term, renewal options, any cooperative contract and a link to the meeting.
- Certificates. Texas Form 1295 certificates filed for school district contracts since January 2021: supplier, city, contract number, goods or services and the date the district acknowledged it.
- Suppliers. One record per supplier across contracts and certificates, with the districts it serves and its most frequent categories.
- Meetings and agenda items. Board meetings and their agenda items from 43 states, searchable by word, district and date.
Contracts and certificates carry up to several of 23 categories, for example construction, transportation or software-licences. The list with counts is at GET /categories. A record is marked multi_award when the same contract was awarded to two or more suppliers.
Data is refreshed every week as new board meetings and certificates are published. Dates are in the form YYYY-MM-DD, amounts are US dollars as stated in the board item, and a field we could not fill is null rather than a guess.
What the API covers
Send your key with every request
Each key belongs to one data licence. Keep it on your server: anyone holding it can use your quota.
Pass the key in the X-API-Key header, or as a bearer token in the Authorization header. Both work the same way. Keys are not accepted in the URL, so they do not end up in proxy logs or browser history.
# either header works
X-API-Key: sdr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Authorization: Bearer sdr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxA request without a key gets 401 missing_api_key, a wrong key gets 401 invalid_api_key, and a revoked or expired key gets 403. After 30 failed attempts in ten minutes from one address, that address waits ten minutes. Only GET /api/v1/, which lists the endpoints, works without a key.
We store keys only as one-way hashes. If a key is lost or exposed, write to us and we replace it; the old key stops working at once.
Contracts ending in the next six months
The same request in three languages: transportation contracts in Texas that end within 180 days, soonest first.
curl -s "https://www.schooldistrictrfp.com/api/v1/renewals?within_days=180&state=TX&category=transportation" \ -H "X-API-Key: $SDR_API_KEY"
import os, requests r = requests.get( "https://www.schooldistrictrfp.com/api/v1/renewals", params={"within_days": 180, "state": "TX", "category": "transportation"}, headers={"X-API-Key": os.environ["SDR_API_KEY"]}, timeout=60, ) r.raise_for_status() for c in r.json()["data"]: print(c["end_date"], c["district"], c["amount_usd"], [s["id"] for s in c["suppliers"]])
// Node.js 18 or later (built-in fetch). Keep the key on the server. const url = new URL("https://www.schooldistrictrfp.com/api/v1/renewals"); url.search = new URLSearchParams({ within_days: "180", state: "TX", category: "transportation" }); const res = await fetch(url, { headers: { "X-API-Key": process.env.SDR_API_KEY } }); if (!res.ok) throw new Error((await res.json()).error.message); const { data, meta } = await res.json(); console.log(meta.total, "contracts"); for (const c of data) console.log(c.end_date, c.district, c.amount_usd);
In these examples the key is read from an environment variable named SDR_API_KEY. The response is described under Responses.
Sixteen endpoints, all GET
Paths are relative to the base URL. List endpoints accept page, per_page, sort and format in addition to the filters shown.
| Endpoint | Returns |
|---|---|
/districts | Districts, searchable by name, state and size |
/districts/{leaid} | One district with top suppliers, categories, upcoming end dates, recent contracts and meetings |
/districts/{leaid}/contracts | Contracts of one district, with all contract filters |
/contracts | Contract search |
/contracts/{id} | One contract |
/renewals | Contracts that end within the next N days |
/certificates | Texas Form 1295 certificate search |
/certificates/{id} | One certificate |
/suppliers | Supplier search |
/suppliers/{id} | One supplier with districts served, upcoming end dates, recent contracts and certificates |
/suppliers/{id}/contracts | Contracts held by one supplier |
/categories | The 23 categories with counts |
/meetings | Board meetings by district, state and date |
/meetings/{id} | One meeting with its agenda items and contract items |
/agenda-items | Agenda items by district, state, meeting, date and words |
/usage | Your key's limits and use |
GET/districts
| Parameter | Description |
|---|---|
q | Part of the district name, for example katy |
state | Two-letter state code; several separated by commas |
min_enrollment, max_enrollment | Enrollment range (fall membership, FY2023) |
has_contracts | true for districts with contracts or certificates |
has_agendas | true for districts with board meetings in the archive |
sort | name, enrollment, spending, contracts, certificates, meetings, last_meeting. Default -enrollment |
GET /districts/{leaid} takes the 7-digit NCES ID, for example /districts/4825170 for Katy ISD.
GET/contracts
The main search. Filters combine with AND; a comma inside one filter means OR.
| Parameter | Description |
|---|---|
state | Two-letter state code, for example TX |
district | One or more NCES district IDs (up to 50) |
district_name | Part of the district name |
category | One or more category IDs from /categories |
supplier | One or more supplier IDs from /suppliers (up to 20) |
supplier_name | Part of the supplier name |
q | Words in the agenda item or the description of what was bought |
end_from, end_to | Contract end date range, YYYY-MM-DD |
ending_within_days | Contracts ending between today and N days from today (1 to 1825) |
has_renewal_options | true when the item states renewal options |
min_value, max_value | Amount range in US dollars |
has_amount | true for items with a stated amount |
multi_award | true for contracts awarded to two or more suppliers |
cooperative | true for purchases through a cooperative contract |
meeting_from, meeting_to | Board meeting date range |
sort | meeting_date, end_date, amount, district. Default -meeting_date |
The same filters work on /districts/{leaid}/contracts and /suppliers/{id}/contracts. Contract IDs look like C001819.
GET/renewals
Contracts whose end date falls between today and within_days from today (default 180, at most 1825), soonest first. It accepts every contract filter except the end date ones, and adds days_to_end to each row. Use it for a renewal calendar: for example /renewals?within_days=365&category=custodial&has_renewal_options=true.
GET/certificates
| Parameter | Description |
|---|---|
district, state | NCES district IDs or state code |
supplier, supplier_name | Supplier ID or part of the name |
category | Category IDs |
q | Words in the goods or services description or the contract number |
from, to | Date the district acknowledged the certificate |
multi_award | true when two or more suppliers filed for the same district contract number |
sort | acknowledged, district, supplier. Default -acknowledged |
Certificate IDs are the certificate numbers, for example /certificates/2026-1457357.
GET/suppliers
| Parameter | Description |
|---|---|
q | Part of the supplier name |
state | State of the supplier's address |
category | Suppliers whose top categories include it |
district | Suppliers with contracts or certificates in these districts |
min_districts | Minimum number of districts served |
sort | name, districts, contracts, certificates, value, last_seen. Default -districts |
A supplier ID is a short lowercase form of the name, stable between updates. Spelling variants of the same company are grouped under one ID and listed in other_names.
GET/meetings and /agenda-items
| Parameter | Description |
|---|---|
district, state | NCES district IDs or state code |
from, to | Meeting date range |
has_contract_items | Meetings only: true for meetings with contract items |
meeting | Agenda items only: meeting IDs such as M0010694 |
q | Agenda items only: words that must all appear in the title or description, for example q=chromebook purchase |
sort | date or district (meetings also items). Default -date |
Both need at least one filter. GET /meetings/{id} returns the meeting with all its agenda items in order and any contract items read from it.
GET/usage and /categories
/usage shows your key's plan and limits, what you have used today and a daily history (days, up to 90). It does not count toward the row quota. /categories lists the category IDs, names, families and counts.
What comes back
Lists return data, meta and links. Single records return data only. Company and supplier names are hidden in the examples on this page.
{
"data": [
{
"id": "C001819",
"leaid": "4823640",
"district": "HOUSTON ISD",
"state": "TX",
"meeting_date": "2025-01-16",
"meeting_id": "M0002316",
"agenda_item": "9. Ratification Of Cooperative Vendor Awards From August 11, 2023, To The Present",
"suppliers": [
{ "id": "████████-███████████", "name": "█████████ ███████████ LLC" },
{ "id": "█████████-████", "name": "█████████ ████, LLC" },
{ "id": "█████████-█████████████-██████", "name": "█████████ █████████████ ██████, Inc" },
{ "id": "██████-█████-████", "name": "██████ █████ ████ & █████ Inc" }
],
"vendor_as_written": "████████████████████████; ██████████████; ██████████████████; ████████████████",
"multi_award": true,
"what": "Cooperative / Medium and Heavy-Duty Trucks, Accessories, Parts, and Repair Services",
"amount_usd": 750000.0,
"amount_text": "$750,000",
"start_date": "2024-01-24",
"end_date": "2026-11-30",
"days_to_end": 1,
"term": "January 24, 2024 through November 30, 2024, with two automatic annual renewals, not to extend beyond November 30, 2026.",
"renewal_options": "two automatic annual renewals, not beyond November 30, 2026",
"has_renewal_options": true,
"cooperative_contract": "BuyBoard cooperative project number 723-23",
"categories": ["transportation", "maintenance-repair"],
"source_url": "https://houstonisd.legistar.com/MeetingDetail.aspx?ID=1210&GUID=A9F23E88-055B-4CCB-B040-832F6997C4F4"
}
],
"meta": { "page": 1, "per_page": 25, "total": 25, "pages": 1, "sort": "end_date" },
"links": {
"self": "https://www.schooldistrictrfp.com/api/v1/renewals?within_days=180&state=TX&category=transportation&page=1",
"next": null,
"prev": null
}
}{
"data": {
"leaid": "4825170",
"name": "KATY ISD",
"state": "TX",
"city": "Katy",
"enrollment": 92667,
"total_expenditure_usd": 1482497000.0,
"capital_outlay_usd": 341441000.0,
"spending_year": "FY2023",
"contracts": 223,
"certificates": 2379,
"suppliers": 1972,
"meetings": 44,
"agenda_items": 410,
"first_meeting": "2024-11-18",
"last_meeting": "2026-11-16",
"profile_page": "https://www.schooldistrictrfp.com/districts/katy-isd/",
"top_suppliers": [
{ "id": "███████-████████", "name": "███████ ████████, LLC", "contracts": 22, "certificates": 3 },
{ "id": "████████████-construction", "name": "████████████ Construction, Ltd", "contracts": 15, "certificates": 0 }
],
"top_categories": [
{ "category": "construction", "contracts": 76 },
{ "category": "insurance-benefits", "contracts": 21 },
{ "category": "transportation", "contracts": 18 }
],
"upcoming_renewals": [ /* up to 10 contracts, same fields as /contracts */ ],
"recent_contracts": [ /* up to 10 */ ],
"recent_meetings": [ /* up to 5 */ ],
"links": { "contracts": "https://www.schooldistrictrfp.com/api/v1/contracts?district=4825170", /* renewals, certificates, meetings, agenda_items */ }
}
}{
"data": {
"id": "███████-████████",
"name": "███████ ████████, LLC",
"other_names": ["███████ ████████, Inc", "███████ ████████"],
"city": "Houston",
"state": "TX",
"contracts": 32,
"certificates": 7,
"districts": 5,
"single_award_contract_value_usd": 313754101.0,
"first_seen": "2021-05-21",
"last_seen": "2026-11-17",
"top_categories": ["construction", "legal-financial", "athletics-fine-arts"],
"districts_served": [
{ "leaid": "4825170", "name": "KATY ISD", "state": "TX", "contracts": 22, "certificates": 3, "last_seen": "2026-04-20" },
{ "leaid": "4811190", "name": "BRAZOSPORT ISD", "state": "TX", "contracts": 5, "certificates": 1, "last_seen": "2026-06-15" }
],
"upcoming_end_dates": [ /* contracts */ ],
"recent_contracts": [ /* contracts */ ],
"recent_certificates": [ /* certificates */ ]
}
}Contract fields
| Field | Meaning |
|---|---|
suppliers | Suppliers named in the item, each with an ID you can pass to /suppliers/{id} |
vendor_as_written | The supplier names exactly as the board item gives them |
what | What was bought, in a short phrase |
amount_usd, amount_text | The amount as a number and as written; a not-to-exceed amount or unit price is kept in the text |
start_date, end_date, days_to_end | Contract dates as stated, and days from today to the end date |
term, renewal_options | The term and renewal wording from the item |
cooperative_contract | The cooperative or interlocal contract used, when there is one |
meeting_id, source_url | The meeting in /meetings and the public page of the agenda |
Pagination and sorting
per_page is 25 by default and at most 100 for JSON. page starts at 1. meta.total is the number of matching records, and links.next is the ready-made URL of the next page, or null on the last one. To sort in descending order, put a minus sign before the field: sort=-amount. Records with an empty sort field come last.
Add format=csv to any list
The same filters, one row per record, a header row, UTF-8. Opens directly in Excel and loads into any CRM import.
curl -s "https://www.schooldistrictrfp.com/api/v1/contracts?category=custodial&end_from=2027-01-01&end_to=2027-12-31&format=csv&per_page=1000" \ -H "X-API-Key: $SDR_API_KEY" -o custodial-ending-2027.csv
import os, requests H = {"X-API-Key": os.environ["SDR_API_KEY"]} url = "https://www.schooldistrictrfp.com/api/v1/certificates" params = {"district": "4825170", "from": "2025-01-01", "format": "csv", "per_page": 1000, "page": 1} with open("katy-certificates.csv", "w", encoding="utf-8") as f: while True: r = requests.get(url, params=params, headers=H, timeout=120) r.raise_for_status() lines = r.text.splitlines(keepends=True) f.writelines(lines if params["page"] == 1 else lines[1:]) if 'rel="next"' not in r.headers.get("Link", ""): break params["page"] += 1
- CSV pages hold up to 1,000 rows (500 by default). The total is in the
X-Total-Countheader and the next page in theLinkheader. - Lists inside a record, such as suppliers and categories, are joined with
|in one cell. - A text cell that starts with
=,+,-or@gets a leading apostrophe, so a spreadsheet never runs it as a formula.
One error format for every endpoint
Errors use standard HTTP status codes and a JSON body with a stable code you can test in your program.
{
"error": {
"status": 400,
"code": "invalid_parameter",
"message": "end_from must be a date in the form YYYY-MM-DD.",
"param": "end_from",
"request_id": "3f9c2a7d41b0e6c5",
"documentation": "https://www.schooldistrictrfp.com/api/#errors"
}
}| Status | Code | When |
|---|---|---|
| 400 | invalid_parameter | A value has the wrong form or is out of range, for example a date, a number or a sort field |
| 400 | unknown_parameter | A parameter the endpoint does not accept; the message lists the allowed ones |
| 400 | missing_parameter | /meetings or /agenda-items without any filter |
| 401 | missing_api_key | No key in the request |
| 401 | invalid_api_key | The key does not exist |
| 403 | key_revoked, key_expired | The key was replaced, or the licence period ended |
| 404 | not_found | Unknown endpoint, or no record with that ID |
| 405 | method_not_allowed | Anything other than GET or HEAD |
| 429 | rate_limited | Too many requests this minute; wait the seconds in Retry-After |
| 429 | daily_quota_exceeded | The day's request or row quota is used up; it resets at 00:00 UTC |
| 500, 503 | internal_error, unavailable | A problem on our side, or a short pause during the weekly update; retry later |
Every response carries an X-Request-Id header. If you write to us about an error, include it and we can find the request.
Limits per key
Each key has a per-minute rate, a daily request quota and a daily row quota. The plan is set by your licence; larger limits are part of the quote.
| Plan | Requests per minute | Requests per day | Rows per day |
|---|---|---|---|
| Standard | 60 | 5,000 | 50,000 |
| Pro | 120 | 20,000 | 250,000 |
| Enterprise | 300 | 100,000 | 1,000,000 |
Rows are the records returned: a list page of 100 counts as 100 rows, a single record as one. Days run in UTC. Every successful response tells you where you stand:
| Header | Meaning |
|---|---|
X-RateLimit-Limit | Requests allowed per minute |
X-RateLimit-Remaining | Requests left in the current minute |
X-RateLimit-Reset | Unix time when the minute window resets |
X-Quota-Requests-Remaining | Requests left today |
Retry-After | On a 429: seconds to wait |
For a full copy of a state or category, the data file is usually the better choice: it arrives as CSV and Excel and does not use your quota. Many customers load the file once and use the API for daily changes and renewal checks.
API access comes with a data licence
The API covers the scope of your licence, and the key is issued when the licence starts.
- Send the quote form with API access selected, and tell us the states, categories or districts you need and roughly how many requests a day you expect.
- We reply within one business day with the scope, the plan and the price for a year.
- After payment by card, PayPal or invoice, you receive your key and the plan limits. Updates for the year are included, and renewal is at the same price.
One licence can have several keys, for example one for production and one for development. Each is listed separately in /usage.
Common questions about the API
Is the API data the same as the files?
Yes. Both come from the same database and are updated weekly, with the same source link on every row.
Which states have contract items?
Contract items with amounts and end dates, and the Form 1295 certificates, are for Texas. Board meetings and agenda items cover 43 states, and district records cover the whole country.
Can I call the API from a web page?
Call it from your server and pass the results to the page. A key placed in browser code can be copied by anyone who opens the page.
How do I match a district to my CRM?
Use the NCES district ID in leaid. It is the federal ID used by most education datasets and does not change when a district renames itself.
Are there client libraries?
Yes, small client packages named schooldistrictrfp for the common languages. Plain HTTP works just as well, as the examples above show.
Is there personal or student data?
No student data. The records are about public contracts and public meetings, as the districts published them.
Tell us the scope and get a key with your licence
For example "Texas, transportation and custodial, renewal checks every morning".
- Reply within one business day
- Limits sized to your use
- Invoice, card or PayPal
