Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Disambiguate author identities via the VIAF authority file API
.claude/skills/brycewang-stanford-viaf-authority-api/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -42% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 33% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 58% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 38% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 40% | 0% |
VIAF clusters authority records from 50+ national libraries worldwide, linking different forms of an author's name into a single canonical identity. It covers 50M+ personal, corporate, and geographic name entries. Essential for author disambiguation in bibliometric research — resolving "J. Smith", "John Smith", and "Smith, J.A." to the same person. Free, no authentication.
https://viaf.orgbash# Search by name (AutoSuggest) curl "https://viaf.org/viaf/AutoSuggest?query=einstein+albert" # Search via SRU (structured query) curl "https://viaf.org/viaf/search?query=local.personalNames+all+\"hinton+geoffrey\"&\ sortKeys=holdingscount&httpAccept=application/json" # Search corporate names curl "https://viaf.org/viaf/search?query=local.corporateNames+all+\"MIT\"&\ httpAccept=application/json"
bash# JSON format curl "https://viaf.org/viaf/75121530/viaf.json" # Linked data formats curl -H "Accept: application/json" "https://viaf.org/viaf/75121530" # Cluster data (all linked identities) curl "https://viaf.org/viaf/75121530/justlinks.json"
bash# Look up by Library of Congress ID curl "https://viaf.org/viaf/lccn/n79021164/viaf.json" # Look up by ISNI curl "https://viaf.org/viaf/isni/0000000121174331/viaf.json" # Look up by ORCID curl "https://viaf.org/viaf/sourceID/ORCID|0000-0002-1825-0097/viaf.json" # Look up by Wikidata QID curl "https://viaf.org/viaf/sourceID/WKP|Q937/viaf.json"
| Code | Library/Source | |------|---------------| | LC | Library of Congress | | DNB | German National Library | | BNF | Bibliothèque nationale de France | | NLA | National Library of Australia | | NDL | National Diet Library (Japan) | | NKC | National Library of Czech Republic | | WKP | Wikidata | | ISNI | ISNI |
json{ "viafID": "75121530", "nameType": "Personal", "mainHeadings": { "data": [ { "text": "Einstein, Albert, 1879-1955", "sources": {"s": ["LC", "DNB", "BNF"]} } ] }, "x400s": { "x400": [ {"datafield": {"subfield": [{"text": "Albert Einstein"}]}} ] }, "birthDate": "1879", "deathDate": "1955", "sources": { "source": [ {"nsid": "n79022889", "sid": "LC|n79022889"}, {"nsid": "118529579", "sid": "DNB|118529579"} ] } }
pythonimport requests BASE_URL = "https://viaf.org/viaf" def search_person(name: str, limit: int = 10) -> list: """Search VIAF for personal name authorities.""" resp = requests.get( f"{BASE_URL}/AutoSuggest", params={"query": name}, ) resp.raise_for_status() data = resp.json() results = [] for item in data.get("result", [])[:limit]: results.append({ "viaf_id": item.get("viafid"), "name": item.get("displayForm"), "name_type": item.get("nametype"), "source_count": len(item.get("sources", "").split("|")), }) return results def get_authority(viaf_id: str) -> dict: """Get full VIAF authority record.""" resp = requests.get(f"{BASE_URL}/{viaf_id}/viaf.json") resp.raise_for_status() data = resp.json() name_forms = [] for heading in data.get("mainHeadings", {}).get("data", []): if isinstance(heading, dict): name_forms.append({ "text": heading.get("text"), "sources": heading.get("sources", {}).get("s", []), }) external_ids = {} for src in data.get("sources", {}).get("source", []): sid = src.get("sid", "") if "|" in sid: prefix, local_id = sid.split("|", 1) external_ids[prefix] = local_id return { "viaf_id": data.get("viafID"), "name_forms": name_forms, "birth": data.get("birthDate"), "death": data.get("deathDate"), "external_ids": external_ids, } def resolve_by_orcid(orcid: str) -> dict: """Resolve ORCID to VIAF authority record.""" resp = requests.get( f"{BASE_URL}/sourceID/ORCID|{orcid}/viaf.json" ) resp.raise_for_status() return resp.json() # Example: disambiguate an author name candidates = search_person("Geoffrey Hinton") for c in candidates: print(f"VIAF {c['viaf_id']}: {c['name']} " f"({c['source_count']} libraries)") # Example: get all name forms for an author if candidates: record = get_authority(candidates[0]["viaf_id"]) print(f"\nName forms for {record['viaf_id']}:") for form in record["name_forms"]: sources = ", ".join(form["sources"][:3]) print(f" {form['text']} [{sources}]") print(f"External IDs: {record['external_ids']}")
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 50,109 | 18,555 | -63% | 1 | 1 | 0% | 8,253 | 4,805 | -42% | 0 | 0 | — |
case-02 | pass→pass | 3,565 | 2,504 | -30% | 1 | 1 | 0% | 633 | 2,147 | +239% | 0 | 0 | — |
case-03 | fail→pass | 8,807 | 4,331 | -51% | 1 | 1 | 0% | 1,853 | 2,456 | +33% | 0 | 0 | — |
case-04 | pass→pass | 8,545 | 3,647 | -57% | 1 | 1 | 0% | 1,675 | 2,306 | +38% | 0 | 0 | — |
case-05 | pass→pass | 5,202 | 3,240 | -38% | 1 | 1 | 0% | 1,029 | 2,180 | +112% | 0 | 0 | — |
case-06 | pass→pass | 6,270 | 3,896 | -38% | 1 | 1 | 0% | 951 | 2,243 | +136% | 0 | 0 | — |
case-07 | pass→pass | 7,466 | 3,774 | -49% | 1 | 1 | 0% | 1,240 | 2,339 | +89% | 0 | 0 | — |
case-08 | fail→pass | 9,011 | 2,416 | -73% | 1 | 1 | 0% | 1,350 | 2,133 | +58% | 0 | 0 | — |
case-09 | fail→pass | 9,774 | 4,514 | -54% | 1 | 1 | 0% | 1,823 | 2,507 | +38% | 0 | 0 | — |
case-10 | fail→pass | 9,653 | 3,772 | -61% | 1 | 1 | 0% | 1,827 | 2,565 | +40% | 0 | 0 | — |
case-11 | fail→pass | 9,596 | 2,158 | -78% | 1 | 1 | 0% | 1,472 | 2,173 | +48% | 0 | 0 | — |
case-12 | pass→pass | 8,822 | 2,199 | -75% | 1 | 1 | 0% | 1,202 | 2,105 | +75% | 0 | 0 | — |
case-13 | pass→pass | 4,094 | 1,559 | -62% | 1 | 1 | 0% | 440 | 1,990 | +352% | 0 | 0 | — |
case-14 | pass→pass | 5,361 | 2,320 | -57% | 1 | 1 | 0% | 676 | 2,076 | +207% | 0 | 0 | — |
case-15 | pass→pass | 10,880 | 3,665 | -66% | 1 | 1 | 0% | 1,704 | 2,476 | +45% | 0 | 0 | — |
case-16 | pass→pass | 13,184 | 6,391 | -52% | 1 | 1 | 0% | 2,164 | 3,027 | +40% | 0 | 0 | — |
case-17 | pass→pass | 12,371 | 7,900 | -36% | 1 | 1 | 0% | 1,934 | 3,131 | +62% | 0 | 0 | — |
case-18 | pass→pass | 16,191 | 9,969 | -38% | 1 | 1 | 0% | 2,538 | 3,802 | +50% | 0 | 0 | — |
case-19 | pass→pass | 14,788 | 9,480 | -36% | 1 | 1 | 0% | 2,362 | 3,269 | +38% | 0 | 0 | — |
case-20 | fail→pass | 12,861 | 9,147 | -29% | 1 | 1 | 0% | 1,961 | 3,165 | +61% | 0 | 0 | — |
case-21 | pass→pass | 2,334 | 3,902 | +67% | 1 | 1 | 0% | 412 | 2,443 | +493% | 0 | 0 | — |
case-22 | pass→pass | 8,224 | 7,087 | -14% | 1 | 1 | 0% | 1,633 | 3,209 | +97% | 0 | 0 | — |
case-23 | pass→pass | 6,547 | 3,594 | -45% | 1 | 1 | 0% | 963 | 2,372 | +146% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 23 cases were attempted. The headline lift of +30 percentage points is the difference between those two pass rates over the 23 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.