Resolving names in batch
POST /v1/schools/resolve matches complete school names, as people typed them, to institutions. Use it to clean a column of names from an application form, an employment record, or a legacy database. It takes a secret key.
1. Send up to 50 names
Section titled “1. Send up to 50 names”curl -X POST https://api.bursary.dev/v1/schools/resolve \ -H "x-api-key: sk_live_..." \ -H "content-type: application/json" \ -d '{ "queries": [ { "name": "Alabama A&M", "state": "AL" }, { "name": "Wright College", "state": "IL" } ], "limit": 5 }'queriesholds 1 to 50 names. Eachnameis up to 200 characters.stateis optional on each query, a two-letter code. Send it whenever your row has one. Without it, the search is national.limitis the number of candidates per name, 1 to 10. It defaults to 5.
The names go in the body, never the query string, because a batch often holds personal data and query strings end up in logs.
2. Line the results up by index
Section titled “2. Line the results up by index”{ "success": true, "data": { "results": [ { "index": 0, "candidates": [ { "institutionId": "019fd39c-0098-7070-9cc9-359d3ed6ce29", "name": "Alabama A & M University", "city": "Normal", "state": "AL", "matchedName": "Alabama A & M University", "matchedType": "official", "score": 0.56 } ] }, { "index": 1, "candidates": [ { "name": "Fox College", "city": "Tinley Park", "state": "IL", "matchedType": "official", "score": 0.421 }, { "name": "Wheaton College", "city": "Wheaton", "state": "IL", "matchedType": "official", "score": 0.409 }, { "name": "Worsham College of Mortuary Science", "city": "Wheeling", "state": "IL", "matchedType": "dba", "score": 0.409 }, { "name": "City Colleges of Chicago-Wilbur Wright College", "city": "Chicago", "state": "IL", "matchedType": "official", "score": 0.405 }, { "name": "Knox College", "city": "Galesburg", "state": "IL", "matchedType": "official", "score": 0.4 } ] } ] }, "meta": { "requestId": "01K2...", "timestamp": "..." }}The second list is shortened to the fields that matter here. Every query gets a result, and index is its position in your queries array. The response doesn’t repeat your text, so match results to rows by index. An empty candidates list means nothing scored 0.3 or above.
The second result is the case to plan for. The school meant is probably Wilbur Wright College in Chicago, and it ranks fourth. “College” is most of the query, so every name containing it scores close to the others.
3. Decide which candidates to accept
Section titled “3. Decide which candidates to accept”score ranks candidates. It doesn’t tell you whether a match is right, as Matching and scores explains. Decide with the other fields:
- Accept when there is one candidate, or the top one is clearly ahead, and its
cityandstateagree with your row. - Send to a person when two candidates are close, when
stateis missing and the name is generic, or whenmatchedTypeisformerand the date of your record matters. - Mark as unmatched when
candidatesis empty.
For a name that matched on a former name or an acronym, matchedName shows the exact string that agreed with yours.
4. Fetch the records you need
Section titled “4. Fetch the records you need”A candidate carries institutionId, the same value as id on a record. Store it, then fetch the record with GET /v1/schools/{id} when you need identifiers or more.
What it costs
Section titled “What it costs”Each name in a batch counts as one request against your monthly allowance, because each name is matched separately. A batch is charged whole or refused whole. If your free allowance can’t cover every name, the request answers 402 and none of it runs. Split the batch to use what remains. Rate limits and quotas has the rules.
resolveSchools has the full schema.