Python SDK for the SuperSearch Product API
Project description
SuperSearch Python SDK
A simple Python client for the SuperSearch Product API.
Installation
pip install supersearch-db
Quick Start
from supersearch import SuperSearch
# Initialize client with your API key
client = SuperSearch(api_key="YOUR_API_KEY")
# Search for products
results = client.search("blue cotton hoodie under 2000 for men", limit=10)
for product in results:
print(f"{product['title']} - ₹{product['price']}")
API Reference
SuperSearch(api_key, base_url=None)
Initialize the client.
api_key(str): Your SuperSearch API keybase_url(str, optional): Custom API base URL
search(query, limit=10)
Search products using natural language.
query(str): Natural language search querylimit(int): Maximum results (default: 10, max: 250)- Returns: List of product dictionaries
pdp_search(query, limit=10)
AEO-optimized search for AI agents.
query(str): Natural language search querylimit(int): Maximum results (default: 10, max: 250)- Returns: List of detailed product dictionaries
suggestions()
Get example search queries.
- Returns: List of example query strings
Example Queries
# Filter by attributes
results = client.search("red nike running shoes for women")
# Price filtering
results = client.search("cotton t-shirt under 1500")
# Material + gender
results = client.search("leather jacket for men")
# Get suggestions
suggestions = client.suggestions()
Need an API Key?
Contact us at supersearch00@gmail.com to request access.
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
supersearch_db-0.1.1.tar.gz
(3.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file supersearch_db-0.1.1.tar.gz.
File metadata
- Download URL: supersearch_db-0.1.1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
151a252b19553323815a1be64d6a6207082743cd85940b89da92e694f1593938
|
|
| MD5 |
e170ccb8e17929004cc2b3e1b3f8b029
|
|
| BLAKE2b-256 |
07fcdc63e433f21aad525931cb2623f579865130256fa7c3a75e7bb425bf78ae
|
File details
Details for the file supersearch_db-0.1.1-py3-none-any.whl.
File metadata
- Download URL: supersearch_db-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06f13a6debb520b463596c363dbe6c5963a4811c101ab381d10a972605030b78
|
|
| MD5 |
6f35b49916cd7f5c66cb03d5185c0219
|
|
| BLAKE2b-256 |
2a6e88484be5007acac3b144b94c93f4d2a86ff1ab2de92c819409c777618549
|