I’m going to show you how you can get an Instagram user ID by username using AccentAPI.
Endpoint:
GET https://api.accentapi.com/v1/instagram-profile?username=oracle&private_key=YOUR_PRIVATE_KEY
Example response (click to enlarge):

Parameters:
username
On the example URL above, we are using “oracle” as the username. You can change this to anything you want, depending on your project.
private_key
You need to subscribe to our service to get your own private API key.
Pricing
Subscribe to our service for only $50/month. Pay using this link. Once payment is complete, within 24 hours, we will send the API access with 10,000 requests per month. If you need more than 10,000 requests per month, please reach out to support here.