LogoScholarMuse 文档

API 参考

可以通过 REST 调用的全部 ScholarMuse 工具,以及每个工具的参数、所属学科包和每次调用的积分。

这一页列出每个工具和它接受的参数。内容直接由服务端运行的工具定义生成,所以始终和线上 API 一致。身份验证、返回格式和错误码见 REST API 接口。

工具说明是写给 agent 读的,所以保留英文原文。

程序也可以直接取到同样的信息:

  • GET /api/v1 返回工具列表。
  • GET /api/v1/<tool> 返回单个工具及其参数的 JSON Schema。
  • /api/v1/openapi.json 是整套 API 的 OpenAPI 3.1 描述,可以导入 Postman 等工具。

list_capabilities

List every ScholarMuse capability with its tools, discipline pack and data sources. Call this first to see what you can do for the user.

POST /api/v1/list_capabilities · 学科包:通用科研 · 每次成功调用 0 积分

参数类型必填说明
discipline"general" | "life" | "chem" | "earth" | "astro" | "humanities"否Only list capabilities in this discipline pack.

create_figure

Generate a publication-ready scientific figure (mechanism or pathway diagram, workflow, study design, graphical abstract, schematic) from a description. Returns an image URL, or a figure_id to fetch with get_figure if it is still rendering. Not for plots of numeric data — write plotting code for those.

POST /api/v1/create_figure · 学科包:通用科研 · 每次成功调用 0 积分

参数类型必填说明
descriptionstring是What the figure shows: the entities, their relationships and the order of events. Be specific and scientifically precise.
kind"mechanism" | "workflow" | "graphical_abstract" | "schematic" | "poster_panel"否Figure type. Default: schematic.
style"nature" | "cell" | "minimal_line" | "flat_color" | "textbook"否Visual style. Default: nature.
labelsstring[]否Exact text labels to appear in the figure.
aspect_ratio"16:9" | "4:3" | "1:1" | "3:4" | "9:16"否Default 16:9 for graphical abstracts and workflows, otherwise 4:3.

edit_figure

Change a figure made with create_figure using a plain-language instruction (e.g. "make the arrows thicker", "rename the label X to Y"). Returns a new image; the original is kept.

POST /api/v1/edit_figure · 学科包:通用科研 · 每次成功调用 0 积分

参数类型必填说明
figure_idstring是The figure_id returned by create_figure, edit_figure or get_figure.
instructionstring是What to change. One or two changes per call work best.

get_figure

Fetch a figure by figure_id: returns the image URL when it is ready, or tells you it is still rendering.

POST /api/v1/get_figure · 学科包:通用科研 · 每次成功调用 0 积分

参数类型必填说明
figure_idstring是The figure_id returned by create_figure or edit_figure.

search_papers

Search real scholarly papers across OpenAlex, PubMed / Europe PMC, arXiv, INSPIRE-HEP and ERIC, de-duplicated, each source in its own relevance order. Returns DOI, authors, year, venue, citation count and open-access link. Use this instead of recalling references from memory.

POST /api/v1/search_papers · 学科包:通用科研 · 每次成功调用 1 积分

参数类型必填说明
querystring是Topic, keywords or a natural-language question.
year_frominteger否Earliest publication year.
year_tointeger否Latest publication year.
open_access_onlyboolean否Only papers with a free full text.
sourcesstring[]否Limit to these source ids: openalex, pubmed, arxiv, inspire-hep, eric, crossref, dblp. Default: openalex, pubmed and arxiv. Add eric for education research, inspire-hep for high-energy physics, dblp for computer science.
limitinteger否Results to return (default 10).

get_paper

Look up one paper by DOI, PMID ("pmid:123"), PMCID, arXiv id ("arxiv:1706.03762") or OpenAlex id. Returns verified metadata, abstract, citation count, retraction flag and an open-access link when one exists.

POST /api/v1/get_paper · 学科包:通用科研 · 每次成功调用 1 积分

参数类型必填说明
idstring是DOI (10.xxxx/… or a doi.org URL), pmid:12345, PMC12345, arxiv:2301.01234 (or a bare arXiv id), or an OpenAlex id (W…).

lookup_gene_protein

Resolve a gene symbol, gene name, UniProt accession or Ensembl gene id across NCBI Gene, Ensembl and UniProt and return one record: ids, name, summary and function, chromosome location, protein length, InterPro domains, Reactome pathways and top STRING interaction partners. Use it for verified gene/protein facts instead of recalling them. Research data lookup, not medical advice.

