https://github.com/ozgurg/google-currency-scraper
Scrape extremely up-to-date exchange rates from Google fast and free.
https://github.com/ozgurg/google-currency-scraper
acikkaynak currency currency-api google-scraper scraper
Last synced: 5 months ago
JSON representation
Scrape extremely up-to-date exchange rates from Google fast and free.
- Host: GitHub
- URL: https://github.com/ozgurg/google-currency-scraper
- Owner: ozgurg
- License: mit
- Created: 2022-07-01T22:55:15.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-07-09T19:13:12.000Z (almost 2 years ago)
- Last Synced: 2025-07-01T11:50:10.738Z (11 months ago)
- Topics: acikkaynak, currency, currency-api, google-scraper, scraper
- Language: JavaScript
- Homepage: https://npmjs.com/package/google-currency-scraper
- Size: 389 KB
- Stars: 11
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README


# google-currency-scraper
Scrape extremely up-to-date exchange rates from Google fast and for free, with only one external dependency.
## Install
```shell
npm install google-currency-scraper
```
## Usage
```javascript
import googleCurrencyScraper, { CurrencyCode } from "google-currency-scraper";
const currency = await googleCurrencyScraper({
from: CurrencyCode.USD, // You can use "USD" as well
to: CurrencyCode.TRY // You can use "TRY" as well
});
// {
// from: "USD",
// to: "TRY",
// rate: 32.2434,
// dateUpdated: "May 19, 13:59 UTC"
// }
```
## API
### googleCurrencyScraper(params) : object
#### params
Default: {}\
Type: object\
Required: Yes
#### params.from
Type: CurrencyCode | string\
Required: Yes
#### params.to
Type: CurrencyCode | string\
Required: Yes
### CurrencyCode
It's a helper object that contains all currency codes.
## License
[](https://github.com/ozgurg/google-currency-scraper/blob/main/LICENSE)