So my problem is pretty niche so I'm not sure it will have an answer from the community, but I guess it's worth a try cause I'm hitting a wall. I am trying to call an 8x8 api and getting results, but for some reason. I'm only getting a portion of what should be there. I have these variables X-Page: 9
X-Total-Pages: 38
X-Total-Elements: 37463
and my url is like this
"https://api.8x8.com/analytics/cc/v5/historical-metrics/3511365/data?page=9&size=1000" but when I switch it to page=10 I immediately get this error
"Bad request: Field 'page' must be greater than or equal to 0 and less than the total number of pages, which is 0 for this request"
It doesn't seem to make sense because based on the variables I should have 38 total pages to work with. I've been trying to search but I haven't seen anyone else have a similar issue.
It seems like the issue I'm having is relative to the report I'm trying to pull. Cause the other reports I ran worked. So I don't think it's a problem with my code or postman at all, seems like 8x8 issue. I opened a ticket to investigate.
Related
I've tried using the continuation token, but it stops about 10 days back. The size is limited to 1000 per page. Since I couldn't get all activities, I was going to get all collections, and try to get all activities of each collection. When I tried to get all collections, the continuation token only allowed me to get back 2 pages of 1000, so only returned 2000 collections. Could the api not be functioning correctly right now? I've never scraped data like this, but have tried many configurations of the url. I've tried asking in the Rarible protocol discord, but no one would respond. I also tried Reddit, and the same happened. Maybe I'm doing something foolish? If someone could just help point me in the right direction, I'm at my wits end. Thanks.
here's a link to the api: https://api.rarible.org/v0.1/doc#operation/getAllCollections
Edit: maybe someone could try something similar, just as a sanity check or something, I don't know
I'm doing a CTF activity that I have been working on for the past week and I cannot seem to figure out what is going wrong. To break it down it goes something like this:
It is an application that consist of 3 tabs, "Balances", "Transactions", and "Payments"
Everytime you click on one of those tabs, information is displayed which comes from an API.
But the API call for "Balances" is broken, when it is requested, nothing shows up under the Balance tab and it returns a 404 resource not found error.
So far I've used cURL to try and talk to the API through that and made sure there was no errors in the spelling of the requested site but still no luck.
I would appreciate it if someone could guide me in the right direction or maybe suggest an approach to take instead of giving out what to do step for step which would be much appreciated :).
Edit: The API call is intentionally broken, the challenge is to figure out why it is broken and how to fix it.
Thanks!
kek just solved this very challenge.
Have you considered that the "Cyber Gang" (context of the challenge) may have changed the endpoint from balances to something else?
Considering that you get a 404 balance from curling get-balances, perhaps you could figure out a way to find other subdomains :)
Does anybody know where documentation for the Metacritic api is/if it still works. There used to be a Metacritic API at https://market.mashape.com/byroredux/metacritic-v2#get-user-details which disappeared today.
Otherwise I'm trying to scrape the site myself but keeping getting a blocked by a 429 Slow down. I got data like 3 times this hour and haven't been able to get anymore in the last 20 minutes which is making testing difficult and application possibly useless. Please let me know if there's anything else I can be doing to scape I don't know about.
I was using that API as well for an app I wrote a while ago. Looks like the creator removed it from Mashape. I just sent him an email to ask whether it'll be back up. I did find this scraper online. It only has a few endpoints but following the examples given you could easily add more. Let me know if you make any progress!
Edit: Looks like CBS requested it to be taken down. The ToS prohibits scraping:
[…] you agree not to do the following, or assist others to do the following:
Engage in unauthorized spidering, “scraping,” data mining or harvesting of Content, or use any other unauthorized automated means to gather data from or about the Services;
Though I was hoping for a Javascript way of doing this, the creator of the API also told me some info.
He says I was getting blocked for not having a User agent in the header and should use a 429 handling procedure i.e. re-request with longer pauses in between.
A PHP plugin available as well: http://datalinx.io/shop/metacritic-api/
I had to add a user agent like JCDJulian said and now it allows me to scrape. So for Ruby:
agent = Mechanize.new
agent.user_agent_alias = "Mac Firefox"
Then it stopped giving me the 403 Forbidden error.
I have an issue with my website http://www.kuhm.fr/ and the "+1" on all pages (like http://www.kuhm.fr/erreurs-communes/): when people click on "+1", the number increases, but if you refresh the page, the number is the same than before.
The worst : then the button is red (so Google see that the visitor plused) but his "+1" is not recorded.
It worked once (some monthes ago) but now it's over.
Shares (and +1 on shares) are ok, but not "+1" on the website.
Some idea to help me ?
Your page does have some issues that may or may not be the issue:
On your home page, you are incuding the Google+ JavaScript over and over again with each listed article. Only include the plusone.js file a single time on any page. At the very least, you'll improve performance from load time and from the DOM scanning that the script does.
On your article pages, you are also including the plusone.js file multiple times, but also in different manners, sometimes you're loading it asynchronously (desired) and other times its loaded synchronously (not efficient).
There appears to be a problem fetching the snippet from your page, for example, the thumbnail is broken and the script is returning a HTTP 500 internal server error. Check your pages with the Structured data testing tool. This could be a Google bug, but you should verify that your own code is correct too.
In my testing the +1's were getting recorded but sometimes the count of 1 was displayed and sometimes the count of 0 was displayed. It looks like a bug on Google's side so you should file a bug report.
I've been using Google Plus HTTP API for several weeks now and I'm experiencing a strange issue.
When I try to retrieve public activities from this community: https://plus.google.com/communities/115653528125420367824, I always get 4 results, no more. I've tried increasing the maxResult parameter of the request but it doesn't change anything...
And when I use the nextPageToken to retrieve the missing activities, the "items" field of the response is empty.
You can try it yourself with the Google APIs Explorer here: https://developers.google.com/apis-explorer/#p/plus/v1/plus.activities.list?userId=115653528125420367824&collection=public you will see that only 4 activites are returned and the next page of result is empty.
This is really strange and happened recently, it used to work fine. Maybe it is caused by the fact that the content of some activities of this community contains a stringified JSON object. What do you think?
The activities methods are only supported for retrieving posts by users and Google+ Pages. They are not supported for use with Communities and should not be expected to work correctly. There is definitely no guarantee that this behavior while it might have worked or currently works in some cases today will continue to work in the future.