{"id":21754317,"url":"https://github.com/mr687/google-hotel-api","last_synced_at":"2025-03-21T03:14:29.800Z","repository":{"id":168558195,"uuid":"643828894","full_name":"mr687/google-hotel-api","owner":"mr687","description":"Google Hotel Unofficial API","archived":false,"fork":false,"pushed_at":"2024-05-08T00:17:49.000Z","size":91,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-27T03:02:55.950Z","etag":null,"topics":["api","google","hotel","unofficial"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/google-hotel-api","language":"TypeScript","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/mr687.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-22T08:41:26.000Z","updated_at":"2025-02-21T19:16:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"fbca6156-37d6-4945-b692-264c75738e5c","html_url":"https://github.com/mr687/google-hotel-api","commit_stats":null,"previous_names":["mr687/google-hotel-api"],"tags_count":1,"template":false,"template_full_name":"mr687/tsc-pkg-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mr687%2Fgoogle-hotel-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mr687%2Fgoogle-hotel-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mr687%2Fgoogle-hotel-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mr687%2Fgoogle-hotel-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mr687","download_url":"https://codeload.github.com/mr687/google-hotel-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244728235,"owners_count":20500023,"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":["api","google","hotel","unofficial"],"created_at":"2024-11-26T09:13:39.964Z","updated_at":"2025-03-21T03:14:29.780Z","avatar_url":"https://github.com/mr687.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google Hotel Unofficial API\n\n[![Build Status](https://travis-ci.org/mr687/google-hotel-api.svg?branch=main)](https://travis-ci.org/mr687/google-hotel-api)\n[![Coverage Status](https://coveralls.io/repos/github/mr687/google-hotel-api/badge.svg?branch=main)](https://coveralls.io/github/mr687/google-hotel-api?branch=main)\n[![Dependency Status](https://david-dm.org/mr687/google-hotel-api.svg)](https://david-dm.org/mr687/google-hotel-api)\n[![devDependency Status](https://david-dm.org/mr687/google-hotel-api/dev-status.svg)](https://david-dm.org/mr687/google-hotel-api#info=devDependencies)\n[![npm version](https://badge.fury.io/js/google-hotel-api.svg)](https://badge.fury.io/js/google-hotel-api)\n\n## Description\n\nThis is an unofficial API for Google Hotel. It is based on the [Google Hotel API](https://www.google.com/travel/hotels/). It is not affiliated with Google in any way.\n\n## Installation\n\n```bash\nnpm install google-hotel-api\n```\n\nor if you prefer yarn\n\n```bash\nyarn add google-hotel-api\n```\n\n## Usage\n\n```js\nconst { createHotelListing } = require('./dist/index');\n\nconst data = createHotelListing({\n\tlanguage: 'en',\n})\n.addHotel({\n\tid: '123abc',\n\tname: 'Belgrave House',\n\taddress: {\n\t\tformat: 'simple',\n\t\tcomponent: [\n\t\t\t{ name: 'addr1', value: '6 Acacia Ave' },\n\t\t\t{ name: 'addr2', value: 'Floor 5' },\n\t\t\t{ name: 'city', value: 'London' },\n\t\t\t{ name: 'province', value: 'Greater London' },\n\t\t\t{ name: 'postal_code', value: 'SW1W 9TQ' },\n\t\t]\n\t},\n\tcountry: 'GB',\n\tlatitude: 35.070374,\n\tlongitude: -106.213648,\n\tphone: {\n\t\ttype: 'main',\n\t\tvalue: '123-456-7890'\n\t},\n\tcategory: 'hotel',\n})\n.writeString();\n\nconsole.log(data);\n```\n\n```xml\n\u003c?xml version=\"1.0\"?\u003e\n\u003clistings xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"http://www.gstatic.com/localfeed/local_feed.xsd\"\u003e\n  \u003clanguage\u003een\u003c/language\u003e\n  \u003clisting\u003e\n    \u003cid\u003e123abc\u003c/id\u003e\n    \u003cname\u003eBelgrave House\u003c/name\u003e\n    \u003caddress format=\"simple\"\u003e\n      \u003ccomponent name=\"addr1\"\u003e6 Acacia Ave\u003c/component\u003e\n      \u003ccomponent name=\"addr2\"\u003eFloor 5\u003c/component\u003e\n      \u003ccomponent name=\"city\"\u003eLondon\u003c/component\u003e\n      \u003ccomponent name=\"province\"\u003eGreater London\u003c/component\u003e\n      \u003ccomponent name=\"postal_code\"\u003eSW1W 9TQ\u003c/component\u003e\n    \u003c/address\u003e\n    \u003ccountry\u003eGB\u003c/country\u003e\n    \u003clatitude\u003e35.070374\u003c/latitude\u003e\n    \u003clongitude\u003e-106.213648\u003c/longitude\u003e\n    \u003cphone type=\"main\"\u003e123-456-7890\u003c/phone\u003e\n    \u003ccategory\u003ehotel\u003c/category\u003e\n  \u003c/listing\u003e\n\u003c/listings\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmr687%2Fgoogle-hotel-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmr687%2Fgoogle-hotel-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmr687%2Fgoogle-hotel-api/lists"}