{"id":28957110,"url":"https://github.com/developmentseed/landsat-api","last_synced_at":"2025-06-23T21:41:32.395Z","repository":{"id":19486918,"uuid":"22732760","full_name":"developmentseed/landsat-api","owner":"developmentseed","description":"[DEPRECATED] An API for Landsat Metadata using Elastic Search","archived":false,"fork":false,"pushed_at":"2017-01-18T16:35:31.000Z","size":231,"stargazers_count":63,"open_issues_count":4,"forks_count":22,"subscribers_count":67,"default_branch":"master","last_synced_at":"2024-04-10T03:11:36.776Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://api.developmentseed.org/satellites/landsat","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/developmentseed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-07T18:53:14.000Z","updated_at":"2023-12-08T22:09:20.000Z","dependencies_parsed_at":"2022-07-27T00:32:13.347Z","dependency_job_id":null,"html_url":"https://github.com/developmentseed/landsat-api","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/developmentseed/landsat-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developmentseed%2Flandsat-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developmentseed%2Flandsat-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developmentseed%2Flandsat-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developmentseed%2Flandsat-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developmentseed","download_url":"https://codeload.github.com/developmentseed/landsat-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developmentseed%2Flandsat-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261561355,"owners_count":23177586,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-23T21:41:28.982Z","updated_at":"2025-06-23T21:41:32.368Z","avatar_url":"https://github.com/developmentseed.png","language":"JavaScript","readme":"## Landsat8 Metadata API\n\n**Important:** This tool is retired and no longer maintianed. Please use [sat-api](https://github.com/sat-utils/sat-api).\n\nA version of **sat-api** with Landsat metadata is accessible [here](https://api.developmentseed.org/satellites/landsat).\n\n\u003chr /\u003e\n\nThis is an API for NASA/USGS Landsat-8 images. Landsat-api enables you to make geospatial, date and text queries on Landsat-8 metadata.\n\nThe metadata is released in csv format by USGS on a daily basis. You can download the raw metadata from [here](http://landsat.usgs.gov/metadata_service/bulk_metadata_files/LANDSAT_8.csv).\n\nDownload and install the lastest version of elastic search zip from [ES website](http://www.elasticsearch.org/download/)\n\nLandsat-api powers a number of projects including [Libra](https://libra.developmentseed.org) and AstroDigtal's [Imagery Browser](https://fetch.astrodigital.com).\n\n#### Dependencies\n\n- [MongoDb](http://docs.mongodb.org/v2.6/installation/) [2.6 or higher]\n\nor\n\n- [ElastiSearch](https://www.elastic.co/downloads/elasticsearch) [1.6 or higher]\n\n#### Installation\n\nInstall packages\n\n    $: npm install\n\nSet environment variables on your system or add an `.env` file to the root directory of the app:\n\n  - `DB_TYPE=mongo` choices are `mongo` or `es`\n  - `ES_HOST=example.com:9200` if you are using ElasticSearch\n  - `MONGODB_URL=mongodb://user:pass@example.com:11111/db_name` if you use MongoDb\n  - `AREA_LIMIT=500000` The area limit in (sq. km) for use in geo-spatial queries.\n  - `REDIS_USE=true` Whether to active the caching. Default is false.\n  - `REDIS_HOST=127.0.0.1` default is `127.0.0.1`\n  - `REDIS_PASSWORD=redispassword` Redis db password. Default is null.\n  - `REDIS_DATABASE=myredisdb` Name of the redis db. Default is null.\n  - `REDIS_PORT=6379` Redis port. Default is 6379.\n  - `LANDSAT_PAYLOAD_LIMIT` Limit of payload size for POST in bytes. Default is 2048000.\n\n#### Run\n\nTo run the api:\n\n    $ node index.js\n\nTo run the database updater\n\n    $ node updater.js\n\n*Note:* `updater.js` works with MongoDb. If you plan to update an ElasticSearch installation replace `updater.js` with examples found [here](https://github.com/developmentseed/landsat-meta-updater/tree/develop/examples).\n\n#### Test\n\n    $ npm test\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopmentseed%2Flandsat-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevelopmentseed%2Flandsat-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopmentseed%2Flandsat-api/lists"}