Page tree


Before using PubMatic APIs, first generate the API Token. For more information, refer to  Getting Started with PubMatic APIs

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
idIntegerUnique ID of the browser language.
nameStringName 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"
 }
]