You are not logged in.

#1 2022-05-24 18:00:42

Freed
Member
From: China
Registered: 2020-02-01
Posts: 56
Website

[Solved] Is there any json/xml/yaml api to get AUR user information?

I recently notice <https://shields.io/>, it allow user to customize a badge:

```
https://img.shields.io/badge/dynamic/js … x=<SUFFIX>
https://img.shields.io/badge/dynamic/xm … x=<SUFFIX>
https://img.shields.io/badge/dynamic/ya … x=<SUFFIX>
```

So, is there AUR exists any api like <https://codestats.net/api-docs> or <https://wakatime.com/developers/>? Such as:

```
GET /api/users/Freed HTTP/1.1

{
"Username":     "Freed",
"Account Type":     "User",
"Real Name":     "wzy",
"Homepage":     "https://freed-wu.github.io",
"IRC Nick":     "wzy",
Status:     "Active",
"Registration date":     "2022-03-02 (CST)",
"Last Login":     "2022-05-25 (CST)",
"package number": 13,
"packages": {...}
}
```

Then user can use

```
[![aur](https://img.shields.io/badge/dynamic/js … reed&SeB=m)
```

In their `README.md`

Last edited by Freed (2022-10-27 13:34:26)


An adherent of hacker culture and open source.

Offline

#2 2022-05-24 18:13:28

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,412
Website

Re: [Solved] Is there any json/xml/yaml api to get AUR user information?

No - the information is not public in the first place. There is only a list of AUR users: https://aur.archlinux.org/users.gz


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#3 2022-05-24 18:14:39

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: [Solved] Is there any json/xml/yaml api to get AUR user information?

There's the AUR RPC which provides information for packages which can be searched by the maintainer user name.  I don't believe you can retrieve user information, though based on your description, I'm not sure why you'd want user information - if you want to pick a "shield" to display on an upstream source repo page, then you'd only need to request information for that package, not for a give user.

EDIT: Alad, what do you mean that information is not "public"?  I am not aware of a JSON API for it, but it is readily displayed openly on the web, how is that not public?  E.g., here's yours:
https://aur.archlinux.org/account/Alad

Last edited by Trilby (2022-05-24 18:17:02)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

#4 2022-05-24 18:21:50

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,412
Website

Re: [Solved] Is there any json/xml/yaml api to get AUR user information?

EDIT: Alad, what do you mean that information is not "public"?  I am not aware of a JSON API for it, but it is readily displayed openly on the web, how is that not public?  E.g., here's yours:
https://aur.archlinux.org/account/Alad

Well, you have to login to view it. I am currently not logged in, so I get:

You must log in to view user information.

Last edited by Alad (2022-05-24 18:22:02)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#5 2022-05-24 18:26:39

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: [Solved] Is there any json/xml/yaml api to get AUR user information?

Ah, that makes sense - thanks.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

Board footer

Powered by FluxBB