canonical: https://jentic.com/apis/soriaanalytics.com/soriaanalytics

# Soriaanalytics Soria Data API

The Soria Data API queries governed datasets without SQL: you filter, sort, select columns, and page through one dataset at a time with a structured query body. Its catalog documents every dataset's schema, grain, methodology, refresh cadence, and source provenance, generated from dbt, and a document search covers the public source documents behind the data. Larger pulls run as asynchronous CSV or Parquet exports that you poll and then download from a short-lived private URL.

## For AI agents

Look up Soria datasets in the catalog, run structured filter and sort queries against one dataset, pull column statistics, trace source files, search source documents, and export results to CSV or Parquet.

## Scope

Does not handle raw SQL execution, data uploads, or dashboard rendering. Use for reading, querying, and exporting Soria's governed datasets only.

## Capabilities

- Browse the dataset catalog by query text or domain and read each dataset's columns, grain, methodology, and update frequency
- Query one dataset with column selection, filters using operators such as eq, gte, in, and contains, ordering, and limit and offset paging
- Get a dataset's row count and the min, max, null count, and distinct count for a chosen column
- Trace which source files contributed to a dataset through its dbt lineage and fetch a download URL for one of them
- Search the public source-document corpus by query text with ticker, form, fiscal_year, and date range filters
- Queue a CSV or Parquet export of a filtered dataset, poll its status, and download the finished file

## Use cases

### Agent answers grounded in governed data

An analyst's agent answers a question by first reading the Soria catalog to pick the right dataset and understand its grain and methodology, then sending a structured query through Jentic with only the columns, filters, and ordering it needs. Because the query body accepts operators rather than SQL, the agent cannot write arbitrary statements, and a rule can pin it to a single dataset path.

Example prompt: Call GET /catalog with query 'revenue' to choose a dataset, read GET `/catalog/{dataset}/metadata` for its grain, then POST `/datasets/{dataset}/query` with columns, a gte filter, order_by descending, and limit 50

### Large extracts as CSV or Parquet

When a result set is too big to page through, the export flow queues a private CSV or Parquet file built from the same columns, filters, and order_by contract. The spec states files are capped at 2 GB, expire after 24 hours, and at most two exports may be queued or running per user, and the download endpoint redirects to a five-minute private S3 URL.

Example prompt: Call POST `/datasets/{dataset}/exports` with format parquet and a filter, poll GET `/exports/{export_id}` until status is ready, then call GET `/exports/{export_id}/download`

### Provenance checks before citing a number

Before a figure goes into a report, an agent can list the source files that contributed to the dataset through its dbt lineage, fetch a download URL for a specific file, and run a document search filtered by ticker, form, and fiscal_year to read the underlying source text.

Example prompt: Call GET `/datasets/{dataset}/files` with limit 20, then POST `/search/documents` with query 'segment revenue', ticker 'ACME', and fiscal_year 2025

### Quick column profiling

Profiling a column before building a chart or filter avoids surprises: the stats endpoint returns the dataset's row count and, for a named column, its min, max, null count, and distinct count.

Example prompt: Call GET `/datasets/{dataset}/stats` with column 'fiscal_year' and report the min, max, and null_count

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| GET | `/catalog` | List and search datasets |
| GET | `/catalog/{dataset}` | Full documentation for one dataset |
| POST | `/datasets/{dataset}/query` | Filter, sort, and page a dataset |
| GET | `/datasets/{dataset}/stats` | Row count and column statistics |
| POST | `/datasets/{dataset}/exports` | Queue a CSV or Parquet export |
| GET | `/exports/{export_id}` | Check export status |
| POST | `/search/documents` | Search source documents |

## Key resources

- **Catalog** — Dataset documentation: schemas, grain, methodology, refresh cadence, providers, and source links, plus lightweight metadata per dataset.
- **Datasets** — Structured queries, column statistics, contributing source files, and export creation for one dataset.
- **Exports** — Status and download of private CSV or Parquet exports.
- **Documents** — Search over the public source documents behind the datasets.

## AI readiness

This API is usable in Jentic One now. Its AI-readiness score against Jentic's framework shows where it stands today and where improvements would make it even easier for agents to use.

