Submit compact eQTL Catalogue API requests for association retrieval and documented metadata endpoints. Use when a user wants concise public eQTL Catalogue summaries
scripts/rest_request.py for all eQTL Catalogue calls.base_url=https://www.ebi.ac.uk/eqtl/api.400/500/timeout failures even with documented parameter sets; treat this source as usable but upstream-fragile.quant_method, p_lower, p_upper, and blank filter strings because the live API is currently rejecting omitted optional filters.variant_id in requests; the script mirrors it to the legacy snp query key to accommodate the current server-side validator.genes/<gene_id>/associations, studies/<study>/associations, or tissue/study-scoped association routes with explicit filters, and surface upstream 400/500 errors verbatim when they occur.base_url, pathmethod, params, headers, json_body, form_body, record_path, response_format, max_items, max_depth, timeout_sec, save_raw, raw_output_path{"base_url":"https://www.ebi.ac.uk/eqtl/api","path":"genes/ENSG00000141510/associations","params":{"study":"<study>","tissue":"<tissue_ontology_id>","variant_id":"rs7903146","size":10},"max_items":10}{"base_url":"https://www.ebi.ac.uk/eqtl/api","path":"studies/<study>/associations","params":{"tissue":"<tissue_ontology_id>","variant_id":"rs7903146","size":10},"max_items":10}{"base_url":"https://www.ebi.ac.uk/eqtl/api","path":"associations/rs7903146","params":{"size":10},"max_items":10}ok, source, path, method, status_code, warnings, and either compact records or a compact summary.raw_output_path when save_raw=true.ok=false with error.code and error.message.echo '{"base_url":"https://www.ebi.ac.uk/eqtl/api","path":"genes/ENSG00000141510/associations","params":{"study":"<study>","tissue":"<tissue_ontology_id>","variant_id":"rs7903146","size":10},"max_items":10}' | python scripts/rest_request.py
scripts/rest_request.py.