Skip to main content

Arbeitsagentur Ausbildungssuche API

Project description

ausbildungssuche

Eine der größten Ausbildungsdatenbanken Deutschlands durchsuchen.

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

ClientID: 1c852184-1944-4a9e-a093-5cc078981294

ClientSecret: 777f9915-9f0d-4982-9c33-07b5810a3e79.

Achtung: der generierte Token muss bei folgenden GET-requests 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[ausbildungssuche]

poetry install

poetry add deutschland -E ausbildungssuche

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 ausbildungssuche

Getting Started

Please follow the installation procedure and then run the following:

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

# 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 = ausbildungssuche.Configuration(
    host = "https://rest.arbeitsagentur.de/infosysbub/absuche"
)
configuration.access_token = 'YOUR_ACCESS_TOKEN'


# Enter a context with an instance of the API client
with ausbildungssuche.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = default_api.DefaultApi(api_client)
    ids = 2927 # int | Berufs-ID einer Berufsbezeichnung. Mehrere Komma-getrennte Angaben möglich. (optional)
    orte = 38450 # int | ID eines Ortes. Mehrere Komma-getrennte Angaben möglich. (optional)
    page = 0 # 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 = "BY" # 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)
    bart = 102 # int | Ausbildungstyp - 102=Berufsausbildung, 105=Abschluss nachholen, 109=Umschulung (optional)
    ityp = 0 # int | Integrationstyp - 0=Ausbildung Reha, 1=weiterbildung Reha. Mehrere Komma-getrennte Angaben möglich. (optional)
    bt = 2 # int | Beginntermin - 2=frühere Termine, 101=Januar des Folgejahres, 102=Februar des Folgejahres, 103=März des Folgejahres, 104=April des Folgejahres, 105=Mai des Folgejahres, 106=Juni des Folgejahres, 107=Juli des Folgejahres, 108=August des Folgejahres, 109=September des Folgejahres, 110=Oktober des Folgejahres, 111=November des Folgejahres, 112=Dezember des Folgejahres. Mehrere Komma-getrennte Angaben möglich. (optional)
    ban = 465 # int | Bildungsanbieter-ID. Mehrere Komma-getrennte Angaben möglich. (optional)
    bg = True # bool | Bildungsgutschein - true=nur Angebote mit Zulassung zur Förderung mit Bildungsgutschein anzeigen, false=nicht nur Angebote mit Zulassung zur Förderung mit Bildungsgutschein anzeigen. (optional)

    try:
        # Ausbildungssuche
        api_response = api_instance.ausbildungssuche(ids=ids, orte=orte, page=page, uk=uk, re=re, bart=bart, ityp=ityp, bt=bt, ban=ban, bg=bg)
        pprint(api_response)
    except ausbildungssuche.ApiException as e:
        print("Exception when calling DefaultApi->ausbildungssuche: %s\n" % e)

Documentation for API Endpoints

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

Class Method HTTP request Description
DefaultApi ausbildungssuche GET /pc/v1/ausbildungsangebot Ausbildungssuche

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 ausbildungssuche.apis and ausbildungssuche.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.ausbildungssuche.api.default_api import DefaultApi
  • from deutschland.ausbildungssuche.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 ausbildungssuche
from deutschland.ausbildungssuche.apis import *
from deutschland.ausbildungssuche.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-ausbildungssuche-0.1.0.tar.gz (153.3 kB view hashes)

Uploaded Source

Built Distribution

de_ausbildungssuche-0.1.0-py3-none-any.whl (1.4 MB view hashes)

Uploaded Python 3

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