POST /api/v1/lookup_gene_protein · 学科包:生命科学与医学 · 每次成功调用 1 积分

参数类型必填说明
querystring是Gene symbol (TP53), gene or protein name, UniProt accession (P04637) or Ensembl gene id (ENSG00000141510).
organismstring否Organism name or NCBI taxon id, e.g. "mouse", "Danio rerio", "10090". Default: human (9606).
include"domains" | "pathways" | "interactions"[]否Extra sections to fetch: domains (InterPro), pathways (Reactome), interactions (STRING). Default: all.

get_structure

Find 3D structures for a protein: experimental entries from RCSB PDB (method, resolution, release date, organism, mmCIF/PDB download links) plus the AlphaFold DB predicted model (mean pLDDT, version) for the UniProt accession. Pass a PDB id or UniProt accession as `id`, or a protein/gene name as `query`. Research data lookup, not medical advice.

POST /api/v1/get_structure · 学科包:生命科学与医学 · 每次成功调用 1 积分

参数类型必填说明
idstring否PDB id (e.g. 1M17) or UniProt accession (e.g. P00533).
querystring否Protein or gene name when no id is known, e.g. "EGFR" or "hemoglobin".
limitinteger否Experimental structures to return (default 10).

search_clinical_trials

Search the ClinicalTrials.gov registry by condition, intervention, phase, recruitment status and country. Returns NCT id, title, status, phase, conditions, interventions, sponsor, enrollment, dates, primary outcomes and the registry URL. Use it to find or verify registered studies. Registry data for research, not medical advice or a recommendation to enrol.

POST /api/v1/search_clinical_trials · 学科包:生命科学与医学 · 每次成功调用 1 积分

参数类型必填说明
conditionstring否Disease or condition, e.g. "heart failure".
interventionstring否Drug, device or procedure, e.g. "semaglutide".
phaseinteger否Trial phase: 1, 2, 3 or 4.
statusstring否Overall status: recruiting, not_yet_recruiting, active_not_recruiting, completed, terminated, suspended, withdrawn, enrolling_by_invitation or unknown.
countrystring否Country with a study site, in English, e.g. "Germany" or "United States".
querystring否Free text for anything else (sponsor, outcome, NCT id, keywords).
limitinteger否Results to return (default 10).

lookup_drug

Look up a drug or compound by name or ChEMBL id. Returns ChEMBL facts (ChEMBL id, max clinical phase, molecule type, formula, weight), curated mechanisms and targets, the most frequently reported adverse-event terms from openFDA FAERS (spontaneous report counts, not incidence or risk) and FDA label highlights (indications, whether a boxed warning exists). Research data lookup, not medical advice.

POST /api/v1/lookup_drug · 学科包:生命科学与医学 · 每次成功调用 1 积分

参数类型必填说明
namestring是Drug name (generic, brand or research code) or a ChEMBL id such as CHEMBL941.
include"targets" | "adverse_events" | "label"[]否Sections to fetch: targets (ChEMBL mechanisms), adverse_events (openFDA FAERS), label (FDA label). Default: all.

search_expression_data

Gene expression lookups: pass `gene` for GTEx median expression (TPM) across human tissues, highest tissues first; pass `query` to search NCBI GEO for expression datasets (series accession, title, organism, sample count, platform, date, URL). Both can be used in one call. Research data lookup, not medical advice.

POST /api/v1/search_expression_data · 学科包:生命科学与医学 · 每次成功调用 1 积分

参数类型必填说明
genestring否Human gene symbol or Ensembl gene id for GTEx tissue expression, e.g. "ALB".
querystring否Keywords for a GEO dataset search, e.g. "single cell lung fibrosis".
organismstring否Limit GEO results to an organism (scientific name, e.g. "Mus musculus"). GTEx is human only.
limitinteger否GEO series to return (default 10).

lookup_compound

Look up one chemical compound in PubChem by name, CAS number, SMILES, InChIKey or CID. Returns formula, molecular weight, SMILES, InChIKey, XLogP, H-bond counts, TPSA, synonyms, a 2D structure image URL and the ChEBI definition and roles when available. Use it instead of recalling chemical properties from memory.

POST /api/v1/lookup_compound · 学科包:化学与材料 · 每次成功调用 1 积分

参数类型必填说明
querystring是Compound name, CAS number (58-08-2), SMILES, InChIKey or PubChem CID (2519).

lookup_material

