Get Customer by Rest API using V1/customers/:customerId in Magento 2.

Get Customer Data REST API from the customer id using V1/customers/:customerId  endpoint in Magento 2.

V1/customers/:customerId Used to Retrieve Customer Details in Magento by Customer Id.

Action: GET

URL: <URL>/rest/default/V1/customers/me/:customerId
(Example, http://magento.docker/rest/default/V1/customers/me/10)

Authorization: Bearer <ADMIN_TOKEN>
You have to pass admin token detail as HEADER Authorization from the link, Generate Admin token Rest API


Using the above way, You can get customer data with REST API.