{"swagger": "2.0", "basePath": "/graph/v1", "paths": {"/author/batch": {"parameters": [{"in": "query", "description": "A comma-separated list of the fields to be returned. See the contents of Response Schema below for a list of all available fields that can be returned.\nThe authorId field is always returned. If the fields parameter is omitted, only the authorId and name will be returned.\n

Use a period (\u201c.\u201d) for subfields of papers.

\nExamples:\n

", "name": "fields", "type": "string"}], "post": {"responses": {"400": {"description": "Bad query parameters", "schema": {"$ref": "#/definitions/Error400"}}, "200": {"description": "List of authors with default or requested fields", "schema": {"$ref": "#/definitions/AuthorWithPapers"}}}, "summary": "Get details for multiple authors at once", "description": "* Fields is a single-value string parameter, not a multi-value one.\n* It is a query parameter, not to be submitted in the POST request's body.\n\nIn python:\n\n r = requests.post(\n 'https://api.semanticscholar.org/graph/v1/author/batch',\n params={'fields': 'name,hIndex,citationCount'},\n json={\"ids\":[\"1741101\", \"1780531\"]}\n )\n print(json.dumps(r.json(), indent=2))\n\n [\n {\n \"authorId\": \"1741101\",\n \"name\": \"Oren Etzioni\",\n \"citationCount\": 34803,\n \"hIndex\": 86\n },\n {\n \"authorId\": \"1780531\",\n \"name\": \"Daniel S. Weld\",\n \"citationCount\": 35526,\n \"hIndex\": 89\n }\n ]\n\nOther Examples:\n\n
\nLimitations:\n", "operationId": "post_graph_get_authors", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/AuthorIdList"}}], "tags": ["Author Data"]}}, "/author/search": {"parameters": [{"default": 0, "type": "integer", "in": "query", "description": "Used for pagination. When returning a list of results, start with the element at this position in the list.", "name": "offset"}, {"default": 100, "type": "integer", "in": "query", "description": "The maximum number of results to return.
\nMust be <= 1000", "name": "limit"}, {"in": "query", "description": "A comma-separated list of the fields to be returned. See the contents of the data array in Response Schema below for a list of all available fields that can be returned.\nThe authorId field is always returned. If the fields parameter is omitted, only the authorId and name will be returned.\n

Use a period (\u201c.\u201d) for subfields of papers.

\nExamples:\n

", "name": "fields", "type": "string"}, {"required": true, "in": "query", "description": "A plain-text search query string.\n* No special query syntax is supported.\n* Hyphenated query terms yield no matches (replace it with space to find matches)", "name": "query", "type": "string"}], "get": {"responses": {"400": {"description": "Bad query parameters", "schema": {"$ref": "#/definitions/Error400"}}, "200": {"description": "Batch of authors with default or requested fields", "schema": {"$ref": "#/definitions/AuthorSearchBatch"}}}, "summary": "Search for authors by name", "description": "Specifying papers fields in the request will return all papers linked to each author in the results. Set a limit on the search results to reduce output size and latency.

\nExamples:\n", "operationId": "get_graph_paper_title_search", "tags": ["Paper Data"]}}, "/paper/{paper_id}": {"parameters": [{"description": "The following types of IDs are supported:\n\n\nURLs are recognized from the following sites:\n", "name": "paper_id", "in": "path", "required": true, "type": "string"}, {"description": "A comma-separated list of the fields to be returned. See the contents of Response Schema below for a list of all available fields that can be returned.\nThe paperId field is always returned. If the fields parameter is omitted, only the paperId and title will be returned.\n

Use a period (\u201c.\u201d) for fields that have version numbers or subfields, such as the embedding, authors, citations, and references fields:\n

\nExamples:\n", "name": "fields", "type": "string", "in": "query"}], "get": {"responses": {"404": {"description": "Bad paper id", "schema": {"$ref": "#/definitions/Error404"}}, "400": {"description": "Bad query parameters", "schema": {"$ref": "#/definitions/Error400"}}, "200": {"description": "Paper with default or requested fields", "schema": {"$ref": "#/definitions/FullPaper"}}}, "summary": "Details about a paper", "description": "Examples:\n", "operationId": "get_graph_get_paper", "tags": ["Paper Data"]}}, "/paper/{paper_id}/authors": {"parameters": [{"default": 0, "type": "integer", "in": "query", "description": "Used for pagination. When returning a list of results, start with the element at this position in the list.", "name": "offset"}, {"default": 100, "type": "integer", "in": "query", "description": "The maximum number of results to return.
\nMust be <= 1000", "name": "limit"}, {"in": "query", "description": "A comma-separated list of the fields to be returned. See the contents of the data array in Response Schema below for a list of all available fields that can be returned.\nThe authorId field is always returned. If the fields parameter is omitted, only the authorId and name will be returned.\n

Use a period (\u201c.\u201d) for subfields of papers.

\nExamples:\n

", "name": "fields", "type": "string"}, {"in": "path", "description": "The following types of IDs are supported:\n\n\nURLs are recognized from the following sites:\n", "name": "paper_id", "required": true, "type": "string"}], "get": {"responses": {"404": {"description": "Bad paper id", "schema": {"$ref": "#/definitions/Error404"}}, "400": {"description": "Bad query parameters", "schema": {"$ref": "#/definitions/Error400"}}, "200": {"description": "List of Authors with default or requested fields", "schema": {"$ref": "#/definitions/AuthorBatch"}}}, "summary": "Details about a paper's authors", "description": "Examples:\n", "operationId": "get_graph_get_paper_authors", "tags": ["Paper Data"]}}, "/paper/{paper_id}/citations": {"parameters": [{"in": "query", "description": "Restricts results to the given range of publication dates or years (inclusive). Accepts the format <startDate>:<endDate> with each date in YYYY-MM-DD format. \n
\n
\nEach term is optional, allowing for specific dates, fixed ranges, or open-ended ranges. In addition, prefixes are supported as a shorthand, e.g. 2020-06 matches all dates in June 2020.\n
\n
\nSpecific dates are not known for all papers, so some records returned with this filter will have a null value for publicationDate. year, however, will always be present.\nFor records where a specific publication date is not known, they will be treated as if published on January 1st of their publication year.\n
\n
\nExamples:\n", "name": "publicationDateOrYear", "type": "string"}, {"default": 0, "type": "integer", "in": "query", "description": "Used for pagination. When returning a list of results, start with the element at this position in the list.", "name": "offset"}, {"default": 100, "type": "integer", "in": "query", "description": "The maximum number of results to return.
\nMust be <= 1000", "name": "limit"}, {"in": "query", "description": "A comma-separated list of the fields to be returned. See the contents of the data array in Response Schema below for a list of all available fields that can be returned.\nIf the fields parameter is omitted, only the paperId and title will be returned.\n

Request fields nested within citedPaper the same way as fields like contexts.

\nExamples:\n

", "name": "fields", "type": "string"}, {"in": "path", "description": "The following types of IDs are supported:\n\n\nURLs are recognized from the following sites:\n", "name": "paper_id", "required": true, "type": "string"}], "get": {"responses": {"404": {"description": "Bad paper id", "schema": {"$ref": "#/definitions/Error404"}}, "400": {"description": "Bad query parameters", "schema": {"$ref": "#/definitions/Error400"}}, "200": {"description": "Batch of citations with default or requested fields", "schema": {"$ref": "#/definitions/CitationBatch"}}}, "summary": "Details about a paper's citations", "description": "Fetch details about the papers that cite this paper (i.e. papers in whose bibliography this paper appears)\n

\nExamples:\n", "operationId": "get_graph_get_paper_citations", "tags": ["Paper Data"]}}, "/paper/{paper_id}/references": {"parameters": [{"default": 0, "type": "integer", "in": "query", "description": "Used for pagination. When returning a list of results, start with the element at this position in the list.", "name": "offset"}, {"default": 100, "type": "integer", "in": "query", "description": "The maximum number of results to return.
\nMust be <= 1000", "name": "limit"}, {"in": "query", "description": "A comma-separated list of the fields to be returned. See the contents of the data array in Response Schema below for a list of all available fields that can be returned.\nIf the fields parameter is omitted, only the paperId and title will be returned.\n

Request fields nested within citedPaper the same way as fields like contexts.

\nExamples:\n

", "name": "fields", "type": "string"}, {"in": "path", "description": "The following types of IDs are supported:\n\n\nURLs are recognized from the following sites:\n", "name": "paper_id", "required": true, "type": "string"}], "get": {"responses": {"404": {"description": "Bad paper id", "schema": {"$ref": "#/definitions/Error404"}}, "400": {"description": "Bad query parameters", "schema": {"$ref": "#/definitions/Error400"}}, "200": {"description": "Batch of references with default or requested fields", "schema": {"$ref": "#/definitions/ReferenceBatch"}}}, "summary": "Details about a paper's references", "description": "Fetch details about the papers cited by this paper (i.e. appearing in this paper's bibliography)\n

\nExamples:\n", "operationId": "get_graph_get_paper_references", "tags": ["Paper Data"]}}, "/snippet/search": {"parameters": [{"in": "query", "description": "A comma-separated list of the fields to be returned with each snippet element.\n\nPaper info and the score are currently always returned. What you can specify using this fields param is which fields under the 'snippet' section (see the response schema) will be returned.\n\nExamples:\n\n\nIn general, you can use periods to identify nested fields (as in the examples above).\n\nNot all fields in the response schema can be identified using this fields param though.\nE.g. you can't pick what you get within snippet.snippetOffset - you can either get the snippet offset with all the possible snippet offset fields, or you can not get it at all.\nYou also can't provide paper or score or anything under paper, since those are always provided.\n\nIf you attempt to identify a field that's not supported, you'll get an error with the relevant field name. E.g.\n\nUnrecognized or unsupported fields: [paper]\n\nIf you don't specify the fields param, you'll get a default set of fields in the snippet section. These are the default fields:\n- snippet.text\n- snippet.snippetKind\n- snippet.section\n- snippet.snippetOffset (including nested start and end)\n- snippet.annotations.refMentions (including nested start, end, and matchedPaperCorpusId for each element)\n- snippet.annotations.sentences (including nested start and end for each element)", "name": "fields", "type": "string"}, {"in": "query", "description": "Restricts results to snippets from specific papers. To specify papers, provide a comma-separated list of their IDs. You can provide up to approximately 100 IDs.\n\nThe following types of IDs are supported:\n\n\nURLs are recognized from the following sites:\n", "name": "paperIds", "type": "string"}, {"in": "query", "description": "Restricts results to papers with authors matching the given names, formatted as a comma-separated list (...?authors=name1,name2,...).\nThe search criteria are 'fuzzy', so matches that are close will also return results.\n

\n\nExample: galileo,kepler will return papers that include both an author similar to \"galileo\" and an author similar to \"kepler\" as co-authors.\nThis query will also match fuzzy variations like 'keppler' and 'Kepler' (default max 'edit distance' is 2).\n\nImportant: Multiple author names are combined with AND logic, meaning results must include all specified authors.\nAdding more authors will narrow your results, not expand them.\nTo search for papers by any of several authors (OR logic), perform separate searches for each author name.\nThe maximum number of author filters is by default 10 and will return an HTTP code 400 (Bad Request) if more than 10 are supplied.", "name": "authors", "type": "string"}, {"in": "query", "description": "Restricts results to only include papers with the minimum number of citations.\n
\n
\nExample:\nminCitationCount=200", "name": "minCitationCount", "type": "string"}, {"in": "query", "description": "Restricts results to snippets from papers inserted into the index before the provided date (excludes things inserted on the provided date).\n\nAcceptable formats: YYYY-MM-DD, YYYY-MM, YYYY", "name": "insertedBefore", "type": "string"}, {"in": "query", "description": "Restricts results to the given range of publication dates or years (inclusive). Accepts the format <startDate>:<endDate> with each date in YYYY-MM-DD format. \n
\n
\nEach term is optional, allowing for specific dates, fixed ranges, or open-ended ranges. In addition, prefixes are supported as a shorthand, e.g. 2020-06 matches all dates in June 2020.\n
\n
\nSpecific dates are not known for all papers, so some records returned with this filter will have a null value for publicationDate. year, however, will always be present.\nFor records where a specific publication date is not known, they will be treated as if published on January 1st of their publication year.\n
\n
\nExamples:\n", "name": "publicationDateOrYear", "type": "string"}, {"in": "query", "description": "Restricts results to the given publication year or range of years (inclusive).\n
\n
\nExamples:\n", "name": "year", "type": "string"}, {"in": "query", "description": "Restricts results to papers published in the given venues, formatted as a comma-separated list.

\nInput could also be an ISO4 abbreviation.\nExamples include:\n\n\nExample: Nature,Radiology will return papers from venues Nature and/or Radiology.", "name": "venue", "type": "string"}, {"in": "query", "description": "Restricts results to papers in the given fields of study, formatted as a comma-separated list:\n\n\nExample: Physics,Mathematics will return papers with either Physics or Mathematics in their list of fields-of-study.", "name": "fieldsOfStudy", "type": "string"}, {"required": true, "in": "query", "description": "A plain-text search query string.\n* No special query syntax is supported.", "name": "query", "type": "string"}, {"default": 10, "type": "integer", "in": "query", "description": "The maximum number of results to return.
\nMust be <= 1000", "name": "limit"}], "get": {"responses": {"400": {"description": "Bad query parameters", "schema": {"$ref": "#/definitions/Error400"}}, "200": {"description": "Best snippet match with default fields", "schema": {"$ref": "#/definitions/SnippetMatch"}}}, "summary": "Text snippet search", "description": "Return the text snippets that most closely match the query. Text snippets are excerpts of approximately 500 words, drawn from a paper's title, abstract, and body text, but excluding figure captions and the bibliography.\nIt will return the highest ranked snippet first, as well as some basic data about the paper it was found in.\nExamples:\n\n
\n Limitations:\n \n", "operationId": "get_snippet_search", "tags": ["Snippet Text"]}}}, "info": {"title": "Academic Graph API", "version": "1.0", "description": "Fetch paper and author data from the Semantic Scholar Academic Graph (S2AG).\n

\n Some things to note:\n