canonical: https://jentic.com/apis/scb.se/scb-se

# Scb Se PxWeb API

Statistics Sweden PxWebApi v2 provides access to tables, metadata, and data from the Swedish Statistical Database. Supports GET and POST methods for data retrieval with multiple output formats. The API exposes 12 endpoints.

## For AI agents

Programmatically list all available tables with filtering and pagination, get a specific table by identifier. Covers 12 operations.

## Scope

Does not handle payments, communications, or developer tools - use for crm only.

## Capabilities

- List all available tables with filtering and pagination
- Get a specific table by identifier
- Fetch table data with custom filtering via POST
- Create and save a query for reuse
- Monitor PxWeb API operational status and events

## Use cases

### CRM Operations

Use the PxWeb API to perform crm operations programmatically. The API provides 12 endpoints covering core functionality including list all available tables with filtering and pagination, get a specific table by identifier, get detailed metadata for a table.

Example prompt: Call GET /tables to list all available tables with filtering and pagination

### Automated Codelists Management

Automate codelists operations by combining multiple PxWeb API endpoints. Agents can get a specific table by identifier and then get detailed metadata for a table in a single workflow.

Example prompt: Call GET `/tables/{id}` to get a specific table by identifier, then verify the result

### AI Agent Integration via Jentic

AI agents discover and call PxWeb API endpoints through Jentic without managing credentials directly. An agent searches for the required operation by intent, receives the matching endpoint schema, and executes the call with Jentic-managed authentication. This eliminates the need to read API documentation or handle none tokens manually.

Example prompt: Search Jentic for 'list all available tables with filtering and pagination', load the operation schema, and execute with Jentic-managed credentials

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| GET | `/tables` | List all available tables with filtering and pagination |
| GET | `/tables/{id}` | Get a specific table by identifier |
| GET | `/tables/{id}/metadata` | Get detailed metadata for a table |
| GET | `/tables/{id}/defaultselection` | Get default selection parameters for a table |
| POST | `/tables/{id}/data` | Fetch table data with custom filtering via POST |
| GET | `/tables/{id}/data` | Fetch table data with custom filtering via GET |
| POST | `/savedqueries` | Create and save a query for reuse |
| GET | `/savedqueries/{id}` | Retrieve a saved query by identifier |

## Key resources

- **Codelists** — Operations for codelists
- **Config** — Operations for config
- **Savedqueries** — Operations for savedqueries
- **Tables** — Operations for tables

## 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:** 69 / 100
- **Maturity:** AI-Aware
- **Dimensions:**
  - Foundational Compliance: 99 / 100
  - Developer Experience & Jentic Compatibility: 63 / 100
  - AI-Readiness & Agent Experience: 47 / 100
  - Agent Usability: 94 / 100
  - Security: 100 / 100
  - AI Discoverability: 61 / 100
- **View full report:** https://jentic.com/apis/scb.se/scb-se/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 the PxWeb API by hand means targeting the statistikdatabasen host, walking its table metadata and default-selection endpoints, and assembling data queries yourself. Through Jentic you install once, import the PxWeb API from the API Directory, and your agent calls it.
- **Permission scoping:** PxWeb puts the table id in the URL path (`/tables/{id}`), so a rule can pin your agent to one table. You choose the operations it may call, so a write like saving a query is not included unless you add it alongside the read and metadata operations.
- **Credential handling:** The PxWeb API endpoints take no credential, and Jentic executes the calls without placing any secret in the agent's prompt, logs, or context. Any configuration you do store is held encrypted by your own Jentic One instance and injected at execution time.
- **Discovery method:** Agents search Jentic by intent such as 'list available statistics tables' or 'fetch table data', and Jentic returns the matching PxWeb API operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **Hubspot** — Alternative crm API
- **Salesforce** — Alternative crm API
- **Pipedrive** — Complementary crm API
- **Zoho** — Complementary crm API

## FAQ

### What authentication does the PxWeb API use?

The PxWeb API uses no authentication. Through Jentic, these credentials are stored encrypted in your Jentic One instance and injected at execution time, so raw secrets never enter the agent context.

### Can I list all available tables with filtering and pagination with the PxWeb API?

Yes. Use the GET /tables endpoint. The API returns structured JSON responses that agents can parse and act on directly.

### What are the rate limits for the PxWeb API?

Rate limits are not specified in the OpenAPI spec. Check the vendor documentation for current limits. Through Jentic, rate limiting is handled automatically with retry logic built into the execution layer.

### How do I list all available tables with filtering and pagination through Jentic?

Install the Jentic SDK with pip install jentic, authenticate through Jentic One, the self-hosted execution layer, then search for 'list all available tables with filtering and pagination'. Jentic returns the matching PxWeb API operation with its input schema. Load the schema and execute the call - credentials are injected automatically.

### How many endpoints does the PxWeb API have?

The PxWeb API exposes 12 endpoints covering codelists, config, savedqueries operations.

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

Yes. Because you run Jentic One yourself, your own rules decide which PxWeb API operations and configuration your agent may use. Since the table id sits in the URL path, such as GET `/tables/{id}` and GET `/tables/{id}/metadata`, you can pin the agent to a single table and grant only the read and metadata calls it needs. A write such as POST /savedqueries stays out of reach unless you explicitly add it.
