Skip to content
  • District Type

    Use District Type endpoint to get information on district categories.

    Get district types

    Request

    Use the district_type resource to get information about the categories of both legislative and non-legislative districts in Elected Officials. The default response ordering is by name_short.

    Cost: 0 credits

    Query
    formatstring

    Specify the desired format of the response.

    Enum:"json""xml"
    Example:format=json
    customer_idstring, (password)required

    Required. The License Key issued by Melissa.

    Example:customer_id={REPLACE-WITH-YOUR-LICENSE-KEY}
    keystring, (password)deprecated

    The License Key issued by Melissa.

    Headers
    Acceptstringrequired

    Format of the response.

    Enum:"application/json""*/*"
    Example:*/*
    Content-Typestringrequired

    Format of the request.

    Enum:"application/json""application/xml"
    curl -i -X GET \
      'https://electedofficials.melissadata.net/v3.1/district_type?customer_id=%7BREPLACE-WITH-YOUR-LICENSE-KEY%7D' \
      -H 'Accept: */*' \
      -H 'Content-Type: application/json'

    Responses

    Successful response

    Body
    responseobject
    Response
    { "response": { "errors": [], "messages": [], "results": { … } } }