# ASIMOV SerpApi Module
[](https://unlicense.org)
[](https://blog.rust-lang.org/2025/02/20/Rust-1.85.0/)
[](https://crates.io/crates/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.
## 🛠️ Prerequisites
- [Rust](https://rust-lang.org) 1.85+ (2024 edition)
## ⬇️ Installation
### 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
[KNOW]: https://github.com/know-ontology
[RDF]: https://github.com/rust-rdf
[SerpApi]: https://serpapi.com
[SerpApi API key]: https://serpapi-python.readthedocs.io/en/latest/#serpapi.Client