Synthetic API • HTTP interface
Synthetic corpus API endpoint
Explore synthetic corpus collections, versions, language pairs and statistics with simple URL paths and filters.
GET
/synthetic-api/{items|collections|languages}
Endpoint paths
items
Language-pair rows and statistics from synthetic corpus releases.
collections
Available synthetic collections and their versions.
languages
Distinct language codes, optionally narrowed by collection and version.
Query filters
name
Optional collection name, e.g. Europarl or Wikibooks.
version
Optional synthetic release version, e.g. v8syn or v1syn.
lang_pair
Optional pair code, e.g. bg-mk.
src
Optional source language code.
tgt
Optional target language code.
Filters can be combined to narrow the returned collection, version or language-pair rows.
Examples
A specific version and language pair
itemsnameversionlang_pair
https://opus.nlpl.eu/synthetic-api/items?name=Europarl&version=v8syn&lang_pair=bg-mk
↗
Filter items by source and target
itemsnamesrctgt
https://opus.nlpl.eu/synthetic-api/items?name=Europarl&src=bg&tgt=mk
↗
Versions for one collection
collectionsname
https://opus.nlpl.eu/synthetic-api/collections?name=Europarl
↗
Languages for a collection version
languagesnameversion
https://opus.nlpl.eu/synthetic-api/languages?name=Europarl&version=v8syn
↗