Skip to content

oireachtas_api.ConstituenciesApi

All URIs are relative to https://api.oireachtas.ie/v1

Method HTTP request Description
constituencies GET /constituencies Constituencies List

constituencies

object constituencies(chamber_id=chamber_id, chamber=chamber, house_no=house_no, skip=skip, limit=limit)

Constituencies List

Returns list of constituencies filtered by the base and additional parameters. The list supports paging. #### Mapping * Start Date - Greater Than or Equal To - question.date * End Date - Less Than or Equal To - question.date * Skip - Equal To - this will ignore the first x number of records set in the parameter * Limit - Equal To - this will only return a specific amount of records * House/Chamber - house.house.uri

Example

from __future__ import print_function
import time
import oireachtas_api
from oireachtas_api.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = oireachtas_api.ConstituenciesApi()
chamber_id = ['[]'] # list[str] | Filter by house or committee uri. Example  /ie/oireachtas/house/dail/32  (optional) (default to [])
chamber = '' # str | Filter by House name (dail or seanad). Using an empty string retrieves results for both Houses.  (optional) (default to )
house_no = 56 # int | filter by house number (optional)
skip = 0 # int | This is a base filter which is used on many APIs, allowing skipping of records by a specific integer. (optional) (default to 0)
limit = 50 # int | This is a base filter which is used on many APIs, allowing the limiting of records to a specific integer. (optional) (default to 50)

try:
    # Constituencies List
    api_response = api_instance.constituencies(chamber_id=chamber_id, chamber=chamber, house_no=house_no, skip=skip, limit=limit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConstituenciesApi->constituencies: %s\n" % e)

Parameters

Name Type Description Notes
chamber_id list[str] Filter by house or committee uri. Example /ie/oireachtas/house/dail/32 [optional] [default to []]
chamber str Filter by House name (dail or seanad). Using an empty string retrieves results for both Houses. [optional] [default to ]
house_no int filter by house number [optional]
skip int This is a base filter which is used on many APIs, allowing skipping of records by a specific integer. [optional] [default to 0]
limit int This is a base filter which is used on many APIs, allowing the limiting of records to a specific integer. [optional] [default to 50]

Return type

object

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]