Openweathermap don't work for some countries? - openweathermap

I'm using json API data from openweathermap to get info about specific city.
It was working fine few days ago, and now for some reason every city marked with country code "RS" which is for Serbia, can't work.
http://api.openweathermap.org/data/2.5/weather?q=Belgrade,rs&APPID=MYAPI&units=metric&lang=hr
If I'm using cities in other countries, for example this, it's working:
http://api.openweathermap.org/data/2.5/weather?q=Zagreb,hr&APPID=MYAPI&units=metric&lang=hr
Not really sure what's the difference here, and why "RS" country code isn't working?
Any suggestions?

This is the bug in their API, I got response from their support that they're working on it.

Related

Update to flight inspiration API: Is only the JSON response changing? Query unchanged?

I got an email today about upcoming changes to the Flight Inspiration and Flight Destination searches. It sounds as if the JSON response will now be more granular with results showing specific airports. But I am unclear about whether I have to change my POST requests to use airport codes. Will requests continue to be city codes, or now only airport code requests, or are both acceptable? Again, from the linked blog post, it sounds as if only the response is changing, but API POST requests will remain the same, i.e., city codes. Can someone confirm that?
At this new version, the Flight Inspiration Search and Flight Cheapest Date APIs will still accept city code as input but will return airport codes at the destination field rather than city codes. Thus you won't have to change anything in the query parameter of the APIs.

How to use {loc_physical_ms} to get city and ZIP code on your website?

So I have a client that wants to do a Google Ad campaign for certain locations. From what we gathered, you can set up location of interest and pass on a parameter {loc_physical_ms} that can be used to get some details based on that ID. My question is, how do I access that info? Is it by using an API? I did looked at the reference here:
https://developers.google.com/adwords/api/docs/appendix/geotargeting
But it is not explained how I can use that ID on my website to get something like the ZIP code and city of the click. I been looking around, but to no avail. Any suggestion is welcome.
Thanks in advance!
Ok, found the solution. So for anyone that may come across this, that link I have above provides you with a CSV with the latest Geo Target list. I was under the impression that Google would provide an API for us to use, but that is not the case here. You will have to import that data into your database, and then use it from there. So once you have that data in your database, you can then just make a query that will use the ID from the parameter {loc_physical_ms} from the database as reference for your query.

Google Places autocomplete API not returning postal codes

I have been googling this for hours and I have not found a solution. When I call:
"https://maps.googleapis.com/maps/api/place/autocomplete/json?input="+WebUtility.UrlEncode(MYADDRESSSPEC)+"&key="+MYAPIKEY;
I get things like:
123 Main St, Somewhere, Ohio United States
123 Main St, Somewhere Else, Indiana, United States
I've looked at the optional arguments and I cannot find one for ZIP/postal code. I noticed the textsearch API does return ZIP codes. I could run it through autocomplete as someone is typing the address and THEN run each result through the textsearch API but I want to accomplish this in just ONE web service call. Does anyone know how?
Thanks in advance!
I don't think the autocomplete API supports returning postcodes in the predictions array. Your best bet (albeit cumbersome) is to do the autocomplete query and run a details query for each of the place_id entries returned.
You can add the type=(regions) filter to the url (as query param) and then you can search on postal codes. It is not completely fine because it still can't find all the postal codes I think. But this might be what you need.

Why api.fixer.io doesn't showing list of all currencies?

I'm trying to access this API https://api.fixer.io/latest?base=USD but I have noticed that, it showing only 31 countries currency and I want all.
I googled it but doesn't getting any answer for this API.
Below is the response :
{"base":"USD","date":"2017-06-23","rates":{"AUD":1.3214,"BGN":1.7505,"BRL":3.3378,"CAD":1.3231,"CHF":0.97118,"CNY":6.8391,"CZK":23.536,"DKK":6.6564,"GBP":0.78587,"HKD":7.7998,"HRK":6.6258,"HUF":276.68,"IDR":13305.0,"ILS":3.5418,"INR":64.532,"JPY":111.3,"KRW":1137.7,"MXN":18.045,"MYR":4.288,"NOK":8.468,"NZD":1.3734,"PHP":50.226,"PLN":3.7877,"RON":4.0916,"RUB":59.669,"SEK":8.7443,"SGD":1.3869,"THB":33.945,"TRY":3.5116,"ZAR":12.936,"EUR":0.89501}}
I have made a currency converter app using that API and I don't know about any better resource for that.
I think it provides limited currencies because fixer gets it's data from European central bank, which only provides those particular currencies.
check here:
https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html

Get total count of tweets from a API search result?

Hello Guy's I'm trying to count all of the tweets from a Twitter search API response, anyone got any ideas?
Everything I tried doesn't seem to work, I'm doing everything with jSON so my best guess is get the max_id and subtract the id from the first item in the object. But I think that's not giving me a correct number.
I'm guessing you can't do that: the twitter api docs don't show anything and you can see Count number of results for a particular word on Twitter for more detail.