Labor Check

The person’s labor life with the Spanish Social Security (TGSS)

View as Markdown

Where it lives: in the Spain Public Administration results, at data.employment.labor_check. APIs with dedicated per-product results endpoints return this model directly.

The labor check answers three questions about a person: who they have worked for and when, what they have contributed month by month, and what that means today — whether they are currently working, their current work statuses, and a guaranteed minimum net income floor. Use it to verify employment, gauge income stability and assess risk.

It arrives in the session results under data, and the official TGSS reports the data was read from travel as attachments, downloadable for your own records.

The person's labor life with the Spanish Social Security (TGSS). It answers three questions: who they have worked for and when (work_relations_history), what they have contributed month by month per employer account (contribution_base_by_company), and what that means today — a guaranteed minimum NET income floor (income_floor, a lower bound derived from the contribution bases, never a salary estimate) and the person's current work statuses (current_work_types). Use it to verify employment, gauge income stability and assess risk; the source reports the data was read from travel in attachments.

product"social_security"Required

The product type identifier. Always social_security for this product.

sub_family"social_security:spain_labor_check"Required

The sub-family identifier: social_security:spain_labor_check, the Spanish Social Security (TGSS) labor life check.

fetch_datestringRequiredformat: "datetime"
Date this product was fetched.
work_relations_historylist of objectsRequired

Work relation history: ongoing relations first, then the finished ones from the most recently ended backwards — including situations assimilated to registration such as benefit periods.

contribution_base_historylist of objectsRequiredRead-onlyDeprecated

Flat monthly contribution-base history, most recent first. Months only — company attribution lives in contribution_base_by_company, which groups these same months per employer account.

currently_activebooleanOptional

True when the person is actually WORKING right now: at least one entry in current_work_types is real work (employee, self_employed or public_employee). Receiving an unemployment benefit is not active employment. Neither is a hire scheduled for a future date: Social Security reports such a person as registered ("alta programada"), but this field stays false until the job actually starts. false means the person's current situation is known and includes no active job; null means the work history could not be recovered, so nothing is claimed either way. The value is deliberately cautious — it is designed for risk decisions — so only clearly identified work counts: in the rare case where an ongoing relation cannot be classified you get false plus a current_work_type_unknown warning, never an optimistic true.

current_work_typeslist of enumsOptional

The person's current work statuses: one entry per ongoing relation, so repeated values reveal simultaneous jobs (two employee entries = two concurrent employments). An ongoing benefit shows as unemployment_benefits. An empty list means nothing ongoing — no job and no benefit.

social_security_daysintegerOptional

Total days effectively counted by Social Security over the whole career. Simultaneous employments are counted once, so this is NOT the sum of the per-relation day counts.

contribution_base_by_companylist of objectsOptionalDefaults to []

Contribution-base history grouped per employer account, most recent first. Join each group to its work relation through the ccc code.

income_floorobjectOptional

Guaranteed minimum NET income derived from the certified contribution bases (the certified gross lower bound travels alongside it). A floor for risk assessment, never a salary estimate.

attachmentslist of objectsOptionalDefaults to []

List of attached supporting documents (e.g. the original TGSS PDF reports this product was extracted from).

Work relations

One entry per period of the labor life, most recent first: employments, self-employment stretches, and situations that count for Social Security without being a job (an ongoing unemployment benefit, paid untaken vacations). The ccc employer account code is the join key to the contribution history below.

One period of the person's labor life: an employment, a self-employment stretch, or a situation that counts for Social Security without being a job.

activity_startdateRequired

Activity start date — the date the TGSS counts contributed days from.

namestringRequired

Display name of the relation: the employer's name for employees, the regime for self-employment, and the situation description for benefit periods.

work_typeenumRequired

Work type of this relation (e.g. employee, self_employed, unemployment_benefits).

contract_typeenumRequired

Contract type as mapped from the TGSS classification; unknown when the source key has no mapping.

work_scheduleenumRequired

Work schedule: full_time, part_time, or unknown.

Allowed values:
activity_enddateOptional
Activity end date. Empty while the relation is ongoing.
regimestringOptional
Social Security regime of this relation.
cccstringOptional

Employer contribution account code (CCC) — the join key to contribution_base_by_company. Absent for self-employment, which has no employer account.

assimilatedbooleanOptionalDefaults to false

True for situations assimilated to registration (benefit periods, paid untaken vacations...) — periods that count for Social Security but are not an actual job. Skip them when reasoning about employment or earned income.

contribution_groupstringOptional
Contribution group of the worker in this relation.
collective_agreementstringOptional
Collective agreement governing this relation, when declared.
social_security_daysintegerOptional

Days this relation counts for Social Security. Simultaneous relations each count their own days, so summing across relations overstates — the deduplicated career total is the top-level social_security_days.

currently_activebooleanOptional

