Cookie consent

AstroBin saves small pieces of text information (cookies) on your device in order to deliver better content and for statistical purposes. You can disable the usage of cookies by changing the settings of your browser. By browsing AstroBin without changing the browser settings, you grant us permission to store that information on your device.

I agree

AstroBin API Request

astropical
14 Oct, 2019 12:19
Ciao Salvatore,

Would it be possible to get the following information in JSON against an API key, member name, such
http://astrobin.com/api/v1/.../?member=astropical&api_key=123456790&api_secret=0987654321&format=json

1. # of images
2. Total # of likes
3. # of followers
4. # of following
5. # of notifications
6. # of forum posts
7. member since [in days]
8. account type
9. expiration date

Only if it does not cause too much trouble and in case I'm not the only one asking :-)

Mille gracie,
Robert
siovene
14 Oct, 2019 15:48
Hi Robert,
yes, I can do this. Stay tuned for an update here!
siovene
15 Oct, 2019 10:46
Hi Robert, it's done! Check API docs for how to query.
astropical
15 Oct, 2019 10:54
Bellisimo! That's what I call quick action.
Just requested an API key and will try it when received.  smile
astropical
15 Oct, 2019 11:05
astropical
Bellisimo! That's what I call quick action.Just requested an API key and will try it when received.  smile

The API key just came in at the speed of light. The JSON data is "perfetto"!
Thanks a ton for your time, Salvatore.
Cheers
Robert
astropical
15 Oct, 2019 11:53
astropical
The API key just came in at the speed of light. The JSON data is "perfetto"!Thanks a ton for your time, Salvatore.
Cheers
Robert
Sorry, Salvatore,
CORS, Access-Control-Allow-Origin not set.
siovene
15 Oct, 2019 11:57
Only use GET requests, not POST. The API is read only.
astropical
16 Oct, 2019 11:52
Salvatore Iovene
Only use GET requests, not POST. The API is read only.

That's fine, Salvatore, I used PHP:
$json = file_get_contents($url);
$arr = json_decode($json, true);
https://www.astropical.space/index.php

$.ajax(), $.get(), $.getJSON() complain about Cross-Origin
 
Register or login to create to post a reply.