Developers and data engineers can use our SDG classification API to classify text fragments in multiple languages and to relate their text fragment to the SDG goals.
Rate limits
The API is throttled down for public use to 5 requests per second. If you need an increased rate, sent us an e-mail.
Calling the API
The classifier base URL is https://aurora-sdg.labs.vu.nl/classifier/classify/<model>
The path parameter <model>
needs to be replaced by one of the available model designations:
aurora-sdg
: Aurora SDG mBERT model (slower, Aurora definition of SDG's, 104 languages)aurora-sdg-multi
: Aurora SDG multi-label mBERT model (fast, Aurora definition of SDG's, 104 languages)elsevier-sdg-multi
: Elsevier SDG multi-label mBERT model (fast, Elsevier definition of SDG's, 104 languages)osdg
: OSDG model (alternative, OSDG definition of SDG's, 15 languages)
Please refer to our About the models page for further information.
The text to be classified can either be send as text
-parameter in a HTTP GET request or as JSON-type content in the body of an HTTP-POST request:
{ "text": "Text to be classified" }
CAUTION!
HTTP GET requests have a limited path length, which depends both on the server and the client used. In order to avoid problems, we strongly suggest to use HTTP-POST requests.