Product Attributes Catalog
Get complete product attributes catalog with product ID, name (nazev), and registry number (regcis) from product_attributes1 table. Includes external_data (e.g., elnino_id) merged directly into each product. Returns ~89,000 records.
HTTP: GET /product-attributes
Query parameters
This endpoint does not require query parameters.
Notes
- 📦 Returns complete product catalog (~89,000 records)
- 📊 Data sources: product_attributes1 + external_data (testing_data database)
- 🔑 Base columns: product (ID), nazev (name), regcis (registry number)
- � External data merged directly: elnino_id and other external keys
- 🎯 Filter by external data: Use <code>?need=elnino_id</code> to return only products with that key
- 💡 Example: <code>/api/product-attributes?need=elnino_id</code> returns ~24,000 products
- 📝 Multiple filters: <code>?need=key_name</code> works with any external_data key
- 🔢 Limit results: Use <code>?limit=100</code> to get only first 100 products
- ⚡ Fast testing: <code>/api/product-attributes?limit=10</code> for quick API tests
- 🔀 Combine params: <code>?need=elnino_id&limit=50</code> for filtered + limited results
- �💾 Response size: ~5-10 MB JSON (full), ~2-3 MB (filtered)
- ⚡ Consider caching the response if called frequently
- 🔐 Requires API Key authentication
- 📖 Use for product lookups, data synchronization, and external system mapping
Sample request
curl -H "Authorization: ApiKey YOUR_API_KEY" "https://admin.elpricing.com/api/product-attributes"
Interactive call
Queue workflow
Tasks are persisted to var/api_queue/tasks.json. Process them with:
php go.php cron:list\nphp go.php cron:go
Logs are written to var/api_queue/logs/{task_id}.log.