Open Categories URL With an ID


I need to open my categories and Taxonomy with an ID in url just like the post with IDs (

is there anyway to to open the category or taxonomy like same.

I tired or

On category page its showing me the full archive with all posts from the categories and on custom taxonomy its showing error 404.

My concept is simple, i am making a data.xml file for autocomplete function but the issue is it will be last if the urls are like this

and it will save my file it can be done by this

Any help?