True while this relation is ongoing (it has no end date yet).

Contribution bases

The monthly contribution history, grouped per employer account — join each group to its work relation through ccc. The flat contribution_base_history on the labor check is the same months in one list, for date-keyed consumers.

The month-by-month contribution history of one employer account (or regime).

company_namestringOptional
Employer or regime name, as certified by the TGSS.
cccstringOptional

Employer contribution account code (CCC) — the join key linking this history to the matching entries in work_relations_history. Absent for self-employment, which has no employer account.

regimestringOptional
Social Security regime of this account.
is_benefit_blockbooleanOptionalDefaults to false

True when this entry tracks a benefit (e.g. cessation-of-activity protection for the self-employed), not an actual employer. Its bases are NOT earned income — exclude them from any income computation.

monthslist of objectsOptionalDefaults to []
Monthly contribution bases of this account, most recent first.

Each month carries its state and, when registered, the gross base:

One month of contribution: its state and, when registered, the gross base amount.

datedateRequired

Last day of the contribution month — a convenience key for date-indexed consumers; year and month carry the same information.

yearintegerRequired
Contribution year.
monthintegerRequired

Contribution month (1-12).

statusenumRequired

State of the month: registered (base certified by the TGSS), pending_update (contribution reported, amount not published yet — an existing contribution, NOT a gap), not_yet_settled (recent month still inside the settlement lag), no_base_registered, or no_alta (not registered that month). A month absent from the list altogether means no contribution row existed for it.

baseobjectRequired

Monthly contribution base (gross). Carries a numeric amount only when the month is registered; in any other state the amount is not available — unavailable, not zero.

provisionalbooleanOptionalDefaults to false

True when the base is provisional and may still be regularized by the TGSS — typical for self-employed workers until the yearly settlement.

Income floor

The floor is a guaranteed minimum net income, never a salary estimate: deductions are estimated conservatively so the net stays a floor, and real net income can only be equal or higher. For self-employed workers it deliberately understates real income — combine it with other signals.

A guaranteed minimum NET income derived from the contribution bases — a floor for risk assessment, never a salary estimate. The certified gross lower bound travels alongside in the gross_* fields.

statusenumRequired

Whether a floor could be asserted: computed (floor available), not_currently_active (no ongoing employment — e.g. between contracts, a scheduled future hire or an ongoing unemployment benefit; the current floor is zero), insufficient_data (working, but not enough certified months yet to measure a floor), or activity_unknown (no employment evidence either way).

Allowed values:
monthly_floorobjectOptional

Estimated minimum NET monthly income: the worst observed window month after worker Social Security contributions and IRPF withholding. A lower bound for risk assessment — NOT a salary estimate: every unknown in the conversion (contract type, age, family situation) is resolved toward more deductions, so real take-home pay can only be equal or higher. For self-employed workers it deliberately understates real income; combine with other signals.

annual_floorobjectOptional
The net monthly floor, annualized.
gross_monthly_floorobjectOptional

Guaranteed minimum GROSS monthly income, certified by the contribution bases. The net floor is minimized over months separately, so it can come from a different (net-worse) month than this gross minimum.

gross_annual_floorobjectOptional

The gross monthly floor, annualized (x12).

estimated_deduction_ratestringOptionalformat: "number"Defaults to nan
Decimal number with 4 digits precision
companieslist of objectsOptionalDefaults to []

Only the companies contributing to the computed floor (ongoing, recent activity). Past employments are never listed here — their history is in contribution_base_by_company — so nothing in this list can be misread as a salary the person no longer earns.

method_versionstringOptional

Version of the floor derivation method. Bumped whenever the algorithm changes meaning — compare floors only within the same version.

Each company contributing to the computed floor appears with its own share — past employments are never listed here, so nothing in this list can be misread as a salary the person no longer earns:

One company's share of the income floor: the minimum net income it contributes.

company_namestringRequired
Employer or regime this floor comes from.
monthly_floorobjectRequired

Estimated minimum NET monthly income from this company: its worst observed window month's net share, after worker Social Security contributions and IRPF withholding at that month's real income mix. Every unknown (contract type, age, family situation) is resolved toward more deductions, so real take-home pay can only be equal or higher.

annual_floorobjectRequired
Estimated minimum NET annual income from this company.
basisenumRequired

How this floor was derived (e.g. window_minimum: the minimum base over the trailing window of fully certified months).

Allowed values:
cccstringOptional

Employer contribution account code (CCC) of this company.

work_typeenumOptional
Work type behind this income.
gross_monthly_floorobjectOptional

The certified GROSS monthly floor this company's net figure derives from — the minimum contribution base over the observation window.

gross_annual_floorobjectOptional

The certified GROSS annual floor from this company (the gross monthly floor x12).

observed_monthsintegerOptionalDefaults to 0

Number of certified months the floor is based on — the more months, the steadier the floor.