8f0b9b181e4b7be813445c43693a3f666e8b7619 lrnassar Fri Oct 10 18:57:15 2025 -0700 Adding API key documentation and updating the CAPTCHA message so people can find it, refs #36428 diff --git src/hg/htdocs/FAQ/FAQdownloads.html src/hg/htdocs/FAQ/FAQdownloads.html index 64d080806a7..09095894f1a 100755 --- src/hg/htdocs/FAQ/FAQdownloads.html +++ src/hg/htdocs/FAQ/FAQdownloads.html @@ -43,30 +43,31 @@
  • Minus strand coordinates - axtNet files
  • Mapping UCSC STS marker IDS to those of other groups
  • deCODE map data
  • Direct MariaDB (MySQL) access to data
  • Name of fourth column in BED output
  • Track data access
  • How do I download dbSNP data?
  • Why doesn't this SNP have two alleles?
  • Known issues with Table Browser GTF output
  • Table Browser output file not ordered
  • 'Permisssion denied' error when trying to use command-line utilities
  • Restricted Track Data
  • What is the genome analysis set?
  • How do I download GenArk data?
  • Why are the conservation scores different from the ones in the download file?
  • +
  • How to make programmatic queries to the Genome Browser

  • Return to FAQ Table of Contents

    Downloading sequence and annotation data

    How do I obtain the sequence and/or annotation data for a release?

    Sequence and annotation data downloads are usually made available within the first week of the release of a new assembly. The download directories are automatically updated nightly to incorporate additions and modifications to the data.

    You can download sequence and annotation data using our FTP server, but we recommend using rsync, which has the advantage of starting up where it left off @@ -1285,16 +1286,35 @@

    https://hgdownload.soe.ucsc.edu/hubs/GCA/004/027/835/

    Conservation scores downloads

    Why are the conservation scores on the UCSC Genome Browser site different from the ones in the download file?

    The difference in the conservation scores, for both PhastCons and PhyloP, is that the wiggle database format (from which the details page and Table Browser scores are extracted) uses lossy compression that keeps enough resolution to display the pixelated scores in the browser graphic display but does not reconstruct the true original scores. This is why we make the original score files available for download.

    + +

    How to make programmatic queries to the Genome Browser

    +

    +To access the UCSC Genome Browser programmatically and bypass the CAPTCHA, all requests must +include an API key. Note than an API key is not needed to use our REST API.

    +

    +To generate your own key, first log in +with your UCSC Genome Browser account. Once logged in, go to the Hub Development page and generate a key +from the API key section at the bottom of the page.

    +

    +The key must be appended to your request URLs using the apiKey= variable. +Separate it from other URL parameters with an ampersand (&). For example, most queries will +work by adding apiKey=YOUR_UNIQUE_KEY to the end of the URL:

    +

    +https://genome.ucsc.edu/cgi-bin/hgTracks?db=hg38&apiKey=YOUR_UNIQUE_KEY

    +

    +If you experience any issues using the API key, please contact us.