Find crystalline materials by formula, element set or material id across the Materials Project and OQMD (DFT-computed band gap, formation energy, stability) and the Crystallography Open Database (experimental structures with CIF download). Returns space group, lattice parameters and source links for each entry.

POST /api/v1/lookup_material · 学科包:化学与材料 · 每次成功调用 1 积分

参数类型必填说明
formulastring否Chemical formula, e.g. TiO2 or LiFePO4.
elementsstring[]否Element symbols; returns materials made of exactly these elements, e.g. ["Ti","O"].
material_idstring否Materials Project id (mp-2657) or COD id (cod-1010942 or the 7-digit number).
stable_onlyboolean否Only thermodynamically stable computed phases (on the convex hull). Skips COD, which has no energies.
limitinteger否Entries to return (default 10).

search_grants

Search funded research projects at NIH (RePORTER), NSF and UKRI by topic, investigator, institution or year. Returns one record per project with project number, PI, organisation, funder, dates, amount and abstract. Use it to find who funds a topic or what a lab is funded for.

POST /api/v1/search_grants · 学科包:通用科研 · 每次成功调用 1 积分

参数类型必填说明
querystring是Research topic or keywords, e.g. "CAR-T resistance".
funder"nih" | "nsf" | "ukri"否Limit to one funder. Default: all three.
pi_namestring否Principal investigator name, e.g. "Carl June".
organizationstring否Awardee institution name, e.g. "Stanford University".
year_frominteger否Earliest fiscal year (NIH) or start year (NSF, UKRI).
year_tointeger否Latest fiscal year (NIH) or start year (NSF, UKRI).
limitinteger否Projects to return (default 10).

search_datasets

Search research datasets across Zenodo, Dryad, Harvard Dataverse, Hugging Face and DataCite, de-duplicated by DOI. Returns DOI, creators, year, repository, description, size or format when known, and the licence of the dataset itself. Use it to find data to reuse or cite.

POST /api/v1/search_datasets · 学科包:通用科研 · 每次成功调用 1 积分

参数类型必填说明
querystring是Topic or keywords, e.g. "urban tree canopy".
sources"zenodo" | "dryad" | "dataverse" | "huggingface" | "datacite"[]否Limit to these repositories. Default: all.
limitinteger否Datasets to return (default 10).

find_series

Find official statistical series and indicators (GDP, CPI, unemployment, population, life expectancy…) in FRED, World Bank, IMF, OECD, Eurostat, BLS, US Census and Our World in Data. Returns candidates with a seriesId to pass to get_series. Name the country in the query, e.g. "GDP per capita China".

POST /api/v1/find_series · 学科包:通用科研 · 每次成功调用 1 积分

参数类型必填说明
querystring是What to measure and where, e.g. "US unemployment rate" or "life expectancy Japan".
sources"fred" | "world-bank" | "bls" | "oecd" | "eurostat" | "imf" | "owid" | "census"[]否Limit to these sources: fred, world-bank, imf, oecd, eurostat, bls, census, owid. Default: all.
limitinteger否Candidates to return (default 10).

get_series

Fetch the observations of one official statistical series by the seriesId returned by find_series (e.g. "world-bank:NY.GDP.PCAP.CD?country=CHN", "bls:LNS14000000"). Returns title, units, frequency, geography and dated values. Use it whenever you need real numbers instead of remembered ones.

POST /api/v1/get_series · 学科包:通用科研 · 每次成功调用 1 积分

参数类型必填说明
series_idstring是A seriesId from find_series, in the form "<source>:<id>" with optional "?dimension=CODE" parts.
startstring否First period to return: a year (2015) or ISO date (2015-06 or 2015-06-01).
endstring否Last period to return: a year or ISO date.
countrystring否ISO country code (CHN or CN) for per-country sources: world-bank, imf, owid, oecd, eurostat. Overrides the country in series_id.

verify_references

Check a reference list against Crossref and OpenAlex. For each reference returns a status (verified, corrected, not_found, uncertain), the real metadata of the matched paper, the fields that differ (year, pages, DOI, journal, first author) and a retraction flag. Use it to catch invented or wrong citations before a manuscript goes out.

POST /api/v1/verify_references · 学科包:通用科研 · 每次成功调用 2 积分

参数类型必填说明
referencesany是The reference list: one block of text in any citation style or BibTeX, or an array with one reference per item. At most 50 references per call.

check_retractions

