API reference · Akta
akta/news
Integrate this model through SandBase's unified API, with production-ready schemas and examples.
Production endpoint
Send your first request
OpenAI-compatible endpoint with unified authentication and usage tracking.
POST
https://api.sandbase.ai/v1/runModel ID
akta/news01
Input Schema
22 parameters · 0 required · 22 optional
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | integer | Optional | Maximum number of articles to return. Default 10, max 1000. · Min: 1 · Max: 1000 |
query | string | Optional | Open-ended topic to track a theme or commodity that doesn't map to a specific company or industry (e.g. 'crude oil price developments', 'FDA drug approval'). · Min length: 1 |
title | string | Optional | Search articles whose title matches the text entered. · Min length: 1 |
offset | integer | Optional | Number of results to skip before returning records (pagination). · Min: 0 · Max: 9007199254740991 |
company | string | Optional | Company website (e.g. 'https://canva.com') or the company uuid returned by the Akta Company Search endpoint. A bare company name is NOT accepted here — resolve it via company-search first. · Min length: 1 |
end_date | string | Optional | End of the date range (YYYY-MM-DD). Defaults to today. |
industry | string[] | Optional | Filter by industry code(s) from Akta's 30,000+ industry taxonomy. Resolve a plain-text topic into codes via the Industry Search endpoint (/v1/industry/search). Comma-separated on the wire. |
countries | string[] | Optional | Filter by the country of the event. ISO country codes, comma-separated on the wire. |
type_list | string[] | Optional | Filter by news type code (see https://playground.akta.pro/news-tags.csv). Default all. |
start_date | string | Optional | Start of the date range (YYYY-MM-DD). Non-enterprise plans are limited to a 6-month lookback. |
blacklisted | string[] | Optional | Publisher domains to exclude. Comma-separated on the wire. |
iab_code_list | string[] | Optional | Filter by IAB codes. Comma-separated on the wire. |
sic_code_list | string[] | Optional | Filter by SIC codes. Comma-separated on the wire. |
group_articles | boolean | Optional | When true, groups similar articles from the same event. |
iptc_code_list | string[] | Optional | Filter by IPTC codes. Comma-separated on the wire. |
sentiment_list | string[] | Optional | Filter by sentiment. Accepted: positive, negative, neutral, all. Default all. |
naics_code_list | string[] | Optional | Filter by NAICS codes. Comma-separated on the wire. |
news_score_list | string[] | Optional | Filter by news score tier. Accepted: High, Medium, Low, all. Default all. |
entity_event_list | string[] | Optional | Filter by named events. Comma-separated on the wire. |
entity_person_list | string[] | Optional | Filter by named people. Comma-separated on the wire. |
entity_product_list | string[] | Optional | Filter by named products. Comma-separated on the wire. |
entity_location_list | string[] | Optional | Filter by named locations. Comma-separated on the wire. |
02
Output Schema
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the generation task |
status | string | Task status: pending, running, completed, failed, timeout |
model | string | Model used for the generation |
outputs | array | Array of output items |
outputs[].url | string | URL of the generated artifact |
outputs[].content_type | string | MIME type (e.g. image/png, video/mp4) |
error | object | null | Error details if failed, null on success |
error.type | string | Machine-readable error type code |
error.message | string | Human-readable error description |
Async Workflow
This model uses asynchronous execution. Submit a request and poll for the result.
- Submit — POST to /v1/run, receive an
id - Poll — GET /v1/run/{id} until status is
completed,failed, ortimeout - Retrieve — Read
outputsfrom the completed response
03
Code Examples
Ready-to-run snippets
# Step 1: Submit
curl -X POST https://api.sandbase.ai/v1/run \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "akta/news",
"prompt": "a beautiful sunset over mountains"
}'
# Step 2: Poll result (replace <id>)
curl https://api.sandbase.ai/v1/run/<id> \
-H "Authorization: Bearer YOUR_API_KEY"
