API Documentation
Version: 2.0 | Last Updated: May 2025
Overview
The EmergingTextiles.com API provides corporate subscribers with secure, programmatic access to comprehensive textile industry data spanning up to two decades of historical information. Our RESTful API delivers structured JSON responses containing market data, pricing information, production statistics, and industry trends.
This API is designed exclusively for corporate subscribers and offers enterprise-grade security, reliability, and performance. We provide you with ready-to-use endpoints for your specific data sets - no need to construct URLs or manage parameters.
Authentication
The EmergingTextiles API uses API key authentication. Every request must include a valid API key in the request headers.
API Key Requirements
Your API key acts as a secure password and provides access to your authorized data sets. Each corporate subscriber receives personal API keys with specific permissions and endpoint access.
Header Format
Include your API key in the X-API-Key
header with every request:
Base URL
All API requests should be made to the following base URL:
All endpoints are served over HTTPS. HTTP requests will be rejected.
API Endpoints
We provide you with ready-to-use endpoints for your specific data sets. Each endpoint corresponds to a specific spreadsheet and sheet within your corporate subscription.
Endpoint Structure
Your endpoints are pre-built and provided to you in the format:
Example Endpoints
Typical endpoints you might receive:
Data Retrieval
GET Each endpoint returns complete data from the specified sheet
Simply make a GET request to your provided endpoint - no additional parameters needed.
Request Format
Simple GET Request
Using your provided endpoint, make a simple GET request:
Alternative Endpoint Examples
Response Format
All API responses are returned in JSON format with a consistent structure.
Successful Response (200 OK)
Response Fields
Field | Type | Description |
---|---|---|
success |
boolean | Indicates if the request was successful |
data |
array | Array of arrays containing the spreadsheet data |
range |
string | The range of data that was retrieved |
total_records |
integer | Total number of data rows returned |
timestamp |
string | ISO 8601 timestamp of the response |
Error Handling
The API uses conventional HTTP response codes to indicate the success or failure of requests.
HTTP Status Codes
Status Code | Meaning | Description |
---|---|---|
200 | OK | Request successful |
400 | Bad Request | Invalid request parameters |
401 | Unauthorized | Invalid or missing API key |
403 | Forbidden | API key lacks required permissions |
404 | Not Found | Spreadsheet not found in registry |
500 | Internal Server Error | Server error occurred |
Error Response Format
Code Examples
Click any code block to copy to clipboard:
JavaScript (Node.js)
Python
PHP
Getting Started
Step 1: Get Corporate Subscription
API access is exclusive to corporate subscribers. Subscribe here to get started.
Step 2: Receive Your API Key & Endpoints
Once subscribed, you'll receive via email:
- Your personal API key for authentication
- Your specific endpoint URLs for each data set
- Documentation for your available data
Step 3: Test Your Access
Start with a simple GET request using one of your provided endpoints:
Step 4: Integrate Into Your Applications
Use the code examples above to integrate your endpoints into your business applications, dashboards, or reporting systems.