Check DOIs for retractions, corrections and expressions of concern using Crossref (which carries the Retraction Watch database) and the OpenAlex retraction flag. Returns one record per DOI with the notice DOI, date and source. Pass DOIs, or a reference list from which DOIs are extracted.

POST /api/v1/check_retractions · 学科包:通用科研 · 每次成功调用 2 积分

参数类型必填说明
doisstring[]否DOIs to check (10.xxxx/… or doi.org URLs), at most 100.
referencesstring否Text containing DOIs, such as a reference list. Only references that include a DOI are checked.

journal_info

Look up a journal by name or ISSN in OpenAlex and DOAJ. Returns publisher, ISSNs, open-access status, whether it is listed in DOAJ, article processing charge, works and citation counts, h-index, homepage and plain-language signals. Use it to check a journal before submitting or citing. Does not return the Journal Impact Factor.

POST /api/v1/journal_info · 学科包:通用科研 · 每次成功调用 1 积分

参数类型必填说明
journalstring是Journal name (e.g. "PLOS ONE") or ISSN (e.g. "1932-6203").

get_weather_history

Daily or monthly historical weather for any point on Earth from 1981 onward (NASA POWER, satellite and reanalysis based, about 50 km grid): temperature, precipitation, humidity, wind speed and solar radiation. Use it for climate context of a field site or study period; it is gridded model data, not a weather-station record.

POST /api/v1/get_weather_history · 学科包:地球与环境 · 每次成功调用 1 积分

参数类型必填说明
latitudenumber是Latitude in decimal degrees (north positive).
longitudenumber是Longitude in decimal degrees (east positive).
startstring是First day, YYYY-MM-DD, not before 1981-01-01.
endstring是Last day, YYYY-MM-DD.
variables"temperature_max" | "temperature_min" | "temperature_mean" | "precipitation" | "relative_humidity" | "wind_speed" | "solar_radiation"[]否Variables to return. Default: temperature_max, temperature_min, temperature_mean, precipitation.
aggregate"daily" | "monthly"否daily (default, at most 2,000 days per call) or monthly means for long periods.

search_earthquakes

Search the USGS global earthquake catalogue by area, magnitude and date. Returns magnitude, time (UTC), place, coordinates, depth and the USGS event page for each event.

POST /api/v1/search_earthquakes · 学科包:地球与环境 · 每次成功调用 1 积分

参数类型必填说明
latitudenumber否Centre latitude; use together with longitude.
longitudenumber否Centre longitude; use together with latitude.
radius_kmnumber否Search radius around the centre (default 100 km).
min_magnitudenumber否Smallest magnitude to include.
startstring否Earliest date, YYYY-MM-DD (UTC). Default: 30 days ago.
endstring否Latest date, YYYY-MM-DD (UTC). Default: now.
limitinteger否Events to return (default 20).
order"time" | "magnitude"否Newest first (time, default) or largest first.

get_water_data

Daily mean streamflow, gage height or water temperature from a USGS monitoring site in the United States, or a list of sites in a state or bounding box when no site number is given. Use the site list first if you do not know the site number.

POST /api/v1/get_water_data · 学科包:地球与环境 · 每次成功调用 1 积分

参数类型必填说明
sitestring否USGS site number, e.g. 01646500 (Potomac River near Washington, DC).
statestring否US state to list sites in: two-letter code (MD) or full name.
bboxnumber[]否Bounding box to list sites in: [west, south, east, north] in decimal degrees.
parameter"streamflow" | "gage_height" | "water_temperature"否What to measure (default streamflow).
startstring否First day, YYYY-MM-DD. Default: 30 days before end.
endstring否Last day, YYYY-MM-DD. Default: today.
limitinteger否Sites to list when no site is given (default 20).

search_species_occurrence

Find where and when a species has been recorded, from GBIF. Resolves a scientific or common name to a taxon, then returns the total record count and georeferenced occurrence records (coordinates, date, country, dataset, licence). Only CC0 and CC BY records are returned.

POST /api/v1/search_species_occurrence · 学科包:地球与环境 · 每次成功调用 1 积分

参数类型必填说明
speciesstring是Scientific name (Danaus plexippus) or common name (monarch butterfly).
countrystring否Two-letter ISO 3166 country code, e.g. MX.
year_frominteger否Earliest year of the record.
year_tointeger否Latest year of the record.
has_coordinatesboolean否Only records with coordinates (default true).
limitinteger否Records to return (default 50).

get_air_quality

