# Exports API

> Public data endpoints for Exports.

Category: Utilities. Region: global. 3 endpoints at `https://api.hoshime.com/v1/exports/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/exports
## POST /v1/exports

Read every page of a list endpoint, such as every comment of a post, in the background, for download as JSON or CSV. Name the platform, the endpoint and its parameters without cursor or limit.

Scope: `social:read` · Units: 1

Response data fields: `attempt` (integer (int32)), `browser` (BrowserRequest | null), `browser.actions` (Action[]), `browser.env` (string[]), `browser.input` (map), `browser.profileId` (string), `browser.timeoutSeconds` (integer (int32)), `browser.tunnel` (string), `browser.url` (string), `browserResult` (BrowserResult | null), `browserResult.durationMs` (integer (int32)), `browserResult.evaluateResults` (string[]), `browserResult.finalUrl` (string), `browserResult.httpStatus` (integer (int32)), `clientRef` (string), `createdAt` (integer (int64)), `error` (string), `export` (ExportRequest | null), `export.endpoint` (string), `export.maxItems` (integer (int32)), `export.params` (map), `export.platform` (string), `exportResult` (ExportResult | null), `exportResult.complete` (boolean), `exportResult.items` (integer (int64)), `exportResult.pages` (integer (int32)), `exportResult.units` (integer (int64)), `finishedAt` (integer (int64) | null), `flow` (FlowRequest | null), `flow.input` (map), `flow.steps` (FlowStep[]), `flowResult` (FlowResult | null), `flowResult.steps` (FlowStepResult[]), `idempotencyKey` (string | null), `jobId` (string), `maxAttempts` (integer (int32)), `metadata` (map), `nextAttemptAt` (integer (int64)), `request` (HttpRequest | null), `request.body` (string), `request.headers` (map), `request.method` (string), `request.timeoutSeconds` (integer (int32)), `request.url` (string), `result` (HttpResult | null), `result.bodyPreview` (string), `result.latencyMs` (integer (int32)), `result.statusCode` (integer (int32)), `runAt` (integer (int64)), `scheduleId` (string), `script` (ScriptRequest | null), `script.env` (string[]), `script.runtime` (string), `script.source` (string), `script.timeoutSeconds` (integer (int32)), `scriptResult` (ScriptResult | null), `scriptResult.durationMs` (integer (int32)), `scriptResult.exitCode` (integer (int32)), `scriptResult.stderr` (string), `scriptResult.stdout` (string), `skills` (SkillsRequest | null), `skills.maxMinutes` (integer (int32)), `skills.profileId` (string), `skills.steps` (SkillStep[]), `skills.tunnel` (string), `skillsResult` (SkillsResult | null), `skillsResult.durationMs` (integer (int32)), `skillsResult.steps` (SkillStepResult[]), `startedAt` (integer (int64) | null), `status` (string), `ttl` (integer (int64)), `type` (string), `updatedAt` (integer (int64))

```bash
curl -X POST "https://api.hoshime.com/v1/exports" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/exports/{jobId}

Get an export: its status and exportResult, with the items and pages read so far.

Scope: `social:read` · Units: 1

| Parameter | Type | Required | Description |
|---|---|---|---|
| `jobId` | string | yes |  |

Response data fields: `attempt` (integer (int32)), `browser` (BrowserRequest | null), `browser.actions` (Action[]), `browser.env` (string[]), `browser.input` (map), `browser.profileId` (string), `browser.timeoutSeconds` (integer (int32)), `browser.tunnel` (string), `browser.url` (string), `browserResult` (BrowserResult | null), `browserResult.durationMs` (integer (int32)), `browserResult.evaluateResults` (string[]), `browserResult.finalUrl` (string), `browserResult.httpStatus` (integer (int32)), `clientRef` (string), `createdAt` (integer (int64)), `error` (string), `export` (ExportRequest | null), `export.endpoint` (string), `export.maxItems` (integer (int32)), `export.params` (map), `export.platform` (string), `exportResult` (ExportResult | null), `exportResult.complete` (boolean), `exportResult.items` (integer (int64)), `exportResult.pages` (integer (int32)), `exportResult.units` (integer (int64)), `finishedAt` (integer (int64) | null), `flow` (FlowRequest | null), `flow.input` (map), `flow.steps` (FlowStep[]), `flowResult` (FlowResult | null), `flowResult.steps` (FlowStepResult[]), `idempotencyKey` (string | null), `jobId` (string), `maxAttempts` (integer (int32)), `metadata` (map), `nextAttemptAt` (integer (int64)), `request` (HttpRequest | null), `request.body` (string), `request.headers` (map), `request.method` (string), `request.timeoutSeconds` (integer (int32)), `request.url` (string), `result` (HttpResult | null), `result.bodyPreview` (string), `result.latencyMs` (integer (int32)), `result.statusCode` (integer (int32)), `runAt` (integer (int64)), `scheduleId` (string), `script` (ScriptRequest | null), `script.env` (string[]), `script.runtime` (string), `script.source` (string), `script.timeoutSeconds` (integer (int32)), `scriptResult` (ScriptResult | null), `scriptResult.durationMs` (integer (int32)), `scriptResult.exitCode` (integer (int32)), `scriptResult.stderr` (string), `scriptResult.stdout` (string), `skills` (SkillsRequest | null), `skills.maxMinutes` (integer (int32)), `skills.profileId` (string), `skills.steps` (SkillStep[]), `skills.tunnel` (string), `skillsResult` (SkillsResult | null), `skillsResult.durationMs` (integer (int32)), `skillsResult.steps` (SkillStepResult[]), `startedAt` (integer (int64) | null), `status` (string), `ttl` (integer (int64)), `type` (string), `updatedAt` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/exports/{jobId}" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/exports/{jobId}/download

Download the items of an export as a JSON array or as CSV.

Scope: `social:read` · Units: 1

| Parameter | Type | Required | Description |
|---|---|---|---|
| `jobId` | string | yes |  |
| `format` | string | no | json (the default) or csv. (one of json, csv; default json) |

```bash
curl "https://api.hoshime.com/v1/exports/{jobId}/download" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
