Hi,
You can use the following AT command to obtain APN information:
You can cut the output to return only the APN name:
- gsmctl -A AT+CGDCONT? | cut -d '""' -f4 | head -n1
As an option, you can find APN information via ubus command:
- ubus call gsm.modem0 get_pdp_ctx_list | grep apn
An example of JSON-RPC:

Kind Regards,
Andzej