Get Raw Data
Retrieve details of a specific raw data item by its ID.
Endpoint
GET https://api.platform.knowledgator.com/data/{id}/
Headers
| Name | Type | Description |
|---|---|---|
KnowledgatorAPI-Key | String | Your API key |
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | String | Yes | Unique data identifier |
Response
{
"id": "data-123",
"name": "Single Data Item",
"type": "ner",
"format": "jsonl",
"status": "ready",
"description": "Individual data item for NER",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}
Response Fields
id: Unique identifiername: Data nametype: Service typeformat: Data formatstatus: Current statusdescription: Optional descriptioncreated_at: ISO 8601 timestamp of creationupdated_at: ISO 8601 timestamp of last update
Error Codes
| Status Code | Description |
|---|---|
| 200 | OK – Request successful. |
| 401 | Unauthorized – Invalid API key. |
| 404 | Not Found – Invalid data ID. |
| 500 | Internal Server Error – Server-side issue. |
Example Usage
SDK Usage
💡 Dedicated SDK Guides: See Python SDK | TypeScript SDK
TypeScript/JavaScript
import { createClient } from '@knowledgator/typescript-sdk';
const kg = createClient('YOUR_API_KEY');
const item = await kg.datasets.getData('data-123');
console.log(item.name);
Python
from knowledgator import Knowledgator
kg = Knowledgator(api_key="YOUR_API_KEY")
item = kg.datasets.get_data('data-123')
print(item.name)
Python
import requests
data_id = "data-123"
url = f"https://api.platform.knowledgator.com/data/{data_id}/"
headers = {
"KnowledgatorAPI-Key": "YOUR_API_KEY"
}
response = requests.get(url, headers=headers)
print(response.json())
cURL
curl -X GET https://api.platform.knowledgator.com/data/data-123/ \
-H "KnowledgatorAPI-Key: YOUR_API_KEY"
Additional Information
- Direct Access: Use the unique ID to quickly retrieve specifically prepared data.
- Use Cases:
- Verifying data record details
- Checking processing status
- Retrieving metadata before processing