v1.0.0Site Edition v2.1.2API Contract lts-read-operations/3Snapshot SHA-256 a97585a61f00…000 Developers
Quick start
The same first call in five forms. Each is a file you can download and run unchanged. Then pin a release so that your results do not move, and cite what you used.
001 First call
Search the collection
Every file sends GET /api/v1/search?q=pattanam&limit=2 and prints the result. Set LTS_BASE_URL to send it to another host.
http_first_call.sh#!/bin/sh
# First call: search the collection for "pattanam" and print the JSON response.
# Needs curl 7.76 or later. Set LTS_BASE_URL to call another host.
curl --fail-with-body --silent --show-error \
--header "Accept: application/json" \
"${LTS_BASE_URL:-https://layersofthesouth.org}/api/v1/search?q=pattanam&limit=2"Run it with sh http_first_call.sh
What it printed
It printed 4,079 bytes: the response body, as one line of JSON.
Recorded from snapshot 75c7be2c4999, an earlier release. This release answers with its own snapshot id.
http_first_call.py"""First call: search the collection for "pattanam" and print the two best matches.
Standard library only, Python 3.9 or later. Set LTS_BASE_URL to call another host.
"""
import json
import os
import urllib.request
BASE = os.environ.get("LTS_BASE_URL", "https://layersofthesouth.org")
request = urllib.request.Request(
f"{BASE}/api/v1/search?q=pattanam&limit=2",
headers={"Accept": "application/json"},
)
with urllib.request.urlopen(request, timeout=15) as response:
result = json.load(response)
print(f"{result['data']['totalMatches']} matches in snapshot {result['snapshotId']}")
for study in result["data"]["results"]:
print(f"{study['id']}\t{study['title']}\t{study['url']}")Run it with python http_first_call.py
What it printed
49 matches in snapshot 75c7be2c4999c878612e12c58b2d2f4160c7d6a5228ed1b8a069b4fd97c31683
LTS-SUP13 Pattanam finds: wide trade links, unevenly dated and sourced https://layersofthesouth.org/read/f88a9d1c4f
R002 Pattanam is a candidate for ancient Muziris https://layersofthesouth.org/read/0ae5aae357Recorded from snapshot 75c7be2c4999, an earlier release. This release answers with its own snapshot id.
http_first_call.mjs// First call: search the collection for "pattanam" and print the two best matches.
// Node 18 or later, or a browser. Set LTS_BASE_URL to call another host.
export async function firstCall(base = "https://layersofthesouth.org") {
const response = await fetch(`${base}/api/v1/search?q=pattanam&limit=2`, {
headers: { Accept: "application/json" },
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
const result = await response.json();
const lines = [`${result.data.totalMatches} matches in snapshot ${result.snapshotId}`];
for (const study of result.data.results) lines.push(`${study.id}\t${study.title}\t${study.url}`);
return lines;
}
// Run directly with `node http_first_call.mjs`; a page that imports the file calls firstCall itself.
if (globalThis.process?.argv?.[1]?.endsWith("http_first_call.mjs")) {
for (const line of await firstCall(process.env.LTS_BASE_URL || undefined)) console.log(line);
}Run it with node http_first_call.mjs
What it printed
49 matches in snapshot 75c7be2c4999c878612e12c58b2d2f4160c7d6a5228ed1b8a069b4fd97c31683
LTS-SUP13 Pattanam finds: wide trade links, unevenly dated and sourced https://layersofthesouth.org/read/f88a9d1c4f
R002 Pattanam is a candidate for ancient Muziris https://layersofthesouth.org/read/0ae5aae357Recorded from snapshot 75c7be2c4999, an earlier release. This release answers with its own snapshot id.
http_first_call.ps1# First call: search the collection for "pattanam" and print the two best matches.
# PowerShell 7, or Windows PowerShell 5.1. Set LTS_BASE_URL to call another host.
$ErrorActionPreference = "Stop"
$Base = if ($env:LTS_BASE_URL) { $env:LTS_BASE_URL } else { "https://layersofthesouth.org" }
$Result = Invoke-RestMethod -Uri "$Base/api/v1/search?q=pattanam&limit=2" -Headers @{ Accept = "application/json" }
"$($Result.data.totalMatches) matches in snapshot $($Result.snapshotId)"
foreach ($Study in $Result.data.results) {
"$($Study.id)`t$($Study.title)`t$($Study.url)"
}Run it with pwsh -File http_first_call.ps1
What it printed
49 matches in snapshot 75c7be2c4999c878612e12c58b2d2f4160c7d6a5228ed1b8a069b4fd97c31683
LTS-SUP13 Pattanam finds: wide trade links, unevenly dated and sourced https://layersofthesouth.org/read/f88a9d1c4f
R002 Pattanam is a candidate for ancient Muziris https://layersofthesouth.org/read/0ae5aae357Recorded from snapshot 75c7be2c4999, an earlier release. This release answers with its own snapshot id.
mcp_call.sh#!/bin/sh
# From an agent: call the MCP tool search_studies over Streamable HTTP (revision 2026-07-28).
# The body is mcp_call.json; run from the folder that holds it. Set LTS_BASE_URL to call another host.
curl --fail-with-body --silent --show-error \
--header "Content-Type: application/json" \
--header "Accept: application/json, text/event-stream" \
--header "MCP-Protocol-Version: 2026-07-28" \
--header "Mcp-Method: tools/call" \
--header "Mcp-Name: search_studies" \
--data @mcp_call.json \
"${LTS_BASE_URL:-https://layersofthesouth.org}/api/mcp"The MCP tool search_studies with the same arguments. The body is the file mcp_call.json.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientInfo": { "name": "example-client", "version": "1.0.0" },
"io.modelcontextprotocol/clientCapabilities": {}
},
"name": "search_studies",
"arguments": { "query": "pattanam", "limit": 2 }
}
}Run it with sh mcp_call.sh
What it printed
It printed 7,503 bytes: the response body, as one line of JSON.
Recorded from snapshot 75c7be2c4999, an earlier release. This release answers with its own snapshot id.
Request
GET https://layersofthesouth.org/api/v1/search?q=pattanam&limit=2
Accept: application/jsonResponse
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Cache-Control: public, max-age=300
ETag: "bcf04c50179168058295b615bca624d0638c1a7a1d871409d7597c11d8aff484"
Vary: X-LTS-Snapshot
Access-Control-Allow-Origin: *
Link: </.well-known/api-catalog>; rel="api-catalog", </api/v1/openapi.json>; rel="service-desc", </developers/reference>; rel="service-doc", </api/v1/status>; rel="status", </api/v1/search?q=pattanam&limit=2>; rel="first", </api/v1/search?q=pattanam&limit=2&cursor=eyJmaWx0ZXJIYXNoIjoiYWViOTc4MWMwZThkZmJlZDUxNDRmZGEyIiwibGFzdElkIjoiUjAwMiIsIm9mZnNldCI6Miwic25hcHNob3RJZCI6Ijg3MDRiYmI0YTU0ZThhZGFlZGM4MWQ5NjdkOWE5ZDBjYjA4OTdlNmYwMDg0ZGQzOTc4NDI1ZDVjZTRkNGFiNzEiLCJ2IjoibHRzLWN1cnNvci8xIn0>; rel="next", </schemas/developers/search-results/1.json>; rel="describedby"; type="application/schema+json", <https://creativecommons.org/licenses/by-sa/4.0/>; rel="license"
RateLimit-Policy: "instance-read";q=600;w=30
X-LTS-Snapshot: 8704bbb4a54e8adaedc81d967d9a9d0cb0897e6f0084dd3978425d5ce4d4ab71{
"schemaVersion": "public-domain-result/1",
"kind": "search_results",
"view": "compact",
"snapshotId": "8704bbb4a54e8adaedc81d967d9a9d0cb0897e6f0084dd3978425d5ce4d4ab71",
"release": {
"snapshotId": "8704bbb4a54e8adaedc81d967d9a9d0cb0897e6f0084dd3978425d5ce4d4ab71",
"href": "https://layersofthesouth.org/api/v1/releases/8704bbb4a54e8adaedc81d967d9a9d0cb0897e6f0084dd3978425d5ce4d4ab71"
},
"canonicalObjectSha256": "e34c299a4cfb5ecc67c34cedd9c7c05a717c6819230a9d4aa99194079dad2833",
"objectCanonicalization": "rfc8785-jcs-sha256/1",
"attribution": {
"credit": "Layers of the South",
"licence": "CC-BY-SA-4.0",
"licenceUrl": "https://creativecommons.org/licenses/by-sa/4.0/",
"citeAs": "https://layersofthesouth.org",
"snapshotId": "8704bbb4a54e8adaedc81d967d9a9d0cb0897e6f0084dd3978425d5ce4d4ab71",
"scope": "project-authored text and metadata; quotations and third-party media keep their own terms"
},
"links": {
"self": "https://layersofthesouth.org/api/v1/search",
"schema": "https://layersofthesouth.org/schemas/developers/search-results/1.json",
"first": "https://layersofthesouth.org/api/v1/search?q=pattanam&limit=2",
"next": "https://layersofthesouth.org/api/v1/search?q=pattanam&limit=2&cursor=eyJmaWx0ZXJIYXNoIjoiYWViOTc4MWMwZThkZmJlZDUxNDRmZGEyIiwibGFzdElkIjoiUjAwMiIsIm9mZnNldCI6Miwic25hcHNob3RJZCI6Ijg3MDRiYmI0YTU0ZThhZGFlZGM4MWQ5NjdkOWE5ZDBjYjA4OTdlNmYwMDg0ZGQzOTc4NDI1ZDVjZTRkNGFiNzEiLCJ2IjoibHRzLWN1cnNvci8xIn0"
},
"reviewStatus": {
"editorialStatus": "ai_assisted_editorial_draft",
"independentSpecialistReview": "none",
"malayalamNativeSpeakerReview": "none"
},
"publicationApproved": false,
"data": {
"query": "pattanam",
"filters": {
"q": "pattanam"
},
"retrievalStatus": "matches_found",
"rankingMethod": "lts-lexical-metadata/3",
"coverage": {
"scope": "selected_snapshot_metadata",
"studyCount": 199,
"fieldsSearched": [
"id",
"routeSlug",
"title",
"oneLine",
"inBrief",
"howSure.finding",
"regions"
],
"fullTextSearched": false,
"statementsAvailable": true
},
"retrievalLimitations": "Matches identify relevant records; lexical scores do not establish support for a proposition. Full study text is not searched. No match is not evidence that a historical claim is false.",
"totalMatches": 49,
"limit": 2,
"offset": 0,
"nextCursor": "eyJmaWx0ZXJIYXNoIjoiYWViOTc4MWMwZThkZmJlZDUxNDRmZGEyIiwibGFzdElkIjoiUjAwMiIsIm9mZnNldCI6Miwic25hcHNob3RJZCI6Ijg3MDRiYmI0YTU0ZThhZGFlZGM4MWQ5NjdkOWE5ZDBjYjA4OTdlNmYwMDg0ZGQzOTc4NDI1ZDVjZTRkNGFiNzEiLCJ2IjoibHRzLWN1cnNvci8xIn0",
"cursorVersion": "lts-cursor/1",
"results": [
{
"id": "LTS-SUP13",
"title": "Pattanam finds: wide trade links, unevenly dated and sourced",
"oneLine": "Pattanam's pottery, beads and other finds show regional and overseas trade, but each type has a different strength of date and source.",
"section": "connections",
"howSureCounts": {
"established": 1,
"likely": 1,
"possible": 1,
"not_known": 1
},
"url": "https://layersofthesouth.org/read/f88a9d1c4f",
"markdownUrl": "https://layersofthesouth.org/read/f88a9d1c4f/index.md",
"relevanceScore": 57,
"matchedTerms": [
"pattanam"
],
"matchedFields": [
"title",
"oneLine",
"inBrief",
"howSure"
],
"matchedStatements": [
{
"level": "established",
"label": "Well supported",
"finding": "Imported Mediterranean pottery reached Pattanam around the turn of the era."
},
{
"level": "likely",
"label": "Likely",
"finding": "Stone beads were made at Pattanam."
}
]
},
{
"id": "R002",
"title": "Pattanam is a candidate for ancient Muziris",
"oneLine": "Pattanam has excavated evidence of long-distance exchange; its identification with Muziris and the exact ancient harbour remain uncertain.",
"section": "connections",
"howSureCounts": {
"established": 1,
"likely": 1,
"possible": 1,
"not_known": 1
},
"url": "https://layersofthesouth.org/read/0ae5aae357",
"markdownUrl": "https://layersofthesouth.org/read/0ae5aae357/index.md",
"relevanceScore": 57,
"matchedTerms": [
"pattanam"
],
"matchedFields": [
"title",
"oneLine",
"inBrief",
"howSure"
],
"matchedStatements": [
{
"level": "established",
"label": "Well supported",
"finding": "The ceramic report describes Pattanam as an Early Historic settlement with long-distance connections."
},
{
"level": "likely",
"label": "Likely",
"finding": "Pattanam was part of the wider Muziris port landscape on the lower Periyar."
}
]
}
]
}
}Recorded from snapshot 8704bbb4a54e, an earlier release. This release answers with its own snapshot id.
002 Pin a release
Keep one walk on one snapshot
A snapshot id names one release of the collection. Ask for the current one, then send it with every request of the same task.
Request
GET https://layersofthesouth.org/api/v1/releases/current
Accept: application/jsonResponse
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Cache-Control: public, max-age=300
ETag: "d1fc05c8ca23d7427b49df2a607c2c6f147c916a689551a82d107741ba2e8da9"
Vary: X-LTS-Snapshot
Access-Control-Allow-Origin: *
Link: </.well-known/api-catalog>; rel="api-catalog", </api/v1/openapi.json>; rel="service-desc", </developers/reference>; rel="service-doc", </api/v1/status>; rel="status", </schemas/developers/developer-release/1.json>; rel="describedby"; type="application/schema+json", <https://creativecommons.org/licenses/by-sa/4.0/>; rel="license"
RateLimit-Policy: "instance-read";q=600;w=30
X-LTS-Snapshot: 8704bbb4a54e8adaedc81d967d9a9d0cb0897e6f0084dd3978425d5ce4d4ab71{
"schemaVersion": "developer-release/1",
"packageVersion": "2.0.0",
"snapshotId": "8704bbb4a54e8adaedc81d967d9a9d0cb0897e6f0084dd3978425d5ce4d4ab71",
"contentBundleSha256": "f7ccb22195982831261a24a3cf3fbacfd55d13515ddab24b3d0107db9192bbcb",
"sourceCommit": null,
"sourceTreeState": null,
"provenanceUnavailableReason": "The original release's source commit was not recorded. The original release's working-tree state was not recorded. The original release's build time was not recorded.",
"provenanceEvidence": {
"fileSha256": "65c0d942fd12feb13ae0ff560c7b901299368e6ed12596b6f744abab9c0ab4cb",
"snapshotId": "8704bbb4a54e8adaedc81d967d9a9d0cb0897e6f0084dd3978425d5ce4d4ab71",
"source": "release.json"
},
"inheritedProvenance": null,
"generatedAt": null,
"publicationState": "local_review_only",
"publicationApproved": false,
"accessMode": "public_anonymous",
"status": "current",
"studyCount": 199,
"routeCount": 7125,
"reviewSummary": {
"editorialStatus": "ai_assisted_editorial_draft",
"independentSpecialistReview": "none",
"malayalamNativeSpeakerReview": "none",
"publicationApproved": false
},
"rightsSummary": {
"defaultCorpusLicense": "CC BY-SA 4.0",
"codeAndExamplesLicense": "MIT",
"thirdPartyMediaPolicy": "Per-asset rights preserved at /media/rights/; excluded from default packages."
},
"digestSchemes": {
"fileSha256": "lts-raw-file/1",
"bodySha256": "lts-markdown-body/2",
"canonicalObjectSha256": "rfc8785-jcs-sha256/1"
},
"protocolVersions": {
"httpApi": "v1",
"openapiPrimary": "3.2.1",
"openapiCompatibility": "3.1.2",
"arazzoWorkflow": "1.1.0",
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"mcpSupported": [
"2026-07-28",
"2025-11-25",
"2025-06-18"
],
"mcpAppsExtension": "2026-01-26",
"a2aRelease": "v1.0.1",
"a2aWireVersion": "1.0",
"roCrateProfile": "https://w3id.org/ro/crate/1.3",
"dcatVersion": "3.0",
"jsonFeedVersion": "https://jsonfeed.org/version/1.1"
}
}Recorded from snapshot 8704bbb4a54e, an earlier release. This release answers with its own snapshot id.
Send it as the query parameter snapshot=<id> or the header X-LTS-Snapshot: <id>. A response pinned in the address is cached for 31,536,000 seconds and marked immutable.
Older snapshots stay readable while the service keeps them. The list is at /api/v1/releases. The site does not promise to serve a snapshot for ever.
003 Cite
Cite what you used
Ask for the citation record of a study. It gives the address to cite and the snapshot id, says that the study is an AI-assisted draft, and takes format=csl-json, bibtex or ris.
Request
GET https://layersofthesouth.org/api/v1/studies/R013/citations?include_sources=false
Accept: application/jsonResponse
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Cache-Control: public, max-age=300
ETag: "5ffcfc42ad50b6115178bde7dc901166c507cb3192b8713f193d46245b06bd04"
Vary: X-LTS-Snapshot
Access-Control-Allow-Origin: *
Link: </.well-known/api-catalog>; rel="api-catalog", </api/v1/openapi.json>; rel="service-desc", </developers/reference>; rel="service-doc", </api/v1/status>; rel="status", </schemas/developers/public-domain-result/1.json>; rel="describedby"; type="application/schema+json", <https://creativecommons.org/publicdomain/zero/1.0/>; rel="license"
RateLimit-Policy: "instance-read";q=600;w=30
X-LTS-Snapshot: 8704bbb4a54e8adaedc81d967d9a9d0cb0897e6f0084dd3978425d5ce4d4ab71{
"schemaVersion": "public-domain-result/1",
"kind": "study_citations",
"view": "compact",
"snapshotId": "8704bbb4a54e8adaedc81d967d9a9d0cb0897e6f0084dd3978425d5ce4d4ab71",
"release": {
"snapshotId": "8704bbb4a54e8adaedc81d967d9a9d0cb0897e6f0084dd3978425d5ce4d4ab71",
"href": "https://layersofthesouth.org/api/v1/releases/8704bbb4a54e8adaedc81d967d9a9d0cb0897e6f0084dd3978425d5ce4d4ab71"
},
"canonicalObjectSha256": "65ade24d268f383f75b419e7aac05cc2b621285490d6fdbf369e0ca2ba40df93",
"objectCanonicalization": "rfc8785-jcs-sha256/1",
"attribution": {
"credit": "Layers of the South",
"licence": "CC0-1.0",
"licenceUrl": "https://creativecommons.org/publicdomain/zero/1.0/",
"citeAs": "https://layersofthesouth.org/read/719a4ebbb6",
"snapshotId": "8704bbb4a54e8adaedc81d967d9a9d0cb0897e6f0084dd3978425d5ce4d4ab71",
"scope": "factual bibliographic citation records; the cited works retain their authors' and publishers' copyright"
},
"links": {
"self": "https://layersofthesouth.org/api/v1/studies/R013/citations",
"study": "https://layersofthesouth.org/api/v1/studies/R013",
"html": "https://layersofthesouth.org/read/719a4ebbb6",
"schema": "https://layersofthesouth.org/schemas/developers/public-domain-result/1.json"
},
"reviewStatus": {
"editorialStatus": "ai_assisted_editorial_draft",
"independentSpecialistReview": "none",
"malayalamNativeSpeakerReview": "none"
},
"publicationApproved": false,
"data": {
"studyId": "R013",
"format": "csl-json",
"count": 1,
"includeSources": false,
"citeAs": "https://layersofthesouth.org/read/719a4ebbb6",
"mediaType": "application/vnd.citationstyles.csl+json; charset=utf-8",
"cslJson": [
{
"id": "lts-R013",
"type": "report",
"title": "Pattanam's radiocarbon dates give no single date for its wharf",
"author": [
{
"literal": "Layers of the South"
}
],
"issued": {
"date-parts": [
[
2026
]
]
},
"publisher": "Layers of the South",
"collection-title": "landscapes",
"number": "R013",
"URL": "https://layersofthesouth.org/read/719a4ebbb6",
"abstract": "Five early radiocarbon samples from Pattanam date pieces of charcoal and wood, not the building of its waterfront, and their ranges are very broad.",
"keyword": "",
"note": "Snapshot 8704bbb4a54e8adaedc81d967d9a9d0cb0897e6f0084dd3978425d5ce4d4ab71. AI-assisted editorial draft; not reviewed by a specialist. Evidence sources: 14. Add the date you accessed it.",
"version": "8704bbb4a54e8adaedc81d967d9a9d0cb0897e6f0084dd3978425d5ce4d4ab71",
"edition": "6"
}
]
}
}Recorded from snapshot 8704bbb4a54e, an earlier release. This release answers with its own snapshot id.
Citation records are dedicated to the public domain under CC0 1.0. The cited books, papers and reports keep their own copyright.
This page as Markdown · All developer pages in one Markdown file