- **Score:** 65 / 100
- **Maturity:** AI-Aware
- **Dimensions:**
  - Foundational Compliance: 100 / 100
  - Developer Experience & Jentic Compatibility: 62 / 100
  - AI-Readiness & Agent Experience: 47 / 100
  - Agent Usability: 94 / 100
  - Security: 60 / 100
  - AI Discoverability: 60 / 100
- **View full report:** https://jentic.com/apis/soriaanalytics.com/soriaanalytics/scorecard
- **How the score is calculated:** https://docs.jentic.com/reference/api-readiness-framework/overview/
- **More about the dimensions:** https://docs.jentic.com/reference/api-readiness-framework/specification/#dimensional-model-overview

### Score it yourself

Every API in the directory is allowlisted, so you can re-score it with no key required.

- **Score your own API:** https://jentic.com/scorecard.md
- **Scoring CLI agent skill:** https://github.com/jentic/jentic-api-scorecard/blob/main/skills/jentic-api-scorecard/SKILL.md

```sh
npx @jentic/api-scorecard-cli score <openapi-url>
```

## Why Jentic

- **Setup:** Wiring Soria by hand means handling its bearer token, learning the structured filter and order_by contract, and writing the export poll and redirect-follow loop yourself. Through Jentic you install once, import Soria from the API Directory, store the token once, and your agent calls it.
- **Permission scoping:** Soria puts the dataset name in the URL path (`/datasets/{dataset}/...` and `/catalog/{dataset}`), so a rule can pin your agent to one dataset. You choose the operations it may call, so ones like export creation or source file downloads are not included unless you add them.
- **Credential handling:** Your Soria token is stored once, encrypted, by your own Jentic One instance and injected at execution time. It never enters the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'query a dataset' or 'search source documents', and Jentic returns the matching Soria operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **Socrata Open Data API (SODA)** — Query open government datasets on Socrata portals with SoQL.
- **Kaggle API** — Download community datasets, notebooks, and models.
- **FRED API** — Economic time series from the Federal Reserve Bank of St. Louis.

## FAQ

### What authentication does the Soria Data API use?

The Soria Data API authenticates with an HTTP bearer token in the Authorization header per its OpenAPI spec, and all of its operations declare that scheme. Exports are private to the authenticated user. Through Jentic the token is stored encrypted by your own Jentic One instance and injected at call time, so it never enters the agent's context.

### Can I run SQL against the Soria Data API?

No. POST `/datasets/{dataset}/query` is described as filtering, sorting, selecting, and paginating one dataset without accepting SQL. You send columns, a filters list where each filter has a column and an operator such as eq, ne, gt, lte, in, contains, or is_null, an order_by list, and limit and offset, and the response includes has_more and next_offset for paging.

### What are the rate limits for the Soria Data API?

The OpenAPI spec does not state request rate limits; check Soria's documentation at `soriaanalytics.com` for current limits. The spec does set export limits: files are capped at 2 GB, expire after 24 hours, and at most two exports may be queued or running per user.

### How do I export a filtered dataset through Jentic?

Install Jentic One with `curl -fsSL https://raw.githubusercontent.com/jentic/jentic-one/main/tools/install.sh | sh`, import the Soria Data API from the Jentic API Directory, and store your bearer token once. Your agent searches for 'export a dataset to CSV', gets POST `/datasets/{dataset}/exports` with its input schema, then polls GET `/exports/{export_id}` until the status is ready. To run it on your own infrastructure, install Jentic One from its GitHub repo.

### Is there a Soria MCP server?

You don't need an MCP server to give your agent the Soria Data API. Jentic connects it directly from the API Directory: import it, store your token once, and your agent calls it. Operations are discovered by intent when they are needed, so no extra tool definitions are loaded into the agent's context.

### Can I limit what my agent is allowed to do with the Soria Data API?

Yes. Write a rule that allows only the catalog, query, and stats operations under one dataset name. The agent can read that dataset's documentation, run filtered queries, and profile its columns, but cannot start exports or pull source files, and every call it makes is logged.
