API Overview
API Overview
Section titled “API Overview”DealAI.lt provides several API layers for data access, search, and integration.
API Types
Section titled “API Types”1. Database API
Section titled “1. Database API”Layer: PHP Functions
Location: /inc/products-db.php
Core functions for product and category data access.
2. Elasticsearch API
Section titled “2. Elasticsearch API”Layer: PHP Client
Location: /inc/elasticsearch.php
Search and indexing operations.
3. AJAX Endpoints
Section titled “3. AJAX Endpoints”Layer: WordPress admin-ajax.php
Location: functions.php
Dynamic frontend interactions.
4. Scrapyd API
Section titled “4. Scrapyd API”Layer: HTTP REST API
URL: http://78.56.0.236:6800
Web scraping job management.
Authentication
Section titled “Authentication”- WordPress: Built-in authentication
- AJAX: Nonce verification
- Scrapyd: Server-level access
Next Steps
Section titled “Next Steps”- Database Functions - Database API
- Elasticsearch API - Search API
- AJAX Endpoints - Frontend API
- Scrapyd API - Scraping API