Socket
Socket
Sign inDemoInstall

google-dictionary-api

Package Overview
Dependencies
121
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    google-dictionary-api

This is an unofficial API for google dictionary.


Version published
Weekly downloads
14
Maintainers
1
Install size
8.36 MB
Created
Weekly downloads
 

Readme

Source

Google Dictionary API

Google does not provide API for Google Dictionary.

Getting Started

Simply install package with

 npm i google-dictionary-api


  const googleDictionaryApi = require("google-dictionary-api")

  googleDictionaryApi.search('price', 'en')
    .then(results=>{
      console.log(results)
    })
    .catch(error=>{
      console.log(error)
    })

Language is optional, if you don't pass, it'll take english by default

[
    {
        "word": "price",
        "phonetic": "/prʌɪs/",
        "origin": "Middle English the noun from Old French pris, from Latin pretium ‘value, reward’; the verb, a variant (by assimilation to the noun) of earlier prise ‘estimate the value of’ (see prize). Compare with praise.",
        "meaning": {
            "noun": [
                {
                    "definition": "The amount of money expected, required, or given in payment for something.",
                    "example": "land could be sold for a high price",
                    "synonyms": [
                        "cost",
                        "asking price",
                        "selling price",
                        "charge",
                        "fee",
                        "terms",
                        "payment",
                        "rate",
                        "fare",
                        "levy",
                        "toll",
                        "amount",
                        "sum",
                        "total",
                        "figure"
                    ]
                },
                {
                    "definition": "An unwelcome experience or action undergone or done as a condition of achieving an objective.",
                    "example": "the price of their success was an entire day spent in discussion",
                    "synonyms": [
                        "consequence",
                        "result",
                        "cost",
                        "toll",
                        "penalty",
                        "sacrifice",
                        "forfeit",
                        "forfeiture"
                    ]
                }
            ],
            "verb": [
                {
                    "definition": "Decide the amount required as payment for (something offered for sale)",
                    "example": "the watches are priced at £55",
                    "synonyms": [
                        "fix the price of",
                        "set the price of",
                        "put a price on",
                        "cost",
                        "value",
                        "rate",
                        "evaluate",
                        "assess",
                        "estimate",
                        "appraise",
                        "assay"
                    ]
                },
                {
                    "definition": "Discover or establish the price of (something for sale)."
                }
            ]
        }
    }
]

For more reference, please visit https://github.com/meetDeveloper/googleDictionaryAPI

Keywords

FAQs

Last updated on 17 Oct 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc