Skip to main content

Arbeitsagentur Studiensuche API

Project description

studiensuche

Eine der größten Datenbanken für Studienangebote in Deutschland durchsuchen.

Die Authentifizierung funktioniert per OAuth 2 Client Credentials mit JWTs. Folgende Client-Credentials können dafür verwendet werden:

ClientID: 5aee2cfe-1709-48a9-951d-eb48f8f73a74

ClientSecret: 3309a57a-9214-40db-9abe-28b1bb30c08c

Achtung: der generierte Token muss bei folgenden GET-requests an https://rest.arbeitsagentur.de/infosysbub/studisu/pc/v1/studienangebote im header als 'OAuthAccessToken' inkludiert werden.

This Python package is automatically generated by the OpenAPI Generator project:

Requirements.

Python >= 3.6

Installation & Usage

pip install

pip install deutschland[studiensuche]

poetry install

poetry add deutschland -E studiensuche

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Usage

Import the package:

from deutschland import studiensuche

Getting Started

Please follow the installation procedure and then run the following:

import time
from deutschland import studiensuche
from pprint import pprint
from deutschland.studiensuche.api import default_api
from deutschland.studiensuche.model.response import Response
# Defining the host is optional and defaults to https://rest.arbeitsagentur.de/infosysbub/studisu
# See configuration.py for a list of all supported configuration parameters.
configuration = studiensuche.Configuration(
    host = "https://rest.arbeitsagentur.de/infosysbub/studisu"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure OAuth2 access token for authorization: clientCredAuth
configuration = studiensuche.Configuration(
    host = "https://rest.arbeitsagentur.de/infosysbub/studisu"
)
configuration.access_token = 'YOUR_ACCESS_TOKEN'


# Enter a context with an instance of the API client
with studiensuche.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = default_api.DefaultApi(api_client)
    sw = "Informatikberufe" # str | Suchwort (optional)
    sfa = 93683 # int | Studienfach-ID (optional)
    sfe = "94175;94350" # str | dkzIds einer Studienfeld(gruppe), idR. zwei Semikolon-getrennte Werte je Studienfeld(gruppe) (optional)
    orte = "Feucht_90537_11.224918_49.376701" # str | Ortsangabe nebst Postleitzahl und Koordinaten (optional)
    pg = 1 # int | Ergebnissseite (optional)
    uk = "Bundesweit" # str | Umkreis - Bundesweit=Bundesweit, 25=25 km, 50=50 km, 100=100 km, 150=150 km, 200=200 km. (optional)
    re = "BW" # str | Region/Bundesland - BW=Baden-Württemberg, BY=Bayern, BE=Berlin, BB=Brandenburg, HB=Bremen, HH=Hamburg, HE=Hessen, MV=Mecklenburg-Vorpommern, NI=Niedersachsen, NW=Nordrhei-Westfalen, RP=Rheinland-Pfalz, SL=Saarland, SN=Sachsen, ST=Sachsen-Anhalt, SH=Schleswig-Holstein, TH=Thüringen. Mehrere Komma-getrennte Angaben möglich. (optional)
    sfo = 1 # int | Studienform - 1=Vollzeitstudium, 2=Teilzeitstudium, 3=Wochenendveranstaltung, 4=Fernstudium, 5=Selbststudium. Mehrere Semikolon-getrennte Angaben möglich. (optional)
    st = 1 # int | Studientyp - 0=Studiengang grundständig, 1=Studiengang weiterführend. (optional)
    smo = 5 # int | Studiengangmodell - 1=ausbildungsintegrierend, 2=berufsintegrierend, 3=berufsbegleitend, 4=praxisintegrierend, 5=Duales Studium allgemein. Mehrere Semikolon-getrennte Angaben möglich. (optional)
    abg = 0 # int | Studiengangsabschlussgrad - 0=ohne Angabe, 1=Abschlussprüfung, 2=Bachelor, 3=Diplom, 4=Diplom(FH), 10=Master, 12=Staatsexamen (optional)
    hsa = 108 # int | Hochschulart - 101=Berufsakademie/Duale Hochschule, 106=FH/FAW, 107=Kunst- und Musikhochschule, 108=Universität, 111=Verwaltungshochschule, 113=Private Hochschule. 114=Hochschule eigenen Typs. Mehrere Semikolon-getrennte Angaben möglich. (optional)
    san = 26218 # int | Studienanbieter-ID (optional)
    ffst = 1 # int | Eignungstest - 1=Studiencheck, 2=OSA. Mehrere Semikolon-getrennte Angaben möglich. (optional)

    try:
        # Studiensuche
        api_response = api_instance.studiensuche(sw=sw, sfa=sfa, sfe=sfe, orte=orte, pg=pg, uk=uk, re=re, sfo=sfo, st=st, smo=smo, abg=abg, hsa=hsa, san=san, ffst=ffst)
        pprint(api_response)
    except studiensuche.ApiException as e:
        print("Exception when calling DefaultApi->studiensuche: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://rest.arbeitsagentur.de/infosysbub/studisu

Class Method HTTP request Description
DefaultApi studiensuche GET /pc/v1/studienangebote Studiensuche

Documentation For Models

Documentation For Authorization

clientCredAuth

  • Type: OAuth
  • Flow: application
  • Authorization URL:
  • Scopes: N/A

Author

andreasfischer1985@web.de

Notes for Large OpenAPI documents

If the OpenAPI document is large, imports in studiensuche.apis and studiensuche.models may fail with a RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:

Solution 1: Use specific imports for apis and models like:

  • from deutschland.studiensuche.api.default_api import DefaultApi
  • from deutschland.studiensuche.model.pet import Pet

Solution 2: Before importing the package, adjust the maximum recursion limit as shown below:

import sys
sys.setrecursionlimit(1500)
from deutschland import studiensuche
from deutschland.studiensuche.apis import *
from deutschland.studiensuche.models import *

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

de-studiensuche-0.1.0.tar.gz (48.0 kB view details)

Uploaded Source

Built Distribution

de_studiensuche-0.1.0-py3-none-any.whl (90.3 kB view details)

Uploaded Python 3

File details

Details for the file de-studiensuche-0.1.0.tar.gz.

File metadata

  • Download URL: de-studiensuche-0.1.0.tar.gz
  • Upload date:
  • Size: 48.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.8

File hashes

Hashes for de-studiensuche-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5e37f916879df19215210eb32fbeb64e7bec70fde7a005902785b5eeebeb0383
MD5 1c4cafc1570068b80b05673622c59353
BLAKE2b-256 204134f9bc8158309ffb57c69b1ae85edcacf6af4424f0aa3a95056db5e15f9a

See more details on using hashes here.

File details

Details for the file de_studiensuche-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: de_studiensuche-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 90.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.8

File hashes

Hashes for de_studiensuche-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 02b582f43311d1d82ae83213ed0a21c2b53e28ce574c4297424c553fde9dc499
MD5 922e03b4a76ccf88094fa1ab1bae4541
BLAKE2b-256 9282329e819c2bccfd8aee37be1b08edb91eb342431da5cde7079ec39c88ee7f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page