Retrieving a List of Browser Languages

Document created by pubmatic-archivist on Mar 27, 2017Last modified by catherine.racette on Jun 5, 2017
Version 3Show Document
  • View in full screen mode

Overview

This API allows you to retrieve the list of browser languages present in the PubMatic system.

Request

         

URIhttp://{domainName}/common/browserlanguage?dimensions=id,name&sort=id,name
HTTP MethodGET

Request Headers

                 

Header NameTypeValueRequiredDescription
AuthorizationStringBearer ${access_token}YesNeed to send the access token generating for authentication at the place of ${access_token}.
For more information about access tokens, refer to Getting Started with PubMatic APIs.

Response

Response Body Parameters

                  

Parameter NameTypeDescription
idInteger
Unique ID of the browser language.
nameString
Name of the browser language.

 

Sample Response JSON

{

           "metaData": {

                           "startIndex": 1,

                           "totalRecords": 121,

                           "endIndex": 100

           },

           "items": [{

                           "id": 1,

                           "name": "Afrikaans"

                }, {

                                "id": 2,

                                "name": "Aragonese"

                }, {

                                "id": 3,

                                "name": "Arabic"

                }, {

                                "id": 4,

                                "name": "Assamese"

                }, {

                                "id": 5,

                                "name": "Asturian"

                }, {

                                "id": 6,

                                "name": "Azerbaijani"

                }, {

                                "id": 7,

                                "name": "Belarusian"

                }, {

                                "id": 8,

                                "name": "Bulgarian"

                }, {

                                "id": 9,

                                "name": "Bengali"

                }]

}

Error Codes

[
 {
   "errorCode": "CC03_0004",
   "error": "Resource not found"
 }
]

Attachments

    Outcomes