Closed SiddharthRana closed 6 months ago
Can you point what endpoint you're referring to?
https://countriesnow.space/api/v0.1/countries/info?returns=name,flag,capital
I cant get the capital using api like this. I want to get only 3 informations i.e. name, flag and capital. Can i do that?
Hi @SiddharthRana, You can already get name
and flag
by making a get request to the endpoint and passing both params. However, we didn't have support to query capital, but I have opened a merge request to fix that. You should now be able to get the capital by also passing the capital
query param.
/info?returns=name,flag,capital
How can we get country name, capital and flag in the response. capital query is not working on filter. Could you please help?