Skip to content
HALOWERK

Text Tools

jats citation reference span

JATS reference span measures the distance between the first and last paragraph mentioning one work. Use it when an agent needs identifying references used throughout an article.

POST https://text.halowerk.com/v1/jats-citation-reference-span

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
xmlstringYes
ref_idstringYes
Show full input schema
{
  "type": "object",
  "properties": {
    "xml": {
      "type": "string",
      "maxLength": 16000,
      "minLength": 1
    },
    "ref_id": {
      "type": "string",
      "maxLength": 160,
      "minLength": 1
    }
  },
  "required": [
    "xml",
    "ref_id"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "xml": "<article><body><p><xref ref-type=\"bibr\" rid=\"r1\" /><xref ref-type=\"bibr\" rid=\"r3\" /></p><p><xref ref-type=\"bibr\" rid=\"r2\" /></p></body><back><ref-list><ref id=\"r1\"><element-citation publication-type=\"journal\"><year>2001</year></element-citation></ref><ref id=\"r2\"><element-citation publication-type=\"other\"><year>1987</year></element-citation></ref><ref id=\"r3\"><element-citation publication-type=\"journal\"><year>2007</year></element-citation></ref></ref-list></back></article>",
  "ref_id": "r1"
}

Result & documentation

Show published result schema
{
  "type": "object",
  "required": [
    "measured_at",
    "source",
    "data",
    "limitations"
  ],
  "properties": {
    "measured_at": {
      "type": "string"
    },
    "source": {
      "type": "object",
      "required": [
        "reference",
        "retrieved_at"
      ],
      "properties": {
        "reference": {
          "type": "string"
        },
        "retrieved_at": {
          "type": "string"
        }
      }
    },
    "data": {
      "type": "object",
      "properties": {
        "first": {
          "type": "integer"
        },
        "last": {
          "type": "integer"
        },
        "intervening_paragraphs": {
          "type": "integer"
        }
      },
      "required": [
        "first",
        "last",
        "intervening_paragraphs"
      ]
    },
    "limitations": {
      "type": "string"
    }
  }
}

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.

More endpoints in this hub

All endpoints in this hub →