Global functions

This API contains various functions which is used in the services that Citygate provide (Lokus, KiN, etc). In order to use these functions, you have to register a user at Citygate.

Day Ads Family Widget ToppJobbs ToppJobbs Legacy Cardealers Cardealers Ads Brokers Brokers Ads Brokers Exhibitions Site Statistics

Day Ads

  • URL: https://api.citygate.se/common/dayads?apiKey={guid}&cgNewspaperId={int}&date={string}&cgCustomerids={string}&placementCode={string}
  • Parameters:
    • apiKey: (required) The unique guid given to you.
    • cgNewspaperId: (required) The id of a specific newspaper
    • date: (required) The date of the Ads to get, format YYYY-MM-DD
    • cgCustomerIds: (optional) Comma separated list with one or multiple cgCustomerId. cgCustomerId is the id used in the company database at Citygate.
    • placementCode: (optional) Filter by Placement Code.
  • Method: GET
  • Accept: application/xml or  application/json
  • Limit: 100000 requests every hour
  • Cache: 6 h
  • Response:
    <?xml version="1.0"?>
    <ArrayOfDayAd>
    	<DayAd>
    		<AdInId>20854206</AdInId>
    		<CgCustomerId>3178720</CgCustomerId>
    		<HighResRelativeUrl>bild_600/20854206.jpg</HighResRelativeUrl>
    		<LowResFullUrl>http://adinimages.citygate.se/DT/bild_300/20854206.jpg</LowResFullUrl>
    		<LowResRelativeUrl>bild_300/20854206.jpg</LowResRelativeUrl>
    		<NormalResRelativeUrl>bild/20854206.jpg</NormalResRelativeUrl>
    		<PdfRelativeUrl>pdf/20854206.pdf</PdfRelativeUrl>
    		<PlacementCode>THED</PlacementCode>
    		<ShortName>DT</ShortName>
    	</DayAd>
    </ArrayOfDayAd>
    

Returns list of Daily Ads in XML or JSON-format depending on accept-header.

