Alexa Country Code "0" - alexa

I'm using Alexa to get Top Country and Top Country Percent. One of the country codes I'm getting back is "0" and I don't see any documentation for what this is. When I spot-check individual sites so far I've either found that the country with the most traffic is either unknown or US. Anyone have any ideas on what "0" means as a response?

Related

Trying to obtain specific data from an API with different ID's but nothing logs to the console

I'm trying to access data from an API that has 10 different ID's (1 - 10) with each ID containing bits of mock information for a client. The base URL is
https://europe-west2-mpx-tools-internal.cloudfunctions.net/frontend-mock-api/clients
Adding the {clientId} to the end of the URL return the last 30 days of data for a specific client for instance: https://europe-west2-mpx-tools-internal.cloudfunctions.net/frontend-mock-api/clients/1 returns data like so:
But when I try to console.log data containing the (date, cost, impressions, clicks, conversions), nothing appears, I'm not getting an error
Here's my code from both files:
I'm essentially wondering how best to ensure I'm able to access the specific bits of data for each day and for each client from 1 - 10.
I'm not getting an error but believe I'm going wrong somewhere if anyone can help.
Thanks in advance and sorry if I've missed key info that's needed as I'm still learning!

Simple query at App Engine Search not working

I have the following data inside an index at Search API. The name and slug fields are TextFields.
Document Id name slug
5946158883012608 Configurations configurations
4820258976169984 Customers customers
6227633859723264 Sites sites
I'm trying a lot of options of querystrings and can't get the right row.
My last tries:
index.search('config')
index.search('~config')
index.search('name:~config')
index.search('slug:~config')
If I try: index.search('customers') I receive one row. But if a remove the last s, then I receive no row.
Can someone please explain me why?
Regards,
Armando

resultSizeEstimate is completely wrong

I've got a problem with the Gmail API and the resultSizeEstimate field of the messages.list method.
The value is completely wrong : if I query all of the messages of INBOX using https://www.googleapis.com/gmail/v1/users/me/messages?labelIds=INBOX, I got a resultSizeEstimate of 51, even if I can fetch more than 51 messages at once with maxResults.
The thing is that I've got more than 8k messages in my inbox, if I look in the Gmail GUI or using the labels.get.messagesTotal field.
That's not a problem if I want to have the total number of messages in a label since labels.get works fine, but how can I do to have the total number of messages of a specific query ? If I add a &q=... to my messages.list request, I still have a value of max results around 50, which is obviously wrong.
Thanks !
resultSizeEstimate is just that, an estimate. You should probably not use it if it has to be a very close estimate.
You can't get the total amount of results of a query. You have to list until there is no nextPageToken in the response. Then you know you have gotten every result of the query.

Getting Alexa CategoryListings by Country

From what I've understood about Alexa's CategoryListings action ( see this for more info ( check API Reference/Actions/CategoryListings )), Alexa basically scrapes DMOZ
for websites in specific categories and then checks the ranking in it's database ( if you choose to sorty by 'Popularity' ).
This makes sense to me and works fine, but two questions arise:
Does Alexa support ordering by Popularity but Country-specific ( e.g. stackoverflow.com ranks 56 in the world, but 13 in India )
If it doesn't, why? I mean, if my assumptions that they have to scrape DMOZ is correct, it doesn't seem like too much to add country ranking as well. I could, of course, get the global rank of some category sites and then query each site for specific country but I'd have to pay additionally for that. Is the reason behind this financial or technical?
I currently need the answer to only the first question, since it's essential to the thing I'm doing. The second question is out of sheer curiosity.
To answer my question:
No, this is not possible (at least to this date) to do this. What I did was get the list of global sites by popularity and then filtered out top 1000 by querying each of them and getting it's rank in a specific country.

Screening stocks using Yahoo Finance API (YQL)

i am trying to roll my own stock screener using the Yahoo Finance API.
While it is easy to get a heap of data (via XML or JSON) by providing the ticker symbol:
SELECT * FROM yahoo.finance.quotes WHERE symbol="RBS.L"
(See the results here and click 'test').
I am struggling to find a way to find stocks which match a certain set of criteria. For instance, say I want to grab a list of stocks whose Bid price is greater than 20
SELECT symbol FROM yahoo.finance.quotes WHERE Bid > 20.00
The query fails, with the following message:
Cannot find required keys in where clause; got 'Bid', expecting required keys: (symbol)
as can be seen here.
Is what I am trying to do possible? Is there a way to write the query string to get what I am looking for? Or is there a much simpler service out there that can help me out.
Would appreciate any help you guys can give me.

Resources