Measured air quality near a point from OpenAQ: the nearest monitoring stations within 25 km and their daily mean PM2.5, PM10, NO2, O3, SO2 and CO with units. Use it for ground-station pollution data for a place and period.

POST /api/v1/get_air_quality · 学科包:地球与环境 · 每次成功调用 1 积分

参数类型必填说明
latitudenumber是Latitude in decimal degrees.
longitudenumber是Longitude in decimal degrees.
radius_kmnumber否Search radius in km (default and maximum 25).
pollutants"pm25" | "pm10" | "no2" | "o3" | "so2" | "co"[]否Pollutants to return. Default: all of pm25, pm10, no2, o3, so2, co.
startstring否First day, YYYY-MM-DD. Default: 7 days before end.
endstring否Last day, YYYY-MM-DD. Default: today.

lookup_astro_object

Resolve the name of a star, galaxy, nebula or other object outside the Solar System in SIMBAD. Returns the main identifier, object type, ICRS coordinates in degrees, parallax, proper motion, radial velocity, spectral type, V magnitude and other identifiers.

POST /api/v1/lookup_astro_object · 学科包:天文 · 每次成功调用 1 积分

参数类型必填说明
namestring是Object name or catalogue identifier, e.g. M31, Betelgeuse, HD 209458, TRAPPIST-1.

search_exoplanets

Search confirmed exoplanets in the NASA Exoplanet Archive (composite parameters, one row per planet) by host star, name, discovery method, distance, radius or discovery year. Returns period, radius, mass, equilibrium temperature, insolation, distance and the discovery reference. The habitable-zone filter is approximate.

POST /api/v1/search_exoplanets · 学科包:天文 · 每次成功调用 1 积分

参数类型必填说明
host_starstring否Exact host star name, e.g. TRAPPIST-1 or Kepler-186.
planet_namestring否Planet name or part of it, e.g. "Proxima Cen b".
discovery_methodstring否Discovery method, e.g. Transit, Radial Velocity, Imaging, Microlensing, Transit Timing Variations, Astrometry.
max_distance_pcnumber否Maximum distance from the Sun in parsecs.
min_radius_earthnumber否Minimum planet radius in Earth radii.
max_radius_earthnumber否Maximum planet radius in Earth radii.
in_habitable_zoneboolean否Approximate habitable zone only: insolation between 0.25 and 1.7 times what Earth receives.
discovered_afterinteger否Only planets discovered after this year.
limitinteger否Planets to return (default 25).

query_gaia

List Gaia DR3 sources within a radius of a sky position (cone search), brightest first. Returns position, parallax, proper motion, G/BP/RP magnitudes, radial velocity and effective temperature for each source. Use lookup_astro_object first to get the coordinates of a named object.

POST /api/v1/query_gaia · 学科包:天文 · 每次成功调用 1 积分

参数类型必填说明
ranumber是Right ascension of the centre in degrees (ICRS).
decnumber是Declination of the centre in degrees (ICRS).
radius_degnumber是Search radius in degrees (maximum 1.0).
max_g_magnumber否Only sources at least this bright in the G band.
limitinteger否Sources to return (default 50).

search_archives

Search digitised primary sources: historical US newspaper pages (Chronicling America, full OCR text), photographs, maps and manuscripts from the Library of Congress, and cultural heritage items from Europeana. Returns title, date, place, rights statement, thumbnail, item link and a text snippet for each item.

POST /api/v1/search_archives · 学科包:人文与数学 · 每次成功调用 1 积分

参数类型必填说明
querystring是Keywords, e.g. "influenza Chicago". For newspapers every word must appear on the page.
type"newspaper" | "image" | "manuscript" | "map" | "any"否Kind of material (default any).
date_frominteger否Earliest year, e.g. 1918.
date_tointeger否Latest year, e.g. 1918.
sources"loc" | "europeana"[]否Limit to these sources: loc (Library of Congress), europeana. Default: both.
limitinteger否Items to return (default 10).

lookup_integer_sequence

Identify or look up an integer sequence in the OEIS from its first terms ("1,1,2,3,5,8"), an A-number (A000045) or keywords. Returns the A-number, name, first terms, formulas and keywords. Use it to recognise a sequence from computed terms or to find its formula and references.

POST /api/v1/lookup_integer_sequence · 学科包:人文与数学 · 每次成功调用 1 积分

参数类型必填说明
querystring是Comma-separated terms such as "1,1,2,3,5,8", an A-number such as A000045, or keywords.
limitinteger否Sequences to return (default 5).