Family Widget

  • URL:https://api.citygate.se/common/familywidget/?apiKey={guid}&newspaperIds={int, ...}&groupId={int}&subCategory={int}&city={string}&district={string}&freetext={string}&orderBy={string]&sort={string}, &page={int}&hitsPerPage={int}imageStatus={int}&contry={string}&fromDate={string}&toDate={string}&categoryIds={int, ...}&splitCategories={bool}
  • Parameters:
    • apiKey: (required) The unique guid given to you.
    • newspaperIds: (optional) Comma sepatated list. If supplied, filter on ads for the given newspaper(s). Use to impersonate another newspaper in the same group. If not supplied, defaults to your registered newspaper.
    • groupId: (optional) If supplied, filter on all newspapers in that group.
    • categoryId: (optional) If supplied, filter by Category.
    • subCategoryId: (optional) If supplied, filter by SubCategory.
    • city: (optional) If supplied, filter by City. If both City and (District and/or PostalCode) is supplied, City ranks the highest.
    • district: (optional) If supplied, filter by District. If both City and District is supplied, City ranks the highest.
    • freetext: (optional) If supplied, filter by FreeText. Searching for "noise words" like "grattis" or "hurra" will be ignored.
    • orderBy: (optional) If supplied, order the result. Values: image = order ads depending on if they have images, district = order by District name, headline = order by Headline, subcategory = order by SubCategory name. If not supplied, default order is validFrom.
    • sort: (optional) If supplied, sets the direction of the orderBy. Values: asc = sort ascending, desc = sort descending. If not supplied, defaults to asc.
    • page: (optional) If supplied, gets the specified page of the result. If not supplied, returns the first page,
    • hitsPerPage: (optional) If supplied, sets the number of hits to show per result page. Max setting is 1000 hits per page. If not supplied, defaults to 20
    • imageStatus: (optional) If supplied, filter by images. Values: 0 = only ads without images, 1 = only ads with images. If not suppliend, includes both ads with and without images.
    • country: (optional) If supplied, filter by country.
    • fromDate: (optional) If supplied, only include ads whos field valid from are newer or equal to the value. Format: YYY-MM-DD.
    • toDate: (optional) If supplied, only include ads whos field validFrom are older or equal to the value. Format: YYYY-MM-DD.
    • splitCategories: (optional) If supplied, split the categories.
  • Method: GET
  • Accept: application/xml, default is application/json if no accept-header is supplied
  • Limit: 1000 requests every hour
  • Cache: 100 seconds
  • Response:
    {
      "TotalHits": 32,
      "Pages": 11,
      "CurrentPage": 1,
      "Hits": [
        {
          "Id": 7227073,
          "Newspaper": {
            "Id": 8,
            "GroupId": 0,
            "Name": "DT",
            "ShortName": "DT",
            "Domain": "dt.se"
          },
          "Category": {
            "Id": 22,
            "Name": "Hälsningar",
            "SubCategory": {
              "Id": 71,
              "Name": "Hälsningar"
            }
          },
          "County": {
            "Name": "Dalarna",
            "City": {
              "Name": "Borlänge",
              "District": {
                "Name": "Borlänge",
                "PostalCode": 78100
              }
            }
          },
          "ValidFrom": "2015-08-21T00:00:00.0000000",
          "ValidTo": "2043-01-05T00:00:00.0000000",
          "Headline": "100 år mellan 5 generationer",
          "Images": {
            "Count": 1,
            "ThumbUrl": "http://webimages.lokus.se/DT/thumb/thumb_000012113263899_.jpg",
            "MediumUrl": "http://webimages.citygate.se/DT/web/web_000012113263899_.jpg",
            "LargeUrl": "http://webimages.citygate.se/DT/large/large_000012113263899_.jpg",
            "Text": ""
          },
          "Age": -1,
          "ExternalAd": false,
          "HasVideo": false,
          "Comments": {
            "HasComments": false
          },
          "Ref": "dalarna"
        },
        {
          "Id": 7231594,
          "Newspaper": {
            "Id": 8,
            "GroupId": 0,
            "Name": "DT",
            "ShortName": "DT",
            "Domain": "dt.se"
          },
          "Category": {
            "Id": 28,
            "Name": "Dödsannonser",
            "SubCategory": {
              "Id": 130,
              "Name": "Dödsannonser"
            }
          },
          "County": {
            "Name": "Dalarna",
            "City": {
              "Name": "Falun",
              "District": {
                "Name": "",
                "PostalCode": 0
              }
            }
          },
          "ValidFrom": "2015-08-21T00:00:00.0000000",
          "ValidTo": "2018-02-05T00:00:00.0000000",
          "Headline": "Anders Norén",
          "Images": {
            "Count": 1,
            "ThumbUrl": "http://rootimages.lokus.se/DT/bild/21002636.jpg",
            "MediumUrl": "http://rootimages.lokus.se/DT/bild_300/21002636.jpg",
            "LargeUrl": "http://rootimages.lokus.se/DT/bild_600/21002636.jpg",
            "Text": ""
          },
          "Age": -1,
          "ExternalAd": false,
          "HasVideo": false,
          "Comments": {
            "HasComments": false
          },
          "Ref": "dalarna"
        },
      "UserDomain": "dt.se"
    }
                            

Returns the search result, in paged fashion. Maximum of 1000 hits per page

ToppJobbs

  • URL: https://api.citygate.se/common/toppjobbs/{groupId}/?apiKey={guid}
  • Parameters:
    • groupId: (int) (optional) If supplied, the functions includes ALL ToppJobbs in the group given the user belongs to it. Suppling a groupId overrides the newspaper from the apiKey, but the apiKey is still needed for verification.
    • apiKey: (required) The unique guid given to you, used to resolve the newspaper whos toppjobbs to show. Can be overridden by groupId.
  • Method: GET
  • Accept: application/json or application/xml
  • Limit: 100000 requests every hour
  • Cache: 60 seconds
  • Response:
    [
        {
            "id":5861585,
            "validFrom":"2013-08-31T00:00:00.0000000",
            "validTo":"2013-09-15T00:00:00.0000000",
            "headline":"Specialpedagog",
            "position":"Specialpedagog",
            "text":"Specialpedagog sökes till Vegaskolan i Vännäs kommun.",
            "typeOfBusiness":"Utbildning",
            "profession":"Övrigt",
            "duration":"Tillsvidare",
            "newspaper":{
                "id":15,
                "name":"Västerbottens-Kuriren"
            },
            "company":{
                "id":135938,
                "name":"Vännäs kommun",
                "logoUrl":"http://career.citygate.se/tidning/VK/jobb_logo/Vannas_kommun.png"
            },
            "productUrls":[
                {
                    "name":"career",
                    "url":"http://karriarinorr.se/jobb/5861585"
                },
                {
                    "name":"lokus",
                    "url":"http://vk.lokus.se/visajobb/alla/alla/alla/_5861585/"
                }
            ]
        }
    ]
                            

Returns a randomized list of max 100 ToppJobbs primarily belonging to the newspaper connected to the user. However ToppJobbs connected to other newspapers may also be included, given they are released on the users newspaper aswell.

ToppJobbs Legacy

[DEPRECATED]
  • URL: https://api.citygate.se/common/toppjobbs/legacy/{groupId}/?apiKey={guid}
  • Parameters:
    • groupId: (int) (optional) If supplied, the functions includes ALL ToppJobbs in the group given the user belongs to it. Suppling a groupId overrides the newspaper from the apiKey, but the apiKey is still needed for verification.
    • apiKey: (required) The unique guid given to you, used to resolve the newspaper whos toppjobbs to show. Can be overridden by groupId.
  • Method: GET
  • Accept: application/xml
  • Limit: 10000 requests every hour
  • Cache: 60 seconds

Returns a randomized list of ToppJobbs primarily belonging to the newspaper connected to the user. However ToppJobbs connected to other newspapers may also be included, given they are released on the users newspaper aswell.

Cardealers

  • URL: https://api.citygate.se/common/cardealers/ads?cgCustomerIds={int, ...}&apiKey={guid}
  • Parameters:
    • apiKey: (required) The unique guid given to you.
    • cgCustomerIds: (optional) Comma separated list with one or multiple cgCustomerId. cgCustomerId is the id used in the company database at Citygate.
  • Method: GET
  • Accept: application/json or application/xml
  • Limit: 100000 requests every hour
  • Cache: 21600 seconds (6 hours)
  • Response:
    [
      {
        "CustomerLink": "http://nt.lokus.se/Hitta/Sverige/AllaAnnonser/AllaKategorier/?SC=1&SC_P=4&SC_K=74923",
        "LokusLink": "http://nt.lokus.se/Hitta/ostergotland/Motor/Bil/Alla/",
        "cgCustomerId": 74923,
        "Description": "Tage Rejmes i Finspång",
        "MarketName": "Ryds Glas Projekt Ab",
        "Address": "Bilförsäljning Finspång, 1112",
        "ZipCode": "60105",
        "PostalAddress": "NORRKÖPING",
        "VisitingAddress": "Norrköpingsvägen 28",
        "Phone": "012223400",
        "CellPhone": "",
        "Email": "",
        "Fax": "",
        "Logo": "",
        "Ads": []
      },
      {
        "CustomerLink": "http://nt.lokus.se/Hitta/Sverige/AllaAnnonser/AllaKategorier/?SC=1&SC_P=4&SC_K=75843",
        "CustomerSite": "www.zetterblombil.se",
        "LokusLink": "http://nt.lokus.se/Hitta/ostergotland/Motor/Bil/Alla/",
        "cgCustomerId": 75843,
        "Description": "ZETTERBLOM BIL AB",
        "MarketName": "ZETTERBLOM BIL",
        "Address": "BOX 6065",
        "ZipCode": "60006",
        "PostalAddress": "NORRKÖPING",
        "VisitingAddress": "Importgatan 44",
        "Phone": "011100440",
        "CellPhone": "",
        "Email": "info@zetterblom.se",
        "Fax": "",
        "Logo": "http://logo.citygate.se/NT/logo/75843_logo.gif",
        "Ads": []
      }
    ]
                            

Returns information about the dealers, based on the newspaper bound to the apiKey. Can be filtered on cgCustomerId. The Ads property is always empty in this request. To get the ads aswell, use "Cardealers Ads" (common/cardealers/ads) specified below

Cardealers Ads

  • URL: https://api.citygate.se/common/cardealers/ads?cgCustomerIds={int, ...}&apiKey={guid}&limitAds={int}
  • Parameters:
    • apiKey: (required) The unique guid given to you.
    • cgCustomerIds: (optional) Comma separated list with one or multiple cgCustomerId. cgCustomerId is the id used in the company database at Citygate.
    • limitAds: (optional) Maximum ads per cardealer to return.
  • Method: GET
  • Accept: application/json or application/xml
  • Limit: 100000 requests every hour
  • Cache: 21600 seconds (6 hours)
  • Response:
    [
      {
        "CustomerLink": "http://sn.lokus.se/Hitta/Sverige/AllaAnnonser/AllaKategorier/?SC=1&SC_P=4&SC_K=434174",
        "CustomerSite": "http://www.skobes.se",
        "LokusLink": "http://sn.lokus.se/Hitta/sodermanland/Motor/Bil/Alla/",
        "cgCustomerId": 434174,
        "Description": "**Skobes Bil I Nyköping Ab",
        "MarketName": "Skobes Bil i Nyköping AB",
        "Address": "Box 1021",
        "ZipCode": "57329",
        "PostalAddress": "Tranås",
        "VisitingAddress": "",
        "Phone": "0155-75200",
        "CellPhone": "",
        "Email": "",
        "Fax": "0155-75203",
        "Logo": "http://rootimages.lokus.se/SN/logo/434174_logo.gif",
        "Ads": [
          {
            "cgProductId": 5272728,
            "Description": "Volvo V40 D3 Momentum",
            "Brand": "Volvo",
            "Model": "V40",
            "Class": "Halvkombi",
            "MetricMiles": 0,
            "ModelYear": 2013,
            "Price": 292900,
            "cgCustomerId": 434174,
            "Image": "http://webimages.lokus.se/SN/large/large_skobesnykoping_MXH788.jpg",
            "ImageBig": "http://webimages.lokus.se/SN/big/big_skobesnykoping_MXH788.jpg",
            "ImageWeb": "http://webimages.lokus.se/SN/web/web_skobesnykoping_MXH788.jpg"
          },
          {
            "cgProductId": 5305861,
            "Description": "Renault Kangoo II Skåp Maxi 1.5dCi 110 E5 5p GrC",
            "Brand": "Renault",
            "Model": "Kangoo",
            "Class": "Transportbil - Skåp",
            "MetricMiles": 0,
            "ModelYear": 2012,
            "Price": 188900,
            "cgCustomerId": 434174,
            "Image": "http://webimages.lokus.se/SN/large/large_skobesnykoping_MSW519.jpg",
            "ImageBig": "http://webimages.lokus.se/SN/big/big_skobesnykoping_MSW519.jpg",
            "ImageWeb": "http://webimages.lokus.se/SN/web/web_skobesnykoping_MSW519.jpg"
          }
        ]
      }
    ]
                            

Returns information about the dealers and all of their current ads, based on the newspaper bound to the apiKey. Can be filtered on cgCustomerId.

Brokers

  • URL: https://api.citygate.se/common/brokers?cgCustomerIds={int, ...}&apiKey={guid}
  • Parameters:
    • apiKey: (required) The unique guid given to you.
    • cgCustomerIds: (optional) Comma separated list with one or multiple cgCustomerId. cgCustomerId is the id used in the company database at Citygate.
  • Method: GET
  • Accept: application/json or application/xml
  • Limit: 100000 requests every hour
  • Cache: 21600 seconds (6 hours)
  • Response:
    [
      {
        "CustomerLink": "http://nt.lokus.se/Hitta/Sverige/AllaAnnonser/AllaKategorier/?SC=1&SC_P=4&SC_K=75583",
        "CustomerSite": "www.maklarhuset.se/norrkoping/",
        "LokusLink": "http://nt.lokus.se/Hitta/ostergotland/Bostad/AllaKategorier/Alla/",
        "cgCustomerId": 75583,
        "Description": "MÄKLARHUSET I NORRKÖPING AB",
        "MarketName": "MÄKLARHUSET",
        "Address": "GAMLA RÅDSTUGUGATAN 40",
        "ZipCode": "60232",
        "PostalAddress": "NORRKÖPING",
        "VisitingAddress": "Gamla Rådstugugatan 40",
        "Phone": "011108510",
        "CellPhone": "",
        "Email": "",
        "Fax": "",
        "Logo": "http://logo.citygate.se/NT/logo/75583_logo.gif",
        "Ads": []
      },
      {
        "CustomerLink": "http://nt.lokus.se/Hitta/Sverige/AllaAnnonser/AllaKategorier/?SC=1&SC_P=4&SC_K=75838",
        "CustomerSite": "www.erasweden.com/kontor/norrkoping/norrkoping",
        "LokusLink": "http://nt.lokus.se/Hitta/ostergotland/Bostad/AllaKategorier/Alla/",
        "cgCustomerId": 75838,
        "Description": "ERA Bostadsmäklarna",
        "MarketName": "ERA",
        "Address": "LINDÖVÄGEN 68",
        "ZipCode": "60228",
        "PostalAddress": "NORRKÖPING",
        "VisitingAddress": "Lindövägen 68",
        "Phone": "011104050",
        "CellPhone": "",
        "Email": "",
        "Fax": "",
        "Logo": "http://logo.citygate.se/NT/logo/75838_logo.gif",
        "Ads": []
      }
    ]
                            

Returns information about the brokers based on the newspaper bound to the apiKey. Can be filtered on cgCustomerId. The Ads property is always empty in this request. To get the ads aswell, use "Brokers Ads" (common/brokers/ads) specified below

Brokers Ads

  • URL: https://api.citygate.se/common/brokers/ads?cgCustomerIds={int, ...}&apiKey={guid}&limitAds={int}
  • Parameters:
    • apiKey: (required) The unique guid given to you.
    • cgCustomerIds: (optional) Comma separated list with one or multiple cgCustomerId. cgCustomerId is the id used in the company database at Citygate.
    • limitAds: (optional) Maximum ads per broker to return.
  • Method: GET
  • Accept: application/json or application/xml
  • Limit: 100000 requests every hour
  • Cache: 21600 seconds (6 hours)
  • Response:
    [
      {
        "CustomerLink": "http://nt.lokus.se/Hitta/Sverige/AllaAnnonser/AllaKategorier/?SC=1&SC_P=4&SC_K=75838",
        "CustomerSite": "www.erasweden.com/kontor/norrkoping/norrkoping",
        "LokusLink": "http://nt.lokus.se/Hitta/ostergotland/Bostad/AllaKategorier/Alla/",
        "cgCustomerId": 75838,
        "Description": "ERA Bostadsmäklarna",
        "MarketName": "ERA",
        "Address": "LINDÖVÄGEN 68",
        "ZipCode": "60228",
        "PostalAddress": "NORRKÖPING",
        "VisitingAddress": "Lindövägen 68",
        "Phone": "011104050",
        "CellPhone": "",
        "Email": "",
        "Fax": "",
        "Logo": "http://rootimages.lokus.se/NT/logo/75838_logo.gif",
        "Ads": [
          {
            "cgProductId": 5997171,
            "Description": "Fritidshus: Klingstadsvägen 23",
            "County": "Östergötland",
            "City": "Norrköping",
            "District": "Näkna",
            "Class": "Fritidshus",
            "Address": "Klingstadsvägen 23",
            "Phone": "",
            "Price": 345000,
            "Rooms": 2,
            "cgCustomerId": 75838,
            "Image": "http://webimages.lokus.se/NT/large/large_BrokerObject5820877_01.jpg",
            "ImageWeb": "http://webimages.lokus.se/NT/web/web_BrokerObject5820877_01.jpg"
          },
          {
            "cgProductId": 5997175,
            "Description": "Villa/Radhus: Misskärr Hälla",
            "County": "Östergötland",
            "City": "Söderköping",
            "District": "Söderköping Hälla",
            "Class": "Villa & Radhus",
            "Address": "Misskärr Hälla",
            "Phone": "",
            "Price": 4900000,
            "Rooms": 6,
            "cgCustomerId": 75838,
            "Image": "http://webimages.lokus.se/NT/large/large_BrokerObject5775072_01.jpg",
            "ImageWeb": "http://webimages.lokus.se/NT/web/web_BrokerObject5775072_01.jpg"
          }
        ]
      }
    ]
                            

Returns information about the brokers and all of their current ads, based on the newspaper bound to the apiKey. Can be filtered on cgCustomerId.

Brokers Exhibitions

  • URL: https://api.citygate.se/common/brokers/exhibitions?cgCustomerIds={int, ...}&startDate={string}&endDate={string}&apiKey={guid}
  • Parameters:
    • apiKey: (required) The unique guid given to you.
    • startDate: (optional) Shows exhibitions on that day and newer. Defaults to todays date in not included. Format YYYY-MM-DD.
    • endDate: (optional) Shows exhibitions on that day and older. Defaults to todays date in not included. Format YYYY-MM-DD.
    • cgCustomerIds: (optional) Comma separated list with one or multiple cgCustomerId. cgCustomerId is the id used in the company database at Citygate.
  • Method: GET
  • Accept: application/json or application/xml
  • Limit: 100000 requests every hour
  • Cache: 21600 seconds (6 hours)
  • Response:
    [
      {
        "Date": "2014-06-17",
        "StartTime": "17:00",
        "EndTime": "17:30",
        "Info": "Ring 011-104050 eller maila för att boka tid",
        "Address": "Blockstensgatan 19",
        "County": "Östergötland",
        "City": "Norrköping",
        "Area": "Vilbergen",
        "Type": "Bostadsrätt",
        "MonthlyFee": 4055,
        "Price": 595000.0000,
        "ProductDescription": "Bostadsrätt: Blockstensgatan 19",
        "BrokerDescription": "ERA",
        "CgCustomerId": 75838,
        "ObjectLink": "http://nt.lokus.se/Visa/Sverige/AllaAnnonser/AllaKategorier/Sokning-_6309115/",
        "Image": "http://webimages.lokus.se/NT/large/large_BrokerObject6358143_01.jpg",
        "ImageWeb": "http://webimages.lokus.se/NT/web/web_BrokerObject6358143_01.jpg",
        "Rooms": 2
      },
      {
        "Date": "2014-06-17",
        "StartTime": "16:30",
        "EndTime": "17:00",
        "Info": "Tidsbokning. 011-134495 eller mail.",
        "Address": "Moängsvägen 4",
        "County": "Östergötland",
        "City": "Norrköping",
        "Area": "Östra Husby",
        "Type": "Villa & Radhus",
        "MonthlyFee": -1,
        "Price": 1375000.0000,
        "ProductDescription": "Villa/Radhus: Moängsvägen 4",
        "BrokerDescription": "Sparbankernas Fastighetsbyrå I Norrköping",
        "CgCustomerId": 1548042,
        "ObjectLink": "http://nt.lokus.se/Visa/Sverige/AllaAnnonser/AllaKategorier/Sokning-_6321965/",
        "Image": "http://webimages.lokus.se/NT/large/large_BrokerObject6385717_01.jpg",
        "ImageWeb": "http://webimages.lokus.se/NT/web/web_BrokerObject6385717_01.jpg",
        "Rooms": 6
      }
    ]
                            

Returns information about the exhibitions. Can be filtered on cgCustomerId, startdate and/or enddate.

Site Statistics

  • URL: https://api.citygate.se/statistics/adverts/?fromdate={string}&todate={string}&apiKey={guid}
  • Parameters:
    • apiKey: (required) The unique guid given to you.
    • fromdate: (required) The startdate of the period to get statistics for, format YYYY-MM-DD
    • todate: (required) The enddate of the period to get statistics for, format YYYY-MM-DD
  • Method: GET
  • Accept: application/json
  • Response:
    {
       "FromDate":"2016-10-01",
       "ToDate":"2016-11-01",
       "Records":[
          {
             "Group":"Promedia",
             "Newspaper":"Avesta Tidning",
             "Package":"Avesta Tidning",
             "Revenue":5067.00,
             "Volume":44,
             "Homepage":"familj.avestatidning.se",
             "Portal":"Familj"
          },
          {
             "Group":"Promedia",
             "Newspaper":"Avesta Tidning",
             "Package":"Avesta Tidning",
             "Revenue":2180.00,
             "Volume":48,
             "Homepage":"avestatidning.lokus.se",
             "Portal":"Lokus"
          },
          {
             "Group":"Promedia",
             "Newspaper":"Avesta Tidning",
             "Package":"Avesta Tidning",
             "Revenue":940.00,
             "Volume":4,
             "Homepage":"Ingen webbpublicering",
             "Portal":"Övrigt & Radannons"
          },
          {
             "Group":"Gota Media",
             "Newspaper":"Barometern",
             "Package":"Barometern-Ot",
             "Revenue":56314.00,
             "Volume":288,
             "Homepage":"familj.barometern.se",
             "Portal":"Familj"
          }
       ]
    }
    

Returns statistics (income and number of adverts per site and category) for a given period of time.