openapi: 3.0.0 info: title: Recommendations API version: '1.0' description: Get Semantic Scholar's recommended papers given other papers as input. All methods will return up to LIMIT recommendations if they are available. servers: - url: https://api.semanticscholar.org/recommendations/v1 paths: /papers/: post: summary: Get recommended papers for lists of positive and negative example papers operationId: post_papers tags: - Paper Recommendations requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/Paper%20Input' responses: '404': description: Input papers not found content: application/json: schema: $ref: '#/components/schemas/Error404' '400': description: Bad query parameters content: application/json: schema: $ref: '#/components/schemas/Error400' '200': description: List of recommendations with default or requested fields content: application/json: schema: $ref: '#/components/schemas/Paper%20Recommendations' /papers/forpaper/{paper_id}: get: summary: Get recommended papers for a single positive example paper operationId: get_papers_for_paper tags: - Paper Recommendations responses: '404': description: Input papers not found content: application/json: schema: $ref: '#/components/schemas/Error404' '400': description: Bad query parameters content: application/json: schema: $ref: '#/components/schemas/Error400' '200': description: List of recommendations with default or requested fields content: application/json: schema: $ref: '#/components/schemas/Paper%20Recommendations' components: schemas: Error404: properties: error: type: string description: "Depending on the case, error message may be any of these:\n\ " example: Requested object not found type: object Error400: properties: error: type: string description: "Depending on the case, error message may be any of these:\n\ " example: 'Unrecognized or unsupported fields: [author.creditCardNumber, garbage]' type: object Paper Recommendations: properties: recommendedPapers: type: array items: $ref: '#/components/schemas/BasePaper' type: object BasePaper: properties: paperId: type: string description: Semantic Scholar’s primary unique identifier for a paper. example: 5c5751d45e298cea054f32b392c12c61027d2fe7 corpusId: type: integer description: Semantic Scholar’s secondary unique identifier for a paper. example: 215416146 externalIds: type: object description: 'An object that contains the paper’s unique identifiers in external sources. The external sources are limited to: ArXiv, MAG, ACL, PubMed, Medline, PubMedCentral, DBLP, and DOI.' example: MAG: '3015453090' DBLP: conf/acl/LoWNKW20 ACL: 2020.acl-main.447 DOI: 10.18653/V1/2020.ACL-MAIN.447 CorpusId: 215416146 url: type: string description: URL of the paper on the Semantic Scholar website. example: https://www.semanticscholar.org/paper/5c5751d45e298cea054f32b392c12c61027d2fe7 title: type: string description: Title of the paper. example: Construction of the Literature Graph in Semantic Scholar abstract: type: string description: The paper's abstract. Note that due to legal reasons, this may be missing even if we display an abstract on the website. example: We describe a deployed scalable system for organizing published scientific literature into a heterogeneous graph to facilitate algorithmic manipulation and discovery. venue: type: string description: The name of the paper’s publication venue. example: Annual Meeting of the Association for Computational Linguistics publicationVenue: type: object description: 'An object that contains the following information about the journal or conference in which this paper was published: id (the venue’s unique ID), name (the venue’s name), type (the type of venue), alternate_names (an array of alternate names for the venue), and url (the venue’s website).' example: id: 1e33b3be-b2ab-46e9-96e8-d4eb4bad6e44 name: Annual Meeting of the Association for Computational Linguistics type: conference alternate_names: - Annu Meet Assoc Comput Linguistics - Meeting of the Association for Computational Linguistics - ACL - Meet Assoc Comput Linguistics url: https://www.aclweb.org/anthology/venues/acl/ year: type: integer description: The year the paper was published. example: 1997 referenceCount: type: integer description: The total number of papers this paper references. example: 59 citationCount: type: integer description: The total number of papers that references this paper. example: 453 influentialCitationCount: type: integer description: 'A subset of the citation count, where the cited publication has a significant impact on the citing publication. Determined by Semantic Scholar’s algorithm: https://www.semanticscholar.org/faq#influential-citations.' example: 90 isOpenAccess: type: boolean description: 'Whether the paper is open access. More information here: https://www.openaccess.nl/en/what-is-open-access.' example: true openAccessPdf: type: object description: 'An object that contains the following parameters: url (a link to the paper’s PDF), status (the type of open access https://en.wikipedia.org/wiki/Open_access#Colour_naming_system), the paper''s license, and a legal disclaimer.' example: url: https://www.aclweb.org/anthology/2020.acl-main.447.pdf status: HYBRID license: CCBY disclaimer: 'Notice: This snippet is extracted from the open access paper or abstract available at https://aclanthology.org/2020.acl-main.447, which is subject to the license by the author or copyright owner provided with this content. Please go to the source to verify the license and copyright information for your use.' fieldsOfStudy: type: array description: 'A list of the paper’s high-level academic categories from external sources. The possible fields are: Computer Science, Medicine, Chemistry, Biology, Materials Science, Physics, Geology, Psychology, Art, History, Geography, Sociology, Business, Political Science, Economics, Philosophy, Mathematics, Engineering, Environmental Science, Agricultural and Food Sciences, Education, Law, and Linguistics.' example: - Computer Science items: type: string s2FieldsOfStudy: type: array description: 'An array of objects. Each object contains the following parameters: category (a field of study. The possible fields are the same as in fieldsOfStudy), and source (specifies whether the category was classified by Semantic Scholar or by an external source. More information on how Semantic Scholar classifies papers https://medium.com/ai2-blog/announcing-s2fos-an-open-source-academic-field-of-study-classifier-9d2f641949e5)' example: - category: Computer Science source: external - category: Computer Science source: s2-fos-model - category: Mathematics source: s2-fos-model items: type: object publicationTypes: type: array description: The type of this publication. example: - Journal Article - Review items: type: string publicationDate: type: string description: The date when this paper was published, in YYYY-MM-DD format. example: '2024-04-29' journal: type: object description: 'An object that contains the following parameters, if available: name (the journal name), volume (the journal’s volume number), and pages (the page number range)' example: volume: '40' pages: 116 - 135 name: IETE Technical Review citationStyles: type: object description: The BibTex bibliographical citation of the paper. example: bibtex: "@['JournalArticle', 'Conference']{Ammar2018ConstructionOT,\n\ \ author = {Waleed Ammar and Dirk Groeneveld and Chandra Bhagavatula\ \ and Iz Beltagy and Miles Crawford and Doug Downey and Jason Dunkelberger\ \ and Ahmed Elgohary and Sergey Feldman and Vu A. Ha and Rodney Michael\ \ Kinney and Sebastian Kohlmeier and Kyle Lo and Tyler C. Murray and\ \ Hsu-Han Ooi and Matthew E. Peters and Joanna L. Power and Sam Skjonsberg\ \ and Lucy Lu Wang and Christopher Wilhelm and Zheng Yuan and Madeleine\ \ van Zuylen and Oren Etzioni},\n booktitle = {NAACL},\n pages = {84-91},\n\ \ title = {Construction of the Literature Graph in Semantic Scholar},\n\ \ year = {2018}\n}\n" authors: type: array title: Author Info description: Details about the paper's authors items: $ref: '#/components/schemas/AuthorInfo' type: object AuthorInfo: properties: authorId: type: string title: This field will be provided if no fields are specified description: Semantic Scholar’s unique ID for the author. example: '1741101' name: type: string title: This field will be provided if no fields are specified description: Author’s name. example: Oren Etzioni type: object Paper Input: properties: positivePaperIds: type: array items: type: string example: 649def34f8be52c8b66281af98ae884c09aef38b negativePaperIds: type: array items: type: string example: ArXiv:1805.02262 type: object securitySchemes: {}