pybliometrics.scopus.SerialTitleISSN¶
SerialTitleISSN() implements the issn endpoint of the Serial Title API. It offers basic information on registered serials (also known as sources), including publisher details, identifiers, and various metrics.
Documentation¶
- class pybliometrics.scopus.SerialTitleISSN(issn, refresh=False, view='ENHANCED', years=None, **kwds)[source]¶
Interaction with the ISSN endpoint of the Serial Title API. Class retrieves data from both Scopus and ScienceDirect.
- Parameters:
issn (
int|str) – The ISSN or the E-ISSN of the source.refresh (
bool|int, optional) – Whether to refresh the cached file if it exists or not. If int is passed, cached file will be refreshed if the number of days since last modification exceeds that value.Default:Falseview (
str, optional) – The view of the file that should be downloaded. Allowed values: STANDARD, ENHANCED, CITESCORE. For details see https://dev.elsevier.com/sc_serial_title_views.html.Default:'ENHANCED'years (
str|None, optional) – A string specifying a year or range of years (combining two years with a hyphen) for which yearly metric data (SJR, SNIP, yearly-data) should be looked up for. If None, only the most recent metric data values are provided. Note: If not None, refresh will always be True.Default:Nonekwds (
str) – Keywords passed on as query parameters. Must contain fields and values mentioned in the API specification at https://dev.elsevier.com/documentation/SerialTitleAPI.wadl.- Raises:
ValueError – If any of the parameters refresh or view is not one of the allowed values.
Notes
The directory for cached results is {path}/{view}/{source_id}, where path is specified in your configuration file.
- property aggregation_type: str¶
The type of the source.
- property citescoreyearinfolist: list[Citescoreinfolist] | None¶
(year citescore) or (when view=”CITESCORE”) (year citescore status documentcount citationcount percentcited rank). rank is None or a named tuple of the form (subjectcode rank percentile).
For more information see the [CiteScore documentation](https://service.elsevier.com/app/answers/detail/a_id/14880/supporthub/scopus/).
- Type:
A list of named tuples of the form
- property eissn: str | None¶
The electronic ISSN of the source.
- property issn: str | None¶
The ISSN of the source.
- property oaallowsauthorpaid: str | None¶
Whether under the Open-Access policy authors are allowed to pay.
- property openaccess: int | None¶
Open Access status (0 or 1).
- property openaccessstartdate¶
Starting availability date.
- property openaccesstype: str | None¶
Open Archive status (full or partial).
- property openaccessarticle: bool | None¶
Open Access status.
- property openarchivearticle: bool | None¶
Open Archive status.
- property openaccesssponsorname: str | None¶
The name of the Open Access sponsor.
- property openaccesssponsortype: str | None¶
The type of the Open Access sponsor.
- property openaccessuserlicense: str | None¶
The User license.
- property publisher: str¶
The publisher of the source.
- property scopus_source_link: str¶
URL to info site on scopus.com.
- property self_link: str¶
URL to the source’s API page.
- property sjrlist: list[tuple[int, float]] | None¶
The SCImago Journal Rank (SJR) indicator as list of tuples in the form (year, indicator). See https://www.scimagojr.com/journalrank.php.
- property sniplist: list[tuple[int, float]] | None¶
The Source-Normalized Impact per Paper (SNIP) as list of tuples in the form (year, indicator). See https://blog.scopus.com/posts/journal-metrics-in-scopus-source-normalized-impact-per-paper-snip.
- property source_id: int¶
The Scopus ID of the source.
- property subject_area: list[Subjectarea] | None¶
List of named tuples of subject areas in the form (area, abbreviation, code) of the source.
- property title: str¶
The title of the source.
- property yearly_data: list[Yearlydata] | None¶
Yearly citation information as a list of Yearlydata in the form (year, publicationcount, revpercent, zerocitessce, zerocitespercentsce, citecountsce). That’s the number of documents published in this year, the share of review articles thereof, the number and share of not-cited documents, and the number of distinct documents that were cited in this year.
- get_cache_file_age()¶
Return the age of the cached file in days.
- Return type:
int
- get_cache_file_mdate()¶
Return the modification date of the cached file.
- Return type:
str
- get_key_remaining_quota()¶
Return number of remaining requests for the current key and the current API (relative on last actual request).
- Return type:
str | None
- get_key_reset_time()¶
Return time when current key is reset (relative on last actual request).
- Return type:
str | None
Examples¶
You initialize the class with an ISSN or an E-ISSN (works with and without hyphen, but leading zeros are mandatory):
>>> import pybliometrics >>> from pybliometrics.scopus import SerialTitleISSN >>> pybliometrics.scopus.init() >>> source = SerialTitleISSN("00368075")
You can obtain basic information just by printing the object:
>>> print(source) 'Science', journal published by 'American Association for the Advancement of Science', is active in Multidisciplinary Metrics as of 2024-05-11: SJR: year value 2022 13.328 SNIP: year value 2022 7.729 ISSN: 0036-8075, E-ISSN: 1095-9203, Scopus ID: 23571
The object has a number of attributes but no methods. For example, information regarding the source itself:
>>> source.title 'Science' >>> source.publisher 'American Association for the Advancement of Science' >>> source.issn '0036-8075' >>> source.eissn '1095-9203' >>> source.source_id 23571
Crucially, it provides three metrics: CiteScore, SCImago Journal Rank indicator), and Source Normalized Impact Factor (SNIP). This information is presented in lists of two-element tuples, with the first element indicating the year of metric evaluation.
>>> source.citescoreyearinfolist [Citescoreinfolist(year=2022, citescore=59.0), Citescoreinfolist(year=2023, citescore=60.9)] >>> source.sjrlist [(2022, 13.328)] >>> source.sniplist [(2022, 7.729)]
The citescoreyearinfolist property provides detailed information for all available years when view=”CITESCORE” is used. It includes the status of the metric, the document count and citation count (of the previous 4 years), the share of documents actually cited, and the rank and percentile for each related ASJC subject:
>>> source_full = SerialTitleISSN("00368075", view="CITESCORE") >>> info = pd.DataFrame(source_full.citescoreyearinfolist) >>> print(info) year citescore status documentcount citationcount percentcited rank 0 2023 60.9 In-Progress 4969 302467 79 [(1000, 2, 99)] 1 2022 59.0 Complete 4895 288748 82 [(1000, 2, 98)] 2 2021 57.8 Complete 4823 278545 84 [(1000, 2, 98)] 3 2020 46.8 Complete 4833 226134 82 [(1000, 2, 98)] 4 2019 45.3 Complete 4799 217261 81 [(1000, 2, 98)] 5 2018 47.1 Complete 4681 220642 82 [(1000, 2, 98)] 6 2017 49.4 Complete 4215 208286 90 [(1000, 2, 98)] 7 2016 49.5 Complete 4176 206665 89 [(1000, 1, 99)] 8 2015 46.6 Complete 4016 187040 89 [(2700, 18, 99), (1000, 2, 98)] 9 2014 46.0 Complete 3923 180376 90 [(2700, 18, 99), (1000, 2, 98)] 10 2013 46.9 Complete 3839 179860 92 [(2700, 16, 99), (1000, 2, 98)] 11 2012 46.3 Complete 3861 178780 92 [(2700, 11, 99), (1000, 2, 98)] 12 2011 44.7 Complete 3843 171898 91 [(2700, 12, 99), (1000, 2, 98)]
The yearly_data time series includes the number of documents published in a given year. It contains the number of documents published in this year, the share of review articles thereof, the number and share of not-cited documents, and the number of distinct documents that were cited in this year.
>>> source.yearly_data[-1] Yearlydata(year=2024, publicationcount=473, revpercent=4.02, zerocitessce=400, zerocitespercentsce=84.56659619450318, citecountsce=246787) >>> yearly_data = pd.DataFrame(source.yearly_data) >>> yearly_data.head() year publicationcount revpercent zerocitessce zerocitespercentsce citecountsce 0 1996 2395 4.97 653 27.265136 236672 1 1997 2833 6.28 899 31.733145 244122 2 1998 2816 4.69 850 30.184659 254600 3 1999 2373 6.28 531 22.376738 276110 4 2000 2401 7.00 457 19.033736 294076
By default, SerialTitleISSN() retrieves only the most recent metrics, although yearly data is availble from 1996 onwards. If you provide a year or a range of years via the optional parameter years, SerialTitleISSN() will retrieve information for these years (except for the CiteScore):
>>> source_y = SerialTitleISSN("00368075", years="2017-2019") >>> source_y.citescoreyearinfolist [Citescoreinfolist(year=2022, citescore=59.0), Citescoreinfolist(year=2023, citescore=58.8)] >>> source_y.sjrlist [(2017, 14.142), (2018, 13.251), (2019, 13.11)] >>> source_y.sniplist [(2017, 7.409), (2018, 7.584), (2019, 7.535)]
Fields associated with the source are stored as a list of namedtuples:
>>> source.subject_area [Subjectarea(area='Multidisciplinary', abbreviation='MULT', code=1000)]
Additionally, there is information on Open Access status, which, however, is often empty.
Downloaded results are cached to expedite subsequent analyses. This information may become outdated. To refresh the cached results if they exist, set refresh=True, or provide an integer that will be interpreted as maximum allowed number of days since the last modification date. For example, if you want to refresh all cached results older than 100 days, set refresh=100. Use ab.get_cache_file_mdate() to obtain the date of last modification, and ab.get_cache_file_age() to determine the number of days since the last modification.