Skip to main content
Skip table of contents

GetPressReleaseYearList

Description

Returns an array of years for which Press Releases filtered by input parameters exist. When any parameters are missed, the default value is used.

Input Parameters

Parameter

Description

apiKey (string)

To use the Q4 API, you need to have an application key. We use this to track API usage. Currently, the use of the API is allowed only with prior permission. Requests for API keys are reviewed by staff. Please get in touch with support to get the API Key.

languageId (int)

Specifies the language for which press releases should be returned. The default value is 1 (English).

tagList (string)

If specified, the result will be filtered by tags. Tags are pipe-delimited - 'tag1|tag2'. The default is an empty string.

categoryId (Guid)

Specifies the id of the category by which press releases need to be filtered. The default value is "00000000-0000-0000-000000000000".

Sample URL

https://www.domain.com/feed/PressRelease.svc/GetPressReleaseYearList?apiKey=c34993dcba1942418d97656f3ed00979&categoryId=92A73960-D187-47CB-9C09-AC79F3E32251

Sample Request

JSON
var data = {
    apiKey: 'c34993dcba1942418d97656f3ed00979',
    categoryId: '92A73960-D187-47CB-9C09-AC79F3E32251'
};

$.ajax({
    type: "GET",
    url: "http://www.domain.com/feed/PressRelease.svc/GetPressReleaseYearList",
    data: data,
    dataType: "json",
    success: OnLoadPressReleaseYearsListSuccess,
    error: OnLoadError
});

Sample Response

JSON
{
    "GetPressReleaseYearListResult": [2012, 2011, 2010, 2009, 2008, 2007, 2006, 2005, 2004, 2003, 2002, 2001, 2000, 1999, 1998, 1997]
}

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.