API reference guide
GL1X answers several API families from one process and one cache. This page
explains them and details the scientific routes; the live list of every route
with a one-line description is on the explorer's API page
(/api-reference), in /llms-full.txt, and through the MCP tool
list_api_routes. The Blockscout-compatible routes are also described as
OpenAPI at /api/v2/openapi.
Families #
| Family | Base | For |
|---|---|---|
| Unified explorer API | /api/… | everything the interface shows: health, stats, the network card's summary, blocks, transactions (EVM, SDK, IBC), search, accounts, validators, governance, community pool, tokens and NFTs, price, site settings |
| Blockscout REST v2 | /api/v2/… | tools written for Blockscout: same paths, field names and next_page_params paging |
| Etherscan-style | /api?module=…&action=… | tools written for Etherscan, including verifysourcecode for Hardhat and Foundry |
| JSON-RPC | POST /api/eth-rpc | Ethereum JSON-RPC served from the index, so history the live node no longer has still answers |
| GenesisL1 Cosmos | /api/cosmos/…, /api/gl1/stats | validators, staking and APR, governance, community pool, accounts, transactions, IBC channels and transfers |
| Supply | /api/v1/supply, /total, /circulating | bare numbers for exchanges and listings (circulating = total bank supply − community pool) |
| Molecular search and BLAST | /api/bio/search, /api/bio/blast…, /api/bio/records/… | MolNFT records, sequence search, BLAST, proofs |
| Structure files | /api/tokens/…/instances/…/structure | a MolNFT's structure file for viewers and tools, cached once read |
| Structures | /api/bio/structure… | TM-align, structure search, motif search of the structures, a record's structure and comparisons |
| Ligands | /api/bio/ligands…, /api/bio/records/…/ligands | the ligand index: chemical components with search, a component's binding sites, a record's ligands |
| Structure analysis | /api/bio/overview, /api/bio/records/…/analysis, /api/bio/pockets, /api/bio/interfaces, /api/bio/structure/ss-pattern, /api/bio/structure/template… | the full-atom analysis: DSSP, accessibility, half-sphere exposure, contact maps, base pairs, interfaces, pockets; archive searches of pockets, interfaces, secondary-structure patterns and 3D templates |
| pH environments | /api/bio/ph/environments, /api/bio/records/…/ph | a structure at the pH of its environments: pKa values, charges, isoelectric point, stability, groups that switch charge, a membrane with a pH on each side |
| Names and identifiers | /api/bio/nomenclature | the identifiers GL1X keys things by and every lookup table it keeps, with a version |
| Proteomics | /api/bio/proteomics…, /api/bio/ptms, /api/bio/records/…/ptm | digestion and proteotypic peptides, masses, fragments and isotopes, spectrum annotation and peptide–spectrum matching with FDR, crosslinks, HDX/LiP values on structures, virtual 2D gel, modifications |
| Families and variants | /api/bio/msa…, /api/bio/variants…, /api/bio/sequence/annotation, /api/bio/cluster, /api/bio/hmm/search, /api/bio/records/…/transfer, /api/bio/records/…/sequence-annotation | alignments, conservation, trees, couplings (DCA), variants and substitution scans, sequence annotation, clustering, profile-HMM search, annotation transfer |
| Features and datasets | /api/bio/features, /api/bio/dataset | molecular features and machine-learning datasets |
| Literature | /api/bio/pubmed/… | PubMed search through NCBI's E-utilities: records with their MeSH topics, a structure's title digested into the search that finds its literature, records by PMID, the PubMed search page's pass-through |
| GL1F | /api/gl1f/… | GL1F models: list, details, on-chain inference, verification; GL1F Crypto answers and rules |
| CIPNFT | /api/cipnft… | encrypted NFTs: the contract, the tokens, a token's ciphertext and view-key wrap |
| Chess | /api/chess… | games against the on-chain network, positions, engine moves |
| Documentation | /api/docs, /api/docs/search, /docs/{slug}.md | this documentation, and search over it |
| Pages and previews | /api/meta, /og/{page}.png, /robots.txt, /sitemap.xml | what each page of the interface is, for search engines and link previews |
| Live | /api/live | a stream of new blocks for the interface (server-sent events) |
| MCP | POST /mcp | the Model Context Protocol server (MCP) |
Conventions #
- JSON answers; errors carry an HTTP status, a machine-readable
errorcode and a humanmessage({"error": "blast_rate_limited", "message": "Too many BLAST searches; retry shortly."}). - Paging: unified routes take
limitandcursorand answernext_cursor; Blockscout routes answernext_page_paramsas Blockscout does. - Caching:
Cache-Controltells how long an answer stays fresh;ETagandIf-None-Matchgive 304s;X-Cache(GL1X) andX-Edge-Cache(nginx) show where an answer came from. - Limits: each client address may make
GL1X_API_RPS(40) uncached requests a second with bursts ofGL1X_API_BURST(120); answers already in memory are not counted. Scientific routes have budgets of their own (below). Overload answers 503 withRetry-After. - Sequences never go in URLs: routes that take biological sequences take them as JSON in a POST body.
- CORS is open for GET and POST, so browser code anywhere can call the API.
Network summary #
GET /api/network/summary gives the figures of the network card at the top
of the explorer's menu, in one small answer. The newest block is read at the
moment of the request (the response cache keeps the answer one second at
most and never serves it older); the MolNFT totals are refreshed every
minute:
| Field | What it is |
|---|---|
latest_block | the highest block indexed, EVM or Cosmos: height and time |
molnft | the MolNFT index over the v1 and v2 collections: records they hold now (v1_records, v2_records), sequences and residues (nucleotides count as residues), and both by sequence type (by_type); null without a molecular index |
curl -s https://YOUR-DOMAIN/api/network/summary
Live stream #
GET /api/live is a stream of server-sent events. evm and cosmos events
carry the height each indexer has just written; a head event carries the
newest block of either kind as JSON, {"height": 13840239, "time": "2026-10-15T12:26:53.875Z", "kind": "cosmos"}. A new client gets the newest
block indexed first (kind is index while the process has had no
notification yet), then a head event each time an indexer writes newer
blocks, the moment it writes them. The network card follows these, and opens
the stream again, a little later each time, if the server answers it with an
error. time is null in the rare case the block's row could not be read
yet.
curl -sN https://YOUR-DOMAIN/api/live
Molecular search #
GET /api/bio/search?q=… (or POST with {"q": "…"}; sequences must be
POSTed): q is a PDB ID, a UniProt or other accession, an NFT id
(nft:1234), title words, a sequence (FASTA or plain, searched with BLAST) or
a motif (QEEY, motif:[QR]EEY). The query's kind is recognized from its
text; kind may force sequence or motif. Optional collection (a
contract, for motif searches), limit (1–50) and cursor.
The answer gives the classified query, the items (records with their
identifiers, title, primary sequence, and for sequence searches the matched
sequence, its chains and the alignment with E-value and bit score; for motifs
the occurrences), the total, the next cursor and the search strategy.
Budget: 2 searches, then one every 5 seconds.
GET /api/bio/records/{contract}/{tokenId}: one record with every sequence's
metadata; its path is the record's page, at the record's own address
(/molnft/100D, see MolNFT: record addresses).
GET /api/molnft/{id}: the record a page address names, in any case
(id, the address as given; contract_address, token_id; path,
token_path and record, its API); 404 molnft_not_found for none.
GET /api/molnft: every MolNFT collection, the largest first, with its
first records (limit, 1–12, 5 by default): name, version, storage, how
many records, its page and inventory, and each record's identifier, title,
page and picture (the page /molnft; see
MolNFT: collections and pictures).
GET /api/bio/records/{contract}/{tokenId}/picture, also at
/molnft/{id}/picture.jpg: a record's picture, a MolNFT v2 record's own as
saved on chain, a MolNFT v1 record's molecule drawn from its structure the
first time it is asked for and kept (JPEG, 512×512, kept a day by browsers;
404 picture_unavailable for a record with neither; 503 with Retry-After
while a large structure is read, picture_loading, while many pictures are
being made, picture_busy, and while the record's structure cannot be read,
structure_unavailable).
Answers that name MolNFT records carry molnft_paths, each record's page
address by contract:token ({"0xd58b…0102:1": "/molnft/100D"}), and an
NFT's answer (GET /api/tokens/{address}/instances/{id}) and a collection's
items carry page_path; a record's NFT answer also carries picture_path,
and a collection's items give the record's picture as their image. POST /api/bio/records/resolve with {"ids": [...]}: the records of
up to 500 identifiers (PDB IDs, UniProt accessions, molecular IDs,
contract:token) in one request, every record of each, and the identifiers
that match none (budget: 10, then one a second). GET /api/bio/status,
GET /api/bio/collections: the indexer and the collections.
GET /api/bio/proteins/{accession} (limit 1–500, 100; offset up to
20,000): a UniProt protein and every record of it — experimental entries
whose chains the structure files map to the accession (DBREF, struct_ref;
chains whose coordinates hold the part mapped to it)
and predicted models named after it, experimental first, each with the chains
that map, the ligands and pockets of those chains only (not of the other
proteins of a complex), the best druggability, the mean pLDDT of a model and
whether it is analysed; the names and EC numbers the files give; counts
(records, experimental, predicted, entries, analysed, pockets, records with a
druggable pocket, ligands); the ligands of its chains by how many records hold
them, crystallization additives left out; experimental chains compared with
predicted models (TM-score, RMSD); links to UniProt, AlphaFold DB and PDBe-KB.
404 when the archive holds no record of it. Budget: shared with a record's
analysis (60, then three a second). Its page is /bio/protein/{accession}.
curl -s 'https://YOUR-DOMAIN/api/bio/proteins/P00698?limit=20'
BLAST #
POST /api/bio/blast with query and any BLAST+ option; format json,
tsv, fasta or msa. GET /api/bio/blast: what a search accepts and the
databases; GET /api/bio/blast/db: the databases. Budget: 6 searches, then
one every 2 seconds. See BLAST.
curl -s https://YOUR-DOMAIN/api/bio/blast -H 'Content-Type: application/json' \
-d '{"query": ">q1\nMVHLTPEEKSAVTALWGKVNVDEVGGEALGRLLVVYPWTQRFF", "program": "blastp", "evalue": 0.001, "max_target_seqs": 50}'
Proofs #
GET /api/bio/records/{contract}/{tokenId}/proof?key=…&block=…: the record's
sequences (or one, key) derived again from the chain at a block (default: two
below the head) and from CID-verified IPFS, compared with the index. Budget: 3
proofs, then one every 10 seconds. See MolNFT.
Structure files #
| Route | Answer |
|---|---|
GET /api/tokens/{contract}/instances/{id}/structure | the record's structure file as stored: BinaryCIF for a MolNFT v2 record (inflated from the chain), the PDB or mmCIF file of a v1 record (from IPFS); headers X-Structure-Format, X-Structure-Binary, ETag |
GET /api/tokens/{contract}/instances/{id}/chunks/{index} | one child chunk of a multi-token v2 record, gzip as stored (X-Molnft-Child-Token-Id); cached like other answers |
A file once read is kept by the structure cache (and by nginx five minutes)
and answered from it, gzipped when the client takes gzip, 304 for a
current If-None-Match. A large
on-chain structure read for the first time may take minutes: a request waits
up to 90 seconds, then answers 503 structure_loading with Retry-After: 3
while the read goes on, and the next request gets the file (or waits for the
same read). 503 nft_content_busy means every structure reader is taken and
24 more reads wait: retry. Other errors: nft_structure_not_found (404),
nft_content_too_large and nft_chunk_limit_exceeded (413),
invalid_molnft_structure and external_structure_not_proxied (422),
invalid_token_address and invalid_token_id (400). The research routes
that read a whole structure on the server (/api/bio/records/…/ph,
POST /api/bio/proteomics/crosslinks) answer 503 structure_loading or
503 structure_busy the same way, and GET /api/bio/records/…/analysis
answers "loading": true with a note (not cached) while the file it must
analyse is still being read. See
Serving structure files.
curl -s -D - -o structure 'https://YOUR-DOMAIN/api/tokens/0xde3723766bc32dcacd03c17baa400a7b36837eba/instances/1/structure'
Structures #
| Route | Body or query | Answer |
|---|---|---|
GET /api/bio/structure | engines, the GSA alphabet, limits, the structure index and how many records were read | |
POST /api/bio/structure/align | {"a": REF, "b": REF, "mode": "default" or "fast"} | TM-scores by A, by B and by their average, RMSD, aligned length, pairs within 5 Å, identity, the alignment with GSA rows, every pair with its distance, the superposition and its Mol* matrix |
POST /api/bio/structure/search | {"query": REF, "limit": 50, "collection": "0x…", "max_evalue": 10, "min_tm": 0.5} | hits by TM-score with E-values, the work done |
GET /api/bio/structure/motif | ?motif=N-{P}-[ST]-{P}&collection=0x…&limit=50&offset=0 | every indexed chain whose residues with coordinates hold the motif (never across a chain break): counts by collection, then a page of chains, each occurrence with its positions and author residue numbers, the residues around the first, the structure file and a record link that marks the motif |
GET /api/bio/records/{contract}/{tokenId}/structure | the record's chains (sequence, author numbering, chain breaks, GSA, confidence, accessions of the parts the coordinates hold, declared_accessions, the assemblies holding the chain), its biological assemblies (null until read for them) and comparisons | |
GET /api/bio/records/{contract}/{tokenId}/structure/comparisons | the comparisons alone |
REF is {"contract": "0x…", "token_id": "…", "chain": "A"} (chain optional:
the first protein chain) or {"structure": "<PDB or mmCIF text>", "format": "", "chain": "", "name": ""}. Budget: 6 requests, then one every 2 seconds;
motif searches 20, then one a second (the pages of an answer the index keeps
cost little). See Structures.
Ligands #
| Route | Query | Answer |
|---|---|---|
GET /api/bio/ligands | q (a component id, name words or a formula), class (ligand, metal, ion, sugar, additive; repeated or comma-separated), element, min_weight, max_weight, accession (a UniProt accession: what binds that protein), collection (with accession), sort (records, weight, name, id), limit (1–200, 50), offset | the components that match, ranked (exact id, exact formula, id prefix, an exact name or synonym, word prefixes, substrings), each with its name, synonyms, formula, weight, type, class and its instances, records and PDB entries; the counts by class; how far the index has read (coverage) |
GET /api/bio/ligands/{comp} | accession, collection, limit (1–100, 25), cursor | the component; a page of its binding sites by collection and record (chain, author number, heavy atoms, occupancy, centroid, the residues within 4.5 Å with distances, the record and its structure, a link that opens the record with the ligand shown); next_cursor; its sites and records by collection, counted in full; the residues its sites are made of and the components found with it (from its first 20,000 sites and 5,000 records for the commonest components, stats_sample) |
GET /api/bio/records/{contract}/{tokenId}/ligands | the record's ligands with their components, occupancy and binding sites; source says whether they come from the index or were read from the structure file just now (none: no structure file) |
Budget: searches and binding sites 30, then one a second (most are answered
from memory); a record's ligands follow the API's general limit. A record the
index has not read yet answers 503 ligands_pending while its file is read;
ask again a few seconds later. See Ligand index.
curl -s 'https://YOUR-DOMAIN/api/bio/ligands?q=C34H32FeN4O4'
curl -s 'https://YOUR-DOMAIN/api/bio/ligands?accession=P00533&class=ligand'
curl -s 'https://YOUR-DOMAIN/api/bio/ligands/ZN?limit=25'
Structure analysis #
| Route | Query or body | Answer |
|---|---|---|
GET /api/bio/overview | what the research tools search: structures (complete, analysed, experimental, predicted, read for their assemblies, defining assemblies), protein and nucleic-acid chains and residues, pockets (druggable, holding a ligand), interfaces (and interfaces_by_assembly: same, different, unknown), ligands and components, observed modifications; counted every 10 minutes | |
GET /api/bio/records/{contract}/{tokenId}/analysis | chain, points=1 (pocket grid points), contacts=1 (with chain: the Cβ contact map) | per chain and residue: DSSP 8-state secondary structure, accessible surface and relative accessibility, φ/ψ, half-sphere exposure (HSE-β up and down), flags (ligand, pocket, interface, base pair), the dot-bracket of nucleic acids, molecule names, EC numbers, observed and declared accessions and assemblies; the biological assemblies (with assembly_note when copies come from symmetry); interfaces with buried surface, hydrogen bonds, salt bridges and residues; pockets with volume, buriedness, hydrophobicity, druggability, lining residues and the ligands inside; each interface and pocket with the assembly holding its chains and assembly_state (same, different, unknown). A structure not analysed yet is analysed on the request when a slot is free (analysed_now); otherwise note says why there is no analysis yet |
GET /api/bio/pockets | min_volume, max_volume, min_druggability, min_buriedness, min_apolar (apolar share of the lining atoms), min_hydropathy, max_hydropathy (mean Kyte–Doolittle of the lining residues), state (occupied, empty, additives, any), ligand, residue (a lining residue: CYS), accession, collection, source (experimental, predicted, any), assembly (same: one biological assembly holds the lining chains; different: none does; unknown; any), sort (druggability, volume), limit (1–200, 50), cursor | pockets, best first, each with its record, structure file, lining residues, assembly and a link to the workbench |
GET /api/bio/interfaces | kind (protein-protein, protein-nucleic, nucleic-nucleic, any), min_area, max_area, accession, collection, source, assembly (same: both chains in one biological assembly; different: in none together, in a crystal structure usually a crystal contact; unknown; any), limit (1–200, 50), cursor | interfaces, largest first, each with its assembly |
GET /api/bio/structure/ss-pattern | pattern (a regular expression over H E L, or DSSP letters with alphabet=8) or preset (beta-alpha-beta, beta-hairpin, helix-loop-helix, helix-turn-helix, beta-meander, alpha-hairpin), sequence (a motif the stretch must hold), geometry (parallel, antiparallel, none), collection, limit (1–500, 50), offset | chains holding the pattern, each match with its DSSP string, residues, author numbering, elements and strand geometry |
GET /api/bio/structure/templates | the preset 3D templates and secondary-structure patterns | |
POST /api/bio/structure/template | {"preset": …}, or {"residues": [{types, ca, sc}]}, or {"from": {contract, token_id, chain, residues: ["57", "102", "195"]}}; types, rmsd_max (1.0 Å), tolerance (twice rmsd_max, at least 1.5 Å), metal_size (3 or 4), collection, limit (1–500, 50), offset | chains with residues of those types in that arrangement, in any sequence order, best fit first (RMSD, or the radius of a putative metal site) |
Budget: pocket, interface and pattern searches 20, then one a second; a record's analysis 60, then three a second (shared with its modifications); 3D template searches share the structure tools' budget (6, then one every 2 seconds). See Structure analysis.
pH environments #
| Route | Query | Answer |
|---|---|---|
GET /api/bio/ph/environments | the named environments (id, name, group, pH, reported spread, note, source) and the model: its version, model pKa values and their sources, the burial, hydrogen-bond, dielectric and titration parameters, the membrane placement | |
GET /api/bio/records/{contract}/{tokenId}/ph | env (up to 8, comma-separated: environment ids such as stomach, small-intestine, brush-border, blood, lysosome, pH values such as 6.5, or experiment; the first is the reference; default blood and the experiment's pH), ionic_strength (mol/L, 0–2, default 0.15), membrane (off, auto, on), inside_ph (default 7.2), flip, chain, curves | the pH the structure was determined at; every ionizable group with its model pKa, estimated pKa, the shifts (desolvation, hydrogen bonds, fixed charges, coupling) and the partners behind them, its charge in each environment and, with curves, its titration curve; the net charge and isoelectric point; the stability profile and its optimum; for each environment against the reference, the groups that switch charge and the stability difference; with a membrane, its placement and each side's charge |
Budget: 20, then one a second (429 analysis_rate_limited), shared with
the pocket, interface and modification searches and annotation transfer;
two analyses run at once, and a request that waits more than 20 seconds for
a slot answers 503 ph_busy. Answers are kept 30 minutes in memory (64
structures) and may be cached by clients for 5 minutes. Errors include
structure_not_ready (409: the structure has not been read yet),
no_protein and structure_too_large (422), no_experiment_ph,
invalid_environment, too_many_environments, invalid_ionic_strength,
invalid_membrane, invalid_inside_ph (400). See
pH environments.
curl -s 'https://YOUR-DOMAIN/api/bio/ph/environments'
curl -s 'https://YOUR-DOMAIN/api/bio/records/0xde3723766bc32dcacd03c17baa400a7b36837eba/1/ph?env=blood,stomach,lysosome,experiment'
curl -s 'https://YOUR-DOMAIN/api/bio/records/{contract}/{tokenId}/ph?env=brush-border,blood&membrane=auto&inside_ph=7.2'
Names and identifiers #
| Route | Query | Answer |
|---|---|---|
GET /api/bio/nomenclature | version (changes whenever a table does), identifiers (what each kind of thing is keyed by, who assigns it, an example) and tables: the ligand-class lists, the residue names read as amino acids and nucleotides with their one-letter codes, modified residues with category and Unimod name, D-amino acids, lipids, cofactors and glycan rules of bonded groups, and the pH analysis's groups, residue names, blocked termini, metal charges, environments and membrane classes |
The answer is the same as the tables of the page Names and identifiers, from which it is generated; it needs no database and may be cached for an hour.
curl -s 'https://YOUR-DOMAIN/api/bio/nomenclature' | jq '.version, (.tables.modified_residues | length)'
Proteomics #
| Route | Query or body | Answer |
|---|---|---|
GET /api/bio/proteomics | the catalog: enzymes and their rules, modifications (Unimod), crosslinkers, PTM motifs, the archive's peptide index | |
POST /api/bio/proteomics/digest | sequence or contract, token_id, chain; enzyme, missed (0–4), min_length, max_length, min_mass, max_mass, fixed, variable (Name@Sites), max_variable, charges, clip_met, archive (true), equate_il (true), specific (true), limit | peptides with masses, m/z, flags, place, secondary structure and accessibility in the structure, and their use in the archive (unique to one protein or the proteins sharing them); coverage and counts |
GET /api/bio/proteomics/peptide | peptide (PEPM[Oxidation]K, [Acetyl]-SEQ, C[+57.02146]), fixed, charge, ions (by, cz, a…) | formula, monoisotopic and average mass, m/z at charges 1–4, fragment ions by position, isotope pattern |
GET /api/bio/proteomics/isotopes | formula, peptide or mass (averagine), charge, min_rel | the isotope pattern (masses, m/z, probabilities) |
POST /api/bio/proteomics/annotate | peptide, charge, peaks ([[m/z, intensity]]) or mgf, fragment_tol, fragment_unit, ions, fixed | the ions found with their errors, the hyperscore |
POST /api/bio/proteomics/search | mgf; database (record, sequences, archive), contract, token_id, sequences; enzyme, missed, fixed, variable, max_variable, precursor_tol, precursor_unit, fragment_tol, fragment_unit, isotope_errors, ions, fdr (0.01), all, limit | peptide–spectrum matches with hyperscores, E-values and q-values from target–decoy competition, each with its peaks and matched ions; peptides and proteins at the FDR |
POST /api/bio/proteomics/crosslinks | contract, token_id, linker (DSS, BS3, DSSO, DSBU, BS2G, EDC, SDA), max_ca, max_sasd, links or text (A 72 B 15 a line), possible, sasd | each link's Cα–Cα and solvent-accessible surface distances against the linker's limits, or every link it could make |
POST /api/bio/proteomics/map | contract, token_id, chain, text (start,end,value[,sequence] or residue,value rows) or peptides, numbering, mode (mean, max, min, shortest) | values (HDX uptake, LiP changes) per residue of the chain, coverage, rows not placed |
POST /api/bio/proteomics/gel | records ([{contract, token_id}]), sequences (FASTA), clip_met | each protein's theoretical pI, mass, GRAVY and charge at pH 7 |
GET /api/bio/records/{contract}/{tokenId}/ptm | chain, motifs, min_rsa, exclude_ss | observed modifications of the structure and motif-predicted sites with accessibility and secondary structure |
GET /api/bio/ptms | kind, category, comp, residue, accession, collection, source, limit, cursor | observed modifications across the archive |
Budget: 40, then five a second; the modification search 20, then one a
second, and a record's modifications 60, then three a second (shared with
its analysis). Work over the whole archive (the proteotypic check, searches
against the archive's peptide index, crosslink surface distances, and the
alignments, clustering and HMM searches of the family tools) runs two at a
time; up to 16 requests wait for their turn, each at most 30 seconds, and
more get 503 analysis_busy at once. See Proteomics.
Families and variants #
| Route | Body or query | Answer |
|---|---|---|
POST /api/bio/msa | homologs ({contract, token_id, chain, evalue, max, max_identity, min_coverage}; max 150, at most 499), records, sequences (FASTA); tree, distance (kimura, p, poisson), refine | the alignment (500 sequences of 3,000 residues at most), Jensen–Shannon conservation, entropy and gaps per column, weights, a neighbour-joining tree, the reference chain's residues on the columns |
POST /api/bio/msa/score | alignment (aligned FASTA, Clustal, Stockholm, A2M/A3M), format (auto, fasta, a2m, a3m, clustal, stockholm), contract, token_id, chain, reference, tree, distance | the same for an alignment made elsewhere; input says how it was read (format, rows, columns, insertion letters left out) |
POST /api/bio/msa/dca | alignment (with format) or homologs; contract, token_id, chain, reference, seqid, pseudo, max_gaps | a job (job): one runs at a time, four may be queued or running (two of one client); an alignment that cannot run is refused at once |
GET /api/bio/msa/dca/{id} | the job's status and progress; when done, the couplings (APC-corrected Frobenius norm, direct information) with their distances in the structure and the contact precision | |
POST /api/bio/variants | contract, token_id, chain, variants (A123V, p.Ala123Val, 123V), numbering, alignment (with format) or homologs, labels, model (a GL1F model number) | each variant on the structure with its surroundings, conservation, the documented mut_ features and, with a model, its prediction |
POST /api/bio/variants/scan | contract, token_id, chain, from, to, alignment (with format) or homologs, model | every substitution of the stretch: family log-odds (or BLOSUM62), and a GL1F model's predictions (ΔΔG or a probability) as a matrix |
GET /api/bio/variants/features | the mut_ features and the GL1F models that take them | |
POST /api/bio/sequence/annotation | sequence, coils_window (14, 21, 28), coils_weighted | FoldIndex disorder, COILS coiled-coil probability, Kyte–Doolittle hydropathy with candidate transmembrane helices, SEG low-complexity segments |
GET /api/bio/records/{contract}/{tokenId}/sequence-annotation | chain, coils_window, coils_weighted | the same for a record's chain, beside B-factors or pLDDT, missing residues, DSSP and accessibility, and the structure's numbering |
GET /api/bio/records/{contract}/{tokenId}/transfer | chain, limit, min_tm, collection | the chain's structural neighbours; EC numbers carried over to the depth their identity and TM-score support; the neighbours' ligand sites and pockets mapped onto the chain's residues; molecule names |
POST /api/bio/cluster | sequences (FASTA), records, threshold (0.3–1, 0.9) | clusters with representatives (CD-HIT's greedy incremental method), the representatives as FASTA |
POST /api/bio/hmm/search | hmm (HMMER3 text), evalue, max, collection | hits with sequence and domain scores corrected for composition, E-values, alignments, the filter counts |
Budget: as the proteomics routes; alignments (building and scoring them), clustering, non-redundant datasets and HMM searches share the two slots of archive-wide work (16 requests waiting at most), each within its time limit (alignments 150 s, clustering 120 s, HMM searches 5 minutes); couplings run as jobs. See Families, evolution and variants.
Features #
| Route | Answer |
|---|---|
GET /api/bio/features | the feature catalog: every set with every feature's name, unit, meaning and reference; how GL1F models take them; what datasets accept |
GET /api/bio/records/{contract}/{tokenId}/features | the features of every distinct sequence and protein chain of a record, with notes, the per-residue secondary structure and the feature sets used |
POST /api/bio/features | {"sequence": "<FASTA or plain, up to 100 records>", "sequence_type": "protein", "nucleotide" or "auto"} → one entry per sequence with its values, features by name and notes. Budget: 10, then one a second |
See Features.
Datasets #
POST /api/bio/dataset with one source (items, blast,
structure_search, search) and sets, label, include_sequence,
max_rows, non_redundant (an identity from 0.3 to 1: one row per cluster),
scale_q, name, format (json, csv, tsv, gl1f). A
search source without a limit of its own gives every hit up to max_rows.
Budget: 3 datasets, then one every 5 seconds. See Datasets.
PubMed #
| Route | Query | Answer |
|---|---|---|
GET /api/bio/pubmed/search | q (PubMed's syntax) or title (a structure's title, digested first), max (1–100, 20), start (0–9,999), sort (relevance, pub_date), mindate, maxdate (YYYY[/MM[/DD]]) | the count, PMIDs, the query searched and PubMed's reading of it, the records, the MeSH headings they share as major topics, NCBI's spelling suggestion when nothing matches, page, the search on the PubMed search page, and with title its digest |
GET /api/bio/pubmed/digest | title (up to 500 characters) | the search a structure's title becomes: its important words, then wider stages (without identifiers and mutations, structural words, the partner, the organism, all but the most telling words), each with the records PubMed finds; the first that finds 10 is chosen |
GET /api/bio/pubmed/articles | ids (up to 200 PMIDs) | the records in that order, and the PMIDs PubMed does not have |
GET, POST /api/bio/pubmed/eutils/{utility} | an E-utilities request (esearch.fcgi, efetch.fcgi, espell.fcgi, esummary.fcgi, einfo.fcgi on db=pubmed) | NCBI's answer as it is, with the server's API key and contact added; refused to other sites' pages, never cached at the edge |
NCBI's rate is shared by the whole site (3 requests a second, 9 with an API key); answers are cached in memory (searches 30 minutes, records 24 hours). Budget: 10 searches, digests or lookups, then one every 3 seconds per address; the pass-through 40 requests, then two a second. See PubMed search.
GL1F #
| Route | Answer |
|---|---|
GET /api/gl1f | the GL1F (gl1f.com) and GL1F Crypto (crypto.gl1f.com) collections: contracts and model counts |
GET /api/gl1f/{forest or crypto}/models | models, newest first (limit, before) |
GET /api/gl1f/{forest or crypto}/models/{id} | a model: task, labels, inputs, scale, pricing, owner; the market question for Crypto models |
GET /api/gl1f/{forest or crypto}/models/{id}/verify | the core rebuilt from its GL1C chunks and checked against the model id |
POST /api/gl1f/{forest or crypto}/models/{id}/predict | runs a free or tips model on GenesisL1: {"values": […]} or {"values_q": […]}, "local": true replays it locally |
GET /api/gl1f/crypto/models/{id}/ask | a Crypto model's answer for the latest completed candle (threshold, threshold_max) |
GET /api/gl1f/crypto/models/{id}/rules | the trading rules of its backtest |
See GL1F.
CIPNFT #
| Route | Answer |
|---|---|
GET /api/cipnft | the contract (name, token count, tokens on sale, mint fees, terms version) and its encryption scheme |
GET /api/cipnft/tokens | tokens, newest first (page, limit up to 48, listed=1 for those on sale): title, owner, encryption mode, listing, sizes, the first bytes of the ciphertext |
GET /api/cipnft/tokens/{id} | one token: its ciphertext (meta_cipher), view-key wrap (view_wrap, or null), DEK commitment, the associated data, and the scheme |
Content is decrypted where the view key is, never on the server. See CIPNFT.
Documentation #
GET /api/docs lists the pages (slug, title, summary, group, word count,
links); GET /api/docs/{slug} gives one page's Markdown with its sections,
neighbours and copyright holder; GET /docs/{slug}.md gives the Markdown
alone (text/markdown). GET /api/docs/search?q=… finds the sections that
contain every word of q (in their text, heading or page title), best first:
each hit has its page, section, anchor, a snippet around the match and the
section's address (limit, 20, at most 50). The search box of the
documentation page uses it, and agents reach it through api_request or read
the pages as MCP resources.
curl -s 'https://YOUR-DOMAIN/api/docs/search?q=GL1F+quantization&limit=5'
curl -s https://YOUR-DOMAIN/docs/features.md
Pages, previews and sitemaps #
Every address of the interface is answered with its own title, description, canonical address, robots directive, Open Graph and X (Twitter) tags, schema.org structured data and an HTML rendering of the page for readers that run no script. Pages that show a record are completed from the index:
- a block names its height, time, proposer and transactions;
- a MolNFT record its PDB ID or accession, title, type, length and chains and,
once its structure is analysed, the analysis in brief: method, resolution
and source; each chain with its molecule, UniProt accession, EC numbers,
length and secondary structure (identical chains once, with their copies);
the ligands, crystallization additives apart; the pockets with volume,
buriedness and druggability; the interfaces with buried surface; the
observed modifications; the structures it was compared with (TM-score);
links to the workbench, the protein pages and the PDB, UniProt and AlphaFold
entries. Its
Datasetnode links the PDB and UniProt entries, says what was measured (variableMeasured) and names theProteinentities it shows; - a protein (
/bio/protein/{accession}) its name, EC numbers and how many experimental entries and predicted models of it the archive holds, its ligands and pockets, as aProteinwith theItemListof its structures; its preview image draws its first structure; - a ligand its component's name, formula and weight, its binding sites with
their residues and the components found with it, as a
MolecularEntity; - a research tool what it does and how, with a link to its documentation, as
a
WebApplication; - a documentation page is a
TechArticlewhose whole text is in the HTML, with when it appeared and when its text last changed (datePublished,dateModified,article:modified_time; kept indocs/dates.goand written bygo run ./internal/docdateswhen a page changes, version numbers aside); the papers areScholarlyArticles with their abstract and carry Google Scholar's citation tags (citation_title,citation_authorwithcitation_author_institution,citation_publication_date,citation_technical_report_institution,citation_abstract_html_url, andcitation_fulltext_html_urlfor the papers whose full text is the page). A paper published elsewhere as a PDF (GL1F, the chess network, CIPNFT) has an abstract page: its PDF is named in the structured data (encoding,sameAs), not ascitation_pdf_url, which Google Scholar reads only from the abstract's own directory; - a page that lists records — the overview, validators, governance, tokens, Bioinformatics onchain and its molecular search, ligands, GL1F models, CIPNFT — carries them as links in its HTML (validators, proposals, the tokens most held, the records changed last, the ligands in the most structures, every model and token), and an NFT collection its latest items, so a crawler that runs no script reaches them from the page that lists them.
Every page has breadcrumbs (BreadcrumbList). An address that is no page of
the interface, or a record that does not exist (an NFT id its collection
never had included), is answered with status 404 (the interface still runs
and says so). A request waits up to 2.5 seconds for its record; a reading
that takes longer goes on (up to 20 seconds) for the next request, and
meanwhile a page read before is served as it was, while one never read is
answered with 503 and Retry-After: 30, noindex and kept by no cache, so
crawlers come back rather than index a page that says nothing of the record
(a reading that fails keeps the last good page 30 seconds, or answers 503
for 15). Another spelling of a page's address — a trailing slash, a
lower-case or genesis1… address, an EVM hash written without 0x or a
Cosmos hash with it, a number with leading zeros, a block named by its hash,
a proposal of the current chain named with its chain (genesis_29-2:110 for
/proposal/110), a validator named by its EVM form (a block's miner, 0x…),
a MolNFT record's token page (/token/0x…/instance/1 for /molnft/100D)
or its address in another case (/molnft/100d)
— is answered with 301 to the page's own address, query kept; the links of
the pages and of the API's answers (url, path, links.record,
page_path, molnft_paths) use the pages' own addresses. Empty blocks are noindex,follow. Images (the logo, the icons,
the preview cards, the MolNFT records' pictures) carry no noindex, /favicon.ico is the icon itself, and
the shell links PNG icons of 48, 96 and 192 pixels.
GET /api/meta?path=/tx/0x… gives what a page carries, for the interface
when it moves to another page without loading one:
| Field | What it is |
|---|---|
title, description | the page's title and description |
canonical | its canonical address (accounts and contracts in their EIP-55 form) |
robots | index,follow,…, or noindex,follow for settings, records that do not exist, records that cannot be read just now, empty blocks and accounts never used |
image, image_alt | the preview image and its description |
type | website or article |
status | 200, 404, or 503 while the record cannot be read |
name, kicker, facts | the page's heading, what kind of page it is, and the facts it states |
json_ld | the structured data |
GET /og/{page}.png is a page's preview image (1200×630, the size link
previews use): /og/index.png for the overview, /og/blocks.png,
/og/molnft/100D.png for a MolNFT record, /og/token/0x…/instance/7.png
for another NFT. Every page of the explorer has an illustration of its
own — the overview its ledger, on-chain AI and bioinformatics lab;
Bioinformatics onchain a structure open in its viewer; the research
workbench a structure painted by its secondary structure with a pocket in
it; each tool what it does (a pocket in its protein, two chains and their
interface, a β-α-β unit and its pattern, a 3D template magnified, a chain's
modifications, a tryptic digest, an isotope pattern, a 2D gel, a profile
HMM and its logo, a contact map, clusters, annotation tracks, MolNFT's
collections, PubMed's topics) — and pages of records draw the record: a MolNFT
record's molecule (its chains as tubes, coloured from the first residue to
the last, or by chain), its title, PDB ID or accession and "MolNFT v1/v2 ·
#id"; a sequence when the record has no structure; an account's identicon; a
proposal's tally; a validator's uptime. The molecule comes from the
structure index, or, for a record the index has not read yet, from the
record's own structure file (the PDB file a MolNFT v1 record links on IPFS,
the BinaryCIF a MolNFT v2 record keeps on chain), read when the page or its
image is first asked for and kept; a record waiting for its first reading
also goes ahead of every other record waiting for its first reading in the
structure queue (a structure that failed keeps its wait). That holds for a structure still in the queue, for one tried
again soon after a passing failure, for one whose contract call failed
before 3.4.0 and has not ended so since (not for a file that is not a
structure GL1X reads, too large or not valid data, nor for one whose
contract did not answer 3.4.0), and, where the molecular indexer runs, for
a record of a MolNFT collection it has not reached yet (a new one), read
from its contract; the research workbench page of a record (/bio/workbench/…)
draws the same molecule. Images are drawn on the server in Go, kept in memory, and cached a
day by browsers and the nginx edge (an hour for records, five minutes for
pages that do not exist, two minutes for a record whose structure file is
still being read, so it is drawn again with its molecule). The v parameter
changes when the cards are drawn differently.
/robots.txt lets crawlers read the pages and the API answers they are
drawn from (search engines that run the interface need them; API answers
carry X-Robots-Tag: noindex), and keeps them out of the admin, the socket,
the MCP endpoint and the compatibility APIs, and out of searches and tool
runs: the query variants of the Bioinformatics onchain pages (/bio/*?: a
record's page links searches that run as they open, the workbench's tools,
PubMed searches) and of the transaction list. Every page's own address has
no query, and links to searches and to the workbench are rel="nofollow".
It names the sitemap index and the feed. /sitemap.xml is an index of:
| Sitemap | Lists |
|---|---|
/sitemap-pages.xml | the explorer's sections, every research tool of Bioinformatics onchain and every documentation page (dated by its text) |
/sitemap-dapps.xml | the dapps, every GL1F and GL1F Crypto model (dated by its mint) and every CIPNFT token (by its last transfer); the dapp pages alone while the node cannot list the models |
/sitemap-network.xml | validators and governance proposals (dated by their last change in substance: a validator's description, status or commission, a proposal's status, text, deposits or final tally, not every sync) and the thousand largest accounts |
/sitemap-tokens.xml | tokens and NFT collections, most held first |
/sitemap-ligands.xml | the page of every ligand component found in the structures, those in the most records first |
/sitemap-proteins-1.xml, -2, … | the page of every UniProt protein of the archive, 40,000 to a file, with when its records last changed |
/sitemap-molnft-1.xml, -2, … | every MolNFT record at its own address (/molnft/100D), 40,000 to a file, with the time its page last changed or its address came, its picture (/molnft/100D/picture.jpg) and its preview image |
Entries carry lastmod where the index knows when a page changed in
substance, and none where it does not (the explorer's own pages change all
the time); there is no changefreq or priority, which Google ignores.
Every sitemap of the index is dated: by its latest page, or by when its list
of pages last changed. Sitemaps carry an ETag and answer 304 to a crawler
that has them. Records, proteins and ligands list their preview image with
the image sitemap extension (image:image), a MolNFT record its picture
first, so image search finds the molecules.
/feed.atom is an Atom 1.0 feed of the pages new or changed lately, newest
first, up to 1,000: MolNFT records read or whose structure was read and
analysed, ligands, proteins, governance proposals and validators that
changed, GL1F models, CIPNFT tokens and documentation pages. robots.txt
lists it as a sitemap and every page's head links it. It names a WebSub hub
(GL1X_WEBSUB, Google's hub by default), which the indexing process tells
when the feed has new pages, at most every ten minutes: Google takes no part
in IndexNow, and this is how it hears of new pages before it next reads the
sitemaps. Web processes rebuild the feed at most every five minutes (no edge
keeps it), and the hub is told only of changes older than six minutes, which
the feed it then reads holds; as with IndexNow, nothing is told until the
site answers at GL1X_PUBLIC_URL with this install's key.
Search engines' verification codes (Google Search Console, Bing Webmaster
Tools, Yandex Webmaster, Baidu) are set on the admin's Site tab; every page
then carries them as <meta> tags. With IndexNow (GL1X_INDEXNOW, on by
default when GL1X_PUBLIC_URL is a public https address) the indexing
process sends the addresses of new and changed pages to
api.indexnow.org, which shares them with Bing, Yandex, Naver, Seznam, Yep
and Amazon: every page of the explorer and the documentation on the first
run, then the documentation pages whose text changed, MolNFT records indexed
or changed with the pages of their proteins, new ligand components,
validators and proposals that changed in substance, new GL1F models and
CIPNFT tokens, and once the whole archive (once more when the records got
their own addresses, in 3.5.0: the records at them), at most GL1X_INDEXNOW_DAILY
addresses a day (10,000) with a tenth of each day kept for changes; an
unchanged page is not sent again. A record changes when
its reading changes something or its structure is read or analysed. The key
is made on the first run, kept in the database and served by every web
process at /{key}.txt; nothing is sent until the site answers at
GL1X_PUBLIC_URL with that key (checked again every six hours), so an
install whose public address is not its own never submits in another site's
name. The admin page shows what was sent and the last refusal. Google does
not take part in IndexNow; it reads the sitemaps and the feed.
curl -s 'https://YOUR-DOMAIN/api/meta?path=/block/1000000'
curl -sI https://YOUR-DOMAIN/og/index.png
curl -s https://YOUR-DOMAIN/sitemap.xml
curl -s https://YOUR-DOMAIN/sitemap-proteins-1.xml | head
curl -s https://YOUR-DOMAIN/sitemap-molnft-1.xml | head
curl -sI https://YOUR-DOMAIN/token/0xd58B01f6C18086e5202cdC5D7Ad3E41790360102/instance/1 # 301 to /molnft/100D
curl -s https://YOUR-DOMAIN/feed.atom | head