Here’s an example medium publication link:
https://medium.com/the-story
Based on that link, the Medium publication ID is the-story
If you’re trying the user posts, for example:
https://medium.com/@MikeDalisay
Based on that link, the User ID is @MikeDalisay