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.

POSThttps://api.sandbase.ai/v1/run
Model IDakta/news
01

Input Schema

22 parameters · 0 required · 22 optional

ParameterTypeRequiredDescription
limitintegerOptionalMaximum number of articles to return. Default 10, max 1000. · Min: 1 · Max: 1000
querystringOptionalOpen-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
titlestringOptionalSearch articles whose title matches the text entered. · Min length: 1
offsetintegerOptionalNumber of results to skip before returning records (pagination). · Min: 0 · Max: 9007199254740991
companystringOptionalCompany 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_datestringOptionalEnd of the date range (YYYY-MM-DD). Defaults to today.
industrystring[]OptionalFilter 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.
countriesstring[]OptionalFilter by the country of the event. ISO country codes, comma-separated on the wire.
type_liststring[]OptionalFilter by news type code (see https://playground.akta.pro/news-tags.csv). Default all.
start_datestringOptionalStart of the date range (YYYY-MM-DD). Non-enterprise plans are limited to a 6-month lookback.
blacklistedstring[]OptionalPublisher domains to exclude. Comma-separated on the wire.
iab_code_liststring[]OptionalFilter by IAB codes. Comma-separated on the wire.
sic_code_liststring[]OptionalFilter by SIC codes. Comma-separated on the wire.
group_articlesbooleanOptionalWhen true, groups similar articles from the same event.
iptc_code_liststring[]OptionalFilter by IPTC codes. Comma-separated on the wire.
sentiment_liststring[]OptionalFilter by sentiment. Accepted: positive, negative, neutral, all. Default all.
naics_code_liststring[]OptionalFilter by NAICS codes. Comma-separated on the wire.
news_score_liststring[]OptionalFilter by news score tier. Accepted: High, Medium, Low, all. Default all.
entity_event_liststring[]OptionalFilter by named events. Comma-separated on the wire.
entity_person_liststring[]OptionalFilter by named people. Comma-separated on the wire.
entity_product_liststring[]OptionalFilter by named products. Comma-separated on the wire.
entity_location_liststring[]OptionalFilter by named locations. Comma-separated on the wire.
02

Output Schema

FieldTypeDescription
idstringUnique identifier for the generation task
statusstringTask status: pending, running, completed, failed, timeout
modelstringModel used for the generation
outputsarrayArray of output items
outputs[].urlstringURL of the generated artifact
outputs[].content_typestringMIME type (e.g. image/png, video/mp4)
errorobject | nullError details if failed, null on success
error.typestringMachine-readable error type code
error.messagestringHuman-readable error description

Async Workflow

This model uses asynchronous execution. Submit a request and poll for the result.

  1. Submit — POST to /v1/run, receive an id
  2. Poll — GET /v1/run/{id} until status is completed, failed, or timeout
  3. Retrieve — Read outputs from 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"