# ASIMOV SerpApi Module
[](https://unlicense.org)
[](https://crates.io/crates/asimov-serpapi-module)
[](https://pypi.org/project/asimov-serpapi-module)
[](https://rubygems.org/gems/asimov-serpapi-module)
[](https://npmjs.com/package/asimov-serpapi-module)
[ASIMOV] module for data import powered by the [SerpApi] search data platform.
## ✨ Features
- Imports structured data from DuckDuckGo, Google, and Bing search results.
- Collects the raw JSON data via the SerpApi real-time API (requires an API key).
- Constructs a semantic knowledge graph based on the [KNOW] ontology.
- Supports plain JSON output as well as [RDF] output in the form of [JSON-LD].
- Distributed as a standalone static binary with zero runtime dependencies.
## 🛠️ Prerequisites
- [Rust] 1.85+ (2024 edition) if building from source code
## ⬇️ Installation
### Installation from PyPI
```bash
pip install -U asimov-serpapi-module
```
### Installation from RubyGems
```bash
gem install asimov-serpapi-module
```
### Installation from NPM
```bash
npm install -g asimov-serpapi-module
```
### Installation from Source Code
```bash
cargo install asimov-serpapi-module
```
## 👉 Examples
```bash
export SERPAPI_KEY="..."
```
### Fetching DuckDuckGo Results
```bash
asimov-serpapi-fetcher https://duckduckgo.com/?q=Isaac+Asimov # JSON
asimov-serpapi-importer https://duckduckgo.com/?q=Isaac+Asimov # JSON-LD
```
### Fetching Google Results
```bash
asimov-serpapi-fetcher https://www.google.com/search?q=Isaac+Asimov # JSON
asimov-serpapi-importer https://www.google.com/search?q=Isaac+Asimov # JSON-LD
```
### Fetching Bing Results
```bash
asimov-serpapi-fetcher https://www.bing.com/search?q=Isaac+Asimov # JSON
asimov-serpapi-importer https://www.bing.com/search?q=Isaac+Asimov # JSON-LD
```
## ⚙ Configuration
### Environment Variables
- `SERPAPI_KEY`: (required) the [SerpApi API key] to use
## 📚 Reference
### Installed Binaries
- `asimov-serpapi-fetcher`: collects JSON data from the SerpApi real-time API
- `asimov-serpapi-importer`: collects and transforms JSON into JSON-LD
### Supported Engines
Bing | `https://www.bing.com/search?q=` | ✅ | ✅
DuckDuckGo | `https://duckduckgo.com/?q=` | ✅ | ✅
Google | `https://www.google.com/search?q=` | ✅ | ✅
<img width="100" height="1"/> | <img width="550" height="1"/> | <img width="50" height="1"/> | <img width="50" height="1"/>
## 👨💻 Development
```bash
git clone https://github.com/asimov-modules/asimov-serpapi-module.git
```
---
[](https://x.com/intent/post?url=https://github.com/asimov-modules/asimov-serpapi-module&text=asimov-serpapi-module)
[](https://reddit.com/submit?url=https://github.com/asimov-modules/asimov-serpapi-module&title=asimov-serpapi-module)
[](https://news.ycombinator.com/submitlink?u=https://github.com/asimov-modules/asimov-serpapi-module&t=asimov-serpapi-module)
[](https://www.facebook.com/sharer/sharer.php?u=https://github.com/asimov-modules/asimov-serpapi-module)
[](https://www.linkedin.com/sharing/share-offsite/?url=https://github.com/asimov-modules/asimov-serpapi-module)
[ASIMOV]: https://github.com/asimov-platform
[JSON-LD]: https://json-ld.org
[KNOW]: https://github.com/know-ontology
[NPM]: https:/npmjs.org
[Python]: https://python.org
[RDF]: https://github.com/rust-rdf
[Ruby]: https://ruby-lang.org
[Rust]: https://rust-lang.org
[SerpApi]: https://serpapi.com
[SerpApi API key]: https://serpapi-python.readthedocs.io/en/latest/#serpapi.Client