So, I want to use the Instagram API to get information about the last media of a specific user (NOT MY USER). For this, Instagram has the following endpoint:
(GET) https://api.instagram.com/v1/users/{user-id}/media/recent/?access_token=ACCESS-TOKEN
This is a problem because I do not have a user ID (why me, Instagram?). I do have an account username (like most people), for example. @thisisauser.
I read the API docs and I cannot find the endpoint that will give me the user id for a specific account username. I mean, yes, there are:
(GET) https:
... but he does not fulfill what I need in order to search for an exact match.
I also checked other threads in Qaru and other websites. However, the proposed alternative solutions are dubious at best.
I am surprised by the fact that all this is really relevant. I mean SURELY is a legal, Instagram approved, accurate and easy way:
- getting the latest user media by providing an account username (this is what people know about you ... not about sequence numbers)
OR
- Obtaining a user ID using an exact match search without any likely results.
FYI: I am doing this server side using PHP and cURL.
. API, , , . , Instagram .