# Urine Protein/Creatinine Ratio Calculator (Ginsberg 1983)

> Urine Protein/Creatinine Ratio Calculator (Ginsberg 1983) is a paid API for AI agents from api.magentlab.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Calculates the urine protein-to-creatinine ratio (PCR) in mg/mg from a spot urine sample, with clinical band interpretation and estimated 24-hour protein excretion.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/urine_pcr
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/urine-protein-creatinine-ratio-calculator-ginsberg-1983-637c4f22
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WIEzz_7HVKO3X5yS-FEId

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability urine-protein-creatinine-ratio-calculator-ginsberg-1983-637c4f22
```

Example prompt: My patient has a spot urine protein of 320 mg/dL and urine creatinine of 85 mg/dL — can you calculate their urine protein-to-creatinine ratio using the Ginsberg 1983 formula and tell me if it's in the nephrotic range?

## When to prefer this

Use this endpoint when you need a quick, evidence-based estimate of proteinuria severity from a spot urine sample without requiring a 24-hour collection. It is ideal for nephrotic range screening, CKD monitoring, and proteinuria triage. Choose this over ACR (albumin-to-creatinine ratio) endpoints when total protein (not albumin) measurements are available, and when you specifically need the Ginsberg 1983 PCR formula.

## Known failure modes

- Missing required urine_protein_mg_dl parameter returns an error
- Out-of-range urine_protein_mg_dl (outside 0.1–2000 mg/dL) may be rejected or flagged
- Out-of-range urine_creatinine_mg_dl (outside 1–500 mg/dL) may be rejected
- Neither creatinine parameter provided causes calculation failure
- Non-numeric inputs for concentration fields return validation errors
- Payment not included or insufficient (x402) results in 402 Payment Required response

## How this service works

Urine protein/creatinine ratio (mg/mg) from spot urine protein and creatinine (Ginsberg 1983). Also returns estimated_g_day equal to the rounded ratio as a numeric estimate of 24-h protein. Bands: <0.2 within normal limits, >3.5 nephrotic-range. Not ACR. Not a 24-h collection. Deterministic published formula with citation; not a diagnosis.

## Output

Returns the urine protein-to-creatinine ratio (PCR) in mg/mg, the estimated 24-hour protein excretion in g/day (rounded ratio), and a clinical band label indicating whether the result is within normal limits (<0.2), elevated, or in the nephrotic range (>3.5), along with the Ginsberg 1983 citation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "urine_protein_mg_dl"
     ],
     "properties": {
      "urine_protein_mg_dl": {
       "type": "number",
       "description": "Urine total protein in mg/dL (0.1-2000). Total protein, not albumin."
      },
      "urine_creatinine_mg_dl": {
       "type": "number",
       "description": "Urine creatinine in mg/dL (1-500). Provide this or urine_creatinine_umol_l."
      },
      "urine_creatinine_umol_l": {
       "type": "number",
       "description": "Urine creatinine in µmol/L (88-44210). Converted as mg/dL = µmol/L / 88.42."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/urine-protein-creatinine-ratio-calculator-ginsberg-1983-637c4f22/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.magentlab.com](https://www.zero.xyz/host/api.magentlab.com/llms.txt)
