A 1098 extraction API takes a mortgage interest statement as a PDF, scan or photo and returns one JSON record per statement: mortgage interest, points and outstanding principal as decimal amounts, origination and acquisition dates as ISO dates, the property address, and the lender and borrower identifiers a lending or tax app needs to join several lenders' statements.
1098 extraction API fields and their JSON types
1098 extraction API fields map each box of Form 1098 to a named, typed value. Amounts in Box 1, 2, 4, 5 and 6 come back as decimal strings, dates in Box 3 and 11 as ISO dates, Box 7 as a boolean, Box 9 as an integer, and Box 10 as text. Each statement becomes its own record.
Box titles below come from the IRS Instructions for Form 1098 (Rev. December 2026), which say to use the April 2025 revision of the form for 2026 information. What each box holds, box by box, is set out in the post on what 1098 OCR captures from a mortgage form. Field names and types are an illustrative design, not Schema Tax's schema; Schema Tax publishes no API documentation. The names follow the naming rules in the guide to designing a tax form JSON schema: meaning in the name, box label as metadata.
| Example field name | Box | IRS box title | JSON type |
|---|---|---|---|
mortgage_interest | 1 | Mortgage Interest Received From Payer(s)/Borrower(s) | decimal string |
outstanding_principal | 2 | Outstanding Mortgage Principal | decimal string |
origination_date | 3 | Mortgage Origination Date | ISO date |
refund_of_overpaid_interest | 4 | Refund of Overpaid Interest | decimal string or null |
mortgage_insurance_premiums | 5 | Mortgage Insurance Premiums | decimal string or null |
points_paid | 6 | Points Paid on Purchase of Principal Residence | decimal string or null |
property_address_same_as_mailing | 7 | Address of Property Securing Mortgage (checkbox) | boolean |
property_address | 8 | Address or Description of Property Securing Mortgage | object or null |
number_of_properties | 9 | Number of Mortgaged Properties | integer or null |
other | 10 | Other | text or null |
acquisition_date | 11 | Mortgage Acquisition Date | ISO date or null |
Amounts travel as strings such as "9876.25" so no parser rounds them on the way in. A blank box comes back with a null value and a blank status, not zero, because zero would claim the lender printed 0.00.
One record per statement matters more on a 1098 than on most forms. A borrower who refinanced, or whose loan changed hands, holds two statements for one property in one year. Merging them at extraction time hides which lender reported what. Keep them as two records and join them later, as the sections below show.
How the boxes get read from the page, which ones OCR misreads and how to check the output are covered in the post on 1098 OCR for mortgage interest forms. This post starts where that one stops: the shape of the JSON and what an app does with it.
Modeling the property address in a 1098 extraction API response
The property address in a 1098 extraction API response works best as a structured object with street, city, state and ZIP, plus the raw text as printed. A single text line is easy to return but hard to compare. The object also needs room for a parcel number or legal description when the lender prints no street address.
Box 7 and Box 8 work together, and the record has to keep both. The IRS instructions say that when the property address matches the borrower's mailing address, the lender may "either check the box or leave the box blank and complete box 8." So two lenders can describe the same house differently: one checks Box 7 and leaves Box 8 empty, the other prints the street address in Box 8. An app that compares only Box 8 sees one statement with an address and one without.
The fix is to resolve the address after extraction. If property_address_same_as_mailing is true, the app copies the borrower's mailing address into a derived resolved_property_address field and marks where it came from. The extracted fields stay as the lender printed them.
Box 8 has a second edge case. The instructions say that if the property has no street address, the lender enters "the property's jurisdiction and the property's Assessor Parcel Number(s) (APN)," and if no such number is readily available, a description of the property, "using metes and bounds if available." A structured address object cannot hold that, so the example object carries a kind and keeps the raw text:
{
"property_address": {
"box": "8",
"status": "ok",
"value": {
"kind": "parcel",
"jurisdiction": "Example County, OR",
"parcel_number": "APN 000-111-222",
"raw_text": "Example County, OR APN 000-111-222"
}
}
}
A street address uses "kind": "street" with street, unit, city, state and ZIP filled in. Normalize case, abbreviations such as "St" and "Street", and unit markers before you compare two addresses; otherwise one apartment number written two ways breaks a join.
Lender and borrower identifiers in 1098 extraction API data
Lender and borrower identifiers in 1098 extraction API data are the lender's name and TIN, the account number, and the borrower's name with a masked TIN. They tell an app which loan a statement describes and whose it is. The account number separates loans; the borrower block ties statements to a person.
The form's own labels are "Recipient's/Lender's" and "Payer's/Borrower's," and the IRS instructions use "payer of record" for the borrower and "lender of record" for the lender. Those labels can confuse code reused from 1099s, where the payer is the one sending the form. On a 1098 the borrower pays the interest, so the borrower is the payer. Use lender and borrower as JSON keys and the confusion goes away.
TINs. On a 1098 the lender's TIN is printed in full and the borrower's may already be truncated, a rule the 1098 OCR post quotes from the instructions. Schema Tax masks SSNs and TINs to the last four digits before anything is written to storage, so both arrive as masked strings in the example below. Formats and matching rules are in the post on masked SSNs in API responses.
Account number. The instructions require an account number when a lender has more than one account for the same borrower and files more than one Form 1098 for that person, and they encourage it on every form. When present, it is the cleanest way to tell two loans from the same lender apart.
Co-borrowers. Two people on one mortgage still produce one statement. The instructions say to file one Form 1098, for the payer of record, defined as "the individual carried on your books and records as the principal borrower." A co-borrower does not get a separate form. An app that expects one record per person on the loan will find one record per loan, under one name. If your product needs both owners, ask the second person to confirm they share the loan rather than looking for a second 1098.
How should an app link several 1098s from a 1098 extraction API?
An app should link several 1098s from a 1098 extraction API on three keys: the borrower (masked TIN plus normalized name), the resolved property address, and the tax year. Statements that match on all three describe one property for one year. Box 3 and Box 11 then tell a refinance apart from a loan that changed hands.
The two dates do different jobs. The IRS instructions say Box 3 is the date the loan originated with the original lender, and that an acquiring lender should not enter its acquisition date there. Box 11 is filled only "if you acquired the mortgage in the calendar year." That gives two patterns for a pair of matched statements:
- Refinance. The second statement shows a new
origination_dateinside the tax year and a nullacquisition_date. It is a new loan. - Loan acquired by another lender. The second statement shows the same
origination_dateas the first and anacquisition_dateinside the tax year. It is the same loan with a new holder.
Points follow a rule worth encoding too. The instructions list amounts paid "For refinancing" under what not to report as points, so a refinance statement normally has a null points_paid. The taxpayer's side of a refinance, including payoff interest and points, is explained in the post on two 1098s after a refinance.
Example: two 1098s from one refinance
Here is an illustrative response for one upload holding two fictional statements for tax year 2026. The borrower, Avery Example, refinanced on April 15, 2026, moving from Example Savings Bank to Sample Mortgage Co. The URL is a placeholder, every name, number and amount is fictional, and Boxes 4, 5, 9 and 10 are left out of each record to keep the example short.
POST https://api.example.com/v1/extractions
Content-Type: multipart/form-data
file=avery-example-1098s.pdf
{
"document_id": "doc_7f21a4",
"forms": [
{
"form_type": "1098",
"tax_year": 2026,
"pages": [1],
"lender": { "name": "Example Savings Bank", "tin": "XX-XXX4410" },
"borrower": {
"name": "Avery Example",
"tin": "XXX-XX-1234",
"mailing_address": { "street": "12 Sample Lane", "city": "Exampleton", "state": "OR", "zip": "97000" }
},
"account_number": "ESB-0049812",
"fields": {
"mortgage_interest": { "box": "1", "value": "3912.40", "status": "ok" },
"outstanding_principal": { "box": "2", "value": "286400.00", "status": "ok" },
"origination_date": { "box": "3", "value": "2019-05-20", "status": "ok" },
"points_paid": { "box": "6", "value": null, "status": "blank" },
"property_address_same_as_mailing": { "box": "7", "value": true, "status": "ok" },
"property_address": { "box": "8", "value": null, "status": "blank" },
"acquisition_date": { "box": "11", "value": null, "status": "blank" }
}
},
{
"form_type": "1098",
"tax_year": 2026,
"pages": [2],
"lender": { "name": "Sample Mortgage Co.", "tin": "XX-XXX7731" },
"borrower": {
"name": "AVERY EXAMPLE",
"tin": "XXX-XX-1234",
"mailing_address": { "street": "12 Sample Ln", "city": "Exampleton", "state": "OR", "zip": "97000" }
},
"account_number": "SMC-2026-55190",
"fields": {
"mortgage_interest": { "box": "1", "value": "9876.25", "status": "ok" },
"outstanding_principal": { "box": "2", "value": "290000.00", "status": "ok" },
"origination_date": { "box": "3", "value": "2026-04-15", "status": "ok" },
"points_paid": { "box": "6", "value": null, "status": "blank" },
"property_address_same_as_mailing": { "box": "7", "value": false, "status": "ok" },
"property_address": {
"box": "8",
"status": "ok",
"value": { "kind": "street", "street": "12 Sample Ln", "city": "Exampleton", "state": "OR", "zip": "97000", "raw_text": "12 SAMPLE LN EXAMPLETON OR 97000" }
},
"acquisition_date": { "box": "11", "value": null, "status": "blank" }
}
}
]
}
The join works like this:
| Join key | Statement 1 | Statement 2 | Match after normalizing |
|---|---|---|---|
| Borrower TIN last four | 1234 | 1234 | Yes |
| Borrower name | Avery Example | AVERY EXAMPLE | Yes, after case folding |
| Resolved property address | Box 7 checked, so mailing address: 12 Sample Lane | Box 8: 12 Sample Ln | Yes, after expanding "Ln" |
| Tax year | 2026 | 2026 | Yes |
| Account number | ESB-0049812 | SMC-2026-55190 | No, which is expected: two loans |
Box 3 on the second record falls inside 2026 and Box 11 is null on both, so the pair reads as a refinance. Box 2 on the new loan is the principal as of origination, as the instructions direct, which is why it differs from the old loan's January 1 figure. The interest for the year is 3,912.40 plus 9,876.25, or 13,788.65, across the two lenders, but adding them up is a reporting step, not an extraction step.
Where does 1098 extraction API data go in a lending or tax app?
1098 extraction API data usually goes to one of two places: a loan file in a lending app, or a mortgage interest export that a preparer or tax software reads. In both, the app stores what each lender reported and leaves the deduction to the taxpayer, the preparer or tax software that applies the rules.
In a lending app, the 1098 is evidence. It confirms an existing mortgage, the lender holding it, the approximate balance at the start of the year and the yearly interest. That is useful next to the income documents an underwriter already collects; the post on an income verification API built on tax documents covers how those records attach to an applicant.
In a tax app, the 1098 records become rows in a mortgage interest export, one per statement, with the lender, the boxes and the box labels. A relational store keeps that tidy. In the example design from the post on a tax form data model SQL schema, each statement becomes a forms row with form_type = '1098', and each box becomes a form_fields row whose field_name is the JSON key, such as mortgage_interest with box 1 in value_amount. The address object fits in the forms table's extra jsonb column or in a child table if you query it.
What the app should not do is decide the deduction. Whether interest is deductible, and how much, depends on rules about the loan, the property and the taxpayer that a statement does not show. Keep the extracted figures intact and let the person or software that prepares the return apply those rules. The same goes for the 1099 records that often arrive in the same upload; the 1099 extraction API guide shows the shared envelope, with a form_type discriminator, that lets one response carry several form types.
What if a 1098 extraction API receives a 1098-T, 1098-E or escrow statement?
A 1098 extraction API that receives a 1098-T, a 1098-E or an escrow statement should classify the page as a different document and return no mortgage fields. These look-alikes share the form number or the lender's letterhead but report tuition, student loan interest or escrow activity. Forcing them into a 1098 record attaches mortgage field names to the wrong numbers.
The risk comes from the title. A classifier that keys on "1098" alone puts a tuition statement on the mortgage path, and the first amount on that statement lands in mortgage_interest. The record passes a shape check and holds nonsense. The safe response names the form it found, such as "form_type": "1098-T", with an empty fields object or an unsupported status, so the app can route the page to a person or another tool.
Escrow statements are harder, because they often share a page or an envelope with the real 1098. A year-end escrow summary lists monthly payments, taxes disbursed and an escrow balance. None of those belong in Box 1 or Box 10 unless the 1098 itself prints them there. The page should yield a 1098 record for the 1098 part and nothing for the escrow table. How the two documents differ for the borrower is covered in the post comparing a 1098 with an escrow statement.
Schema Tax reads only the mortgage interest statement among the 1098 family. The tuition statement and the student loan interest statement are outside its form list, and the post on 1098-T OCR for tuition statements explains what that form holds instead.
Test this before you depend on any service. Upload a fictional 1098-T and a sample escrow summary and look at what comes back. A response that maps their numbers onto mortgage field names is a warning sign.
For mortgage statements, Schema Tax returns interest, points, outstanding principal and property address as typed fields, and its API is billed per page with no monthly minimum. API access is by request through "Ask about API access" in the Schema Tax pricing section. To try it on your own statements first, Get started on the free plan.