open the api file. at the beginning there is a timestamp of the last update
Pinned OGame API
-
-
im sorry but im not familiar with xml nor know how to read it
trying doing a bit of research but came to nthn.
so can someone just tell me what it is?
this is the api: s101-en.ogame.gameforge.com/api/universe.xml
timestamp="1429616557"
and does it update same time every week?
thank you -
you can convert the timestamp to a date for example on onlineconversion.com/unix_time.htm
your timestamp corresponds to this date : Tue, 21 Apr 2015 11:42:37 GMT .
the update interval should be exactly 7 days so the next api update should be around 28th of april, 11:42 GMT. -
Like Dark Sky says it should be update every week at te same time.
In my experience that's never the case, my tool checks the Last-Modified date of the file every time and waits for it to change.
Wherefore would you like to use this? -
you mean universe view? (i have it already)
and yes lately they showed me the "Update Galaxy" notification
i have them all, but im tracking a few players that relocated, and i wanna know EXACTLY when i can reliably pinpoint their planet locations.
i prefer to Ctrl+F on the api page
do it manually old style xD -
There is no fixed timestamp for an Update.
The condition is, that you have to wat at least 7 days for an update.
If that 7 day countdown is complete, the api will get updated with the first request that is done on the xml file.
So the time that is nearest to the "exact" update point is -> existing timestamp + 7 days. -
Hi, i tried to request the API page from my site topraider.
I got this error :
XMLHttpRequest cannot load s123-fr.ogame.gameforge.com/api/players.xml. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://topraider.eu' is therefore not allowed access.
Do I need an authorisation ??
Or did i something wrong ?
Display Spoiler Source Code
- function loadXMLDoc(url,cfunc)
- {
- if (window.XMLHttpRequest)
- {// code for IE7+, Firefox, Chrome, Opera, Safari
- xmlhttp=new XMLHttpRequest();
- }
- else
- {// code for IE6, IE5
- xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
- }
- xmlhttp.onreadystatechange=cfunc;
- xmlhttp.open("GET",url,true);
- xmlhttp.send();
- }
- loadXMLDoc("http://s123-fr.ogame.gameforge.com/api/players.xml",function()
- {
- if (xmlhttp.readyState==4 && xmlhttp.status==200)
- {
- document.getElementById("api").innerHTML=xmlhttp.responseText;
- }
- });
-
No you didn't do anything wrong
That's normal and I think OGame won't change that.
When requesting certain files from other domains via XHR they'll return this CROS origin error.
Some sort of safety issue.
You should be able to solve this by using a proxy page on your website, haven't tried it but it could work.
Example:
You request a PHP script on your site which gets the OGame API via cURL and returns that data. -
you must request with PHP , not JS
-
-
Hi!
Since 6.x.x is rolled out, have there been changes to the API? Handy to know for a project I'm planning on creating.
Thanks for your response in advance!
Sincerely,
Dagor -
-
vulca wrote:
CR/harverst/spy/missile
for CR $path ='combat/report';
for spy $path ='spy/report'; ?
if yes, why the result 6001? -
Asiman wrote:
vulca wrote:
CR/harverst/spy/missile
for CR $path ='combat/report';
for spy $path ='spy/report'; ?
if yes, why the result 6001?
DevLaTron wrote:
INVALID_CR_ID = 6000;
INVALID_SR_ID = 6001;
INVALID_MR_ID = 6003;
Endpoints:
So 6001 shows you that the supplied espionage report key is wrong.OGame Tech -
why the sr-ru-111-5e1d08c25cc5aba3f741aff6afd564e322e30feb is wrong?
-
-
CR API :
s[SERVER]-[COUNTRY].ogame.gameforge.com/api/v1/combat/report?api_key=[DEV_API]&cr_id=[API_KEY]
Espi API :
s[SERVER]-[COUNTRY].ogame.gameforge.com/api/v1/spy/report?api_key=[DEV_API]&sr_id=[API_KEY]
Harverst API :
s[SERVER]-[COUNTRY].ogame.gameforge.com/api/v1/recycle/report?api_key=[DEV_API]&rr_id=[API_KEY]
Missile API :
s[SERVER]-[COUNTRY].ogame.gameforge.com/api/v1/missile/report?api_key=[DEV_API]&mr_id=[API_KEY]
All are working fine
(exepte a little bug on the number of IPM sent :D) -
vulca wrote:
&sr_id=[API_KEY]
I realized, thanks to all -
vulca wrote:
CR API :
s[SERVER]-[COUNTRY].ogame.gameforge.com/api/v1/combat/report?api_key=[DEV_API]&cr_id=[API_KEY]
Espi API :
s[SERVER]-[COUNTRY].ogame.gameforge.com/api/v1/spy/report?api_key=[DEV_API]&sr_id=[API_KEY]
Harverst API :
s[SERVER]-[COUNTRY].ogame.gameforge.com/api/v1/recycle/report?api_key=[DEV_API]&rr_id=[API_KEY]
Missile API :
s[SERVER]-[COUNTRY].ogame.gameforge.com/api/v1/missile/report?api_key=[DEV_API]&mr_id=[API_KEY]
All are working fine
(exepte a little bug on the number of IPM sent :D)
Hello,
can you tel me how can I get [DEV_API] for update of OGST CR converter ?
edit: a find thread -
Pseudosansinteret wrote:
Hello,
I m thinking make a tool for exploit ogame API and i have some questions :
1) There is a list of all ogame community ? Like en,de,fr ...
2) About universes.xml, why not make a xml who regroup all server from all community ?
Like :
fr
server1 ...
server2 ...
en
server1 ...
server2 ...
.....
3) What is the champs "bonusFields" in serverData.xml ?
I gonna have lot question again later
Thanx for help.
Here I have created list of all communities and servers using python.
git.io/voT1Z
-
Share
- Facebook 0
- Twitter 0
- Google Plus 0
- Reddit 0
-
Users Online 4
4 Guests