Hi Brydon,
Your approach seems to be valid.
You can get an overview of works and all citations from a specific journal per year as follows:
For this journal example, OpenAlex may not go beyond a certain publication year..
To get the self-citations in works in this journal:
Get all OA-IDs for works published in this journal in the year 2022:
Then loop over each work to get the citations and filter them on the same journal:
https : // api . openalex . org/works?filter = cites : W1234567890 , locations . source . issn : 1097 - 0266
Note the number of citations >> number of self-citations for this example.
Even in the case of finding self-citations by an author e.g. A12134567890, you have to loop over all works by that author:
Unless there is a simpler way to get self-citations from the REST API, this may be it.
Cheers,
Dave