NOTE: User must be logged in as admin to access this API

URL : v3/api/admin/language-list

Method : GET

Query Parameters :

Parameter Type Possible Values Required/Optional Description
sort-field String language, native_name, iso_code Optional Field name to sort
sort-order String asc, desc Optional Sorting order either ascending or descending
search-query String Optional Keyword to be searched in language list page from iso_code, native_name or language columns.
limit Integer Optional Number of records to be displayed in each page
page Integer Optional Page number

Success Response:

{
    "success": true,
    "data": {
        "current_page": 1,
        "data": [
            {
                "id": "ar",
                "language": " Arabic",
                "language_name": "Arabic",
                "native_name": "العربية",
                "iso_code": "ar",
                "system_default_language": false
            },
            {
                "id": "de",
                "language": " German",
                "language_name": "German",
                "native_name": "Deutsch",
                "iso_code": "de",
                "system_default_language": false
            },
            {
                "id": "en",
                "language": " English  - United States",
                "language_name": "English  - United States",
                "native_name": "English",
                "iso_code": "en",
                "system_default_language": true
            },
            {
                "id": "en-gb",
                "language": " English - United Kingdom",
                "language_name": "English - United Kingdom",
                "native_name": "English",
                "iso_code": "en-gb",
                "system_default_language": false
            },
            {
                "id": "es",
                "language": " Spanish",
                "language_name": "Spanish",
                "native_name": "Español",
                "iso_code": "es",
                "system_default_language": false
            },
            {
                "id": "fr",
                "language": " French",
                "language_name": "French",
                "native_name": "français",
                "iso_code": "fr",
                "system_default_language": false
            },
            {
                "id": "id",
                "language": " Indonesian",
                "language_name": "Indonesian",
                "native_name": "Bahasa Indonesia",
                "iso_code": "id",
                "system_default_language": false
            },
            {
                "id": "it",
                "language": " Italian",
                "language_name": "Italian",
                "native_name": "Italiano",
                "iso_code": "it",
                "system_default_language": false
            },
            {
                "id": "nl",
                "language": " Dutch",
                "language_name": "Dutch",
                "native_name": "Vlaams",
                "iso_code": "nl",
                "system_default_language": false
            },
            {
                "id": "no",
                "language": " Norwegian",
                "language_name": "Norwegian",
                "native_name": "Norsk",
                "iso_code": "no",
                "system_default_language": false
            }
        ],
        "first_page_url": "http://localhost/faveo/public/get-languages?page=1",
        "from": 1,
        "last_page": 2,
        "last_page_url": "http://localhost/faveo/public/get-languages?page=2",
        "next_page_url": "http://localhost/faveo/public/get-languages?page=2",
        "path": "http://localhost/faveo/public/get-languages",
        "per_page": 10,
        "prev_page_url": null,
        "to": 10,
        "total": 14
    }
}

Leave a Reply

Your email address will not be published.