University of Gothenburg Analysis API
### Queries for Annotating TextsThe default query for the text analysis can be sent as GET or POST requests.The latter can be useful for longer texts. In both cases the response is a JSONobject containing the text analysis in XML format.See [Default query](#tag/Analysis/paths/~1/get) for more details.It is also possible to upload text or XML files.In this case the response is a JSON object with a download link to a zip filecontaining the annotation.See [File upload](#tag/Files/paths/~1upload/post) for more details.### SettingsThe web service supports some custom settings, e.g. it lets you choosebetween different tokenizers on word, sentence, and paragraph leveland you can define which annotations should be generated. Via the settings youcan also choose the language of your input and you can define whether your inputis in XML or plain text.These settings are provided as a JSON object to the `settings` parameter.This object must satisfy the JSON schema that is generated by `/schema` callwhen provided with a `language` and a `mode` parameter:[`/schema?language=sv&mode=plain`](https://ws.spraakbanken.gu.se/ws/sparv/v3/schema?language=sv&mode=plain)The schema holds default values for all the attributes. The use of the settingsparameter is therefore optional.This is an example for a request which only generates a dependency analysis:[`/?text=Det+trodde+jag+aldrig.&settings={"positional_attributes":{"dependency_attributes":["ref","dephead","deprel"],"lexical_attributes":[],"compound_attributes":[]}}`](https://ws.spraakbanken.gu.se/ws/sparv/v3/?text=Det+trodde+jag+aldrig.&settings={"positional_attributes":{"dependency_attributes":["ref","dephead","deprel"],"lexical_attributes":[],"compound_attributes":[]}})If you are not sure how to define the settings parameter you can get helpfrom the [frontend](https://spraakbanken.gu.se/sparv) by clicking`Show JSON Settings` under `Show advanced settings`. This will generatethe JSON object for the chosen settings which is sent in the `settings` parameter.### Analysing other LanguagesThe default analysis language is Swedish but Sparvalso supports other languages. The language is specified by supplyinga two-letter ISO 639-1 code to the `language` parameter.This is an example for an analysis of a German sentence:[`/?text=Nun+folgt+ein+deutscher+Beispielsatz.&language=de`](https://ws.spraakbanken.gu.se/ws/sparv/v3/?text=Nun+folgt+ein+deutscher+Beispielsatz.&language=de)Different kinds of settings are supported for different languages, depending on which toolis used for the analysis. Please use the [frontend](https://spraakbanken.gu.se/sparv)if you want to check what options there are for a certain language.Alternatively you can check the JSON schema for the language you want to analyse by sending a schema request, e.g.:[`/schema?language=de`](https://ws.spraakbanken.gu.se/ws/sparv/v3/schema?language=de)[This language table](https://spraakbanken.gu.se/eng/research/infrastructure/sparv/distribution/pipeline#language_table)provides information on which languages are currently supported and which tools are used for their analysis.
University of Gothenburg Analysis API is one of 33 APIs that University of Gothenburg publishes on the APIs.io network, described by a machine-readable OpenAPI specification.
This API exposes 2 JSON Schema definitions.
Tagged areas include Analysis. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, authentication docs, and 2 JSON Schemas.
This API exposes 5 operations across 4 paths, and defines 5 schemas. It is described by OpenAPI 3.2.0, at version 3.0.
Requests are made against 2 base URLs: https://ws.spraakbanken.gu.se/ws/sparv/v3, https://ws.spraakbanken.gu.se/ws/sparvlabb/v3.
Metadata
The identity and technical contract details declared by the specification.
Authentication & Security 1
University of Gothenburg Analysis API declares
1 security scheme
for authenticating requests.
An API key is passed in the query as secret_key (ApiKeyAuth).
Paths & Operations 5
Across 4 paths, the API surfaces 5 operations — 4 GET, 1 POST. Each is listed below with its method, path, parameters, and response codes.
Queries for Annotating Texts The default query for the text analysis can be sent as GET or POST requests.
Schemas 5
The contract defines 5 schemas that model the data the API accepts and returns. The most detailed are JoinSchema (3 properties), AnalysisSchema (2 properties), MakefileSchema (1 property), GeneralError (1 property). Each schema is shown below with its type and property counts.
Specification
The full machine-readable OpenAPI contract behind this narrative.
Source
More from University of Gothenburg 12
Other APIs University of Gothenburg publishes across the network.
This is an independent, third-party profile of University of Gothenburg Analysis API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.
The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.
Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.
info@apievangelist.com
·
Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and
you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.