!link!: Mikrotik Api Examples
While it lacks the polish of Meraki or the standardization of NETCONF/YANG, it offers granular control that few other platforms can match. If you are willing to roll up your sleeves and write code, you can automate literally anything on a MikroTik router.
def update_cloudflare(ip): url = f"https://api.cloudflare.com/client/v4/zones/CLOUDFLARE_ZONE/dns_records/CLOUDFLARE_RECORD" headers = 'Authorization': f'Bearer CLOUDFLARE_TOKEN', 'Content-Type': 'application/json' data = 'type': 'A', 'name': 'dynamic.example.com', 'content': ip, 'ttl': 120 requests.put(url, headers=headers, json=data) mikrotik api examples