Skip to content

Exports API

3 endpointsUtilitiesGlobalsocial:read

Public data endpoints for Exports.

View as Markdown
POST/exports/undefinedRead 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.
GET/exports/{jobId}Get an export: its status and exportResult, with the items and pages read so far.
GET/exports/{jobId}Download the items of an export as a JSON array or as CSV.

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.

POST/v1/exports
scope social:read1 unit

No parameters.

Request body

export
ExportRequest | null
required
endpoint
string
required
maxItems
integer (int32)
params
map
platform
string
required
idempotencyKey
string
metadata
map

Response data

117 fields
attemptinteger (int32)
browserBrowserRequest | null
actionsAction[]
heightinteger (int32)
keystring
maxLoopsinteger (int32)
msinteger (int32)
optionalboolean | null
scriptstring
selectorstring
textstring
typestring
urlstring
urlPatternstring
valuesstring[]
widthinteger (int32)
envstring[]
inputmap
profileIdstring
timeoutSecondsinteger (int32)
tunnelstring
urlstring
browserResultBrowserResult | null
durationMsinteger (int32)
evaluateResultsstring[]
finalUrlstring
httpStatusinteger (int32)
clientRefstring
createdAtinteger (int64)
errorstring
exportExportRequest | null
endpointstring
maxItemsinteger (int32)
paramsmap
platformstring
exportResultExportResult | null
completeboolean
itemsinteger (int64)
pagesinteger (int32)
unitsinteger (int64)
finishedAtinteger (int64) | null
flowFlowRequest | null
inputmap
stepsFlowStep[]
aiFlowAI | null
browserBrowserRequest | null
checkFlowCheck | null
endpointFlowEndpoint | null
idstring
ifstring
maxAttemptsinteger (int32)
requestHttpRequest | null
scriptScriptRequest | null
skillsSkillsRequest | null
waitFlowWait | null
flowResultFlowResult | null
stepsFlowStepResult[]
attemptsinteger (int32)
errorstring
finishedAtinteger (int64) | null
idstring
outputany | null
startedAtinteger (int64)
statusstring
idempotencyKeystring | null
jobIdstring
maxAttemptsinteger (int32)
metadatamap
nextAttemptAtinteger (int64)
requestHttpRequest | null
bodystring
headersmap
methodstring
timeoutSecondsinteger (int32)
urlstring
resultHttpResult | null
bodyPreviewstring
latencyMsinteger (int32)
statusCodeinteger (int32)
runAtinteger (int64)
scheduleIdstring
scriptScriptRequest | null
envstring[]
runtimestring
sourcestring
timeoutSecondsinteger (int32)
scriptResultScriptResult | null
durationMsinteger (int32)
exitCodeinteger (int32)
stderrstring
stdoutstring
skillsSkillsRequest | null
maxMinutesinteger (int32)
profileIdstring
stepsSkillStep[]
optionalboolean
paramsobject | null
skillstring
tunnelstring
skillsResultSkillsResult | null
durationMsinteger (int32)
stepsSkillStepResult[]
attemptsinteger (int32)
codestring
durationMsinteger (int64)
errorstring
healedSkillHeal[]
resultobject | null
skillstring
startedAtinteger (int64)
statusstring
urlstring
startedAtinteger (int64) | null
statusstring
ttlinteger (int64)
typestring
updatedAtinteger (int64)
curl -X POST "https://api.hoshime.com/v1/exports" \
  -H "Authorization: Bearer $HOSHIME_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "export": {
      "endpoint": "…",
      "maxItems": 0,
      "params": {},
      "platform": "…"
    },
    "idempotencyKey": "…",
    "metadata": {}
  }'
200 Response shape
{
  "attempt": 0,
  "browser": {
    "actions": [
      {
        "height": 0,
        "key": "…",
        "maxLoops": 0,
        "ms": 0,
        "optional": null,
        "script": "…",
        "selector": "…",
        "text": "…",
        "type": "…",
        "url": "https://…",
        "urlPattern": "…",
        "values": [],
        "width": 0
      }
    ],
    "env": [
      "…"
    ],
    "input": {},
    "profileId": "abc123",
    "timeoutSeconds": 0,
    "tunnel": "…",
    "url": "https://…"
  },
  "browserResult": {
    "durationMs": 0,
    "evaluateResults": [
      "…"
    ],
    "finalUrl": "https://…",
    "httpStatus": 0
  },
  "clientRef": "…",
  "createdAt": 0,
  "error": "…",
  "export": {
    "endpoint": "…",
    "maxItems": 0,
    "params": {},
    "platform": "…"
  },
  "exportResult": {
    "complete": false,
    "items": 0,
    "pages": 0,
    "units": 0
  },
  "finishedAt": 0,
  "flow": {
    "input": {},
    "steps": [
      {
        "ai": null,
        "browser": null,
        "check": null,
        "endpoint": null,
        "id": "abc123",
        "if": "…",
        "maxAttempts": 0,
        "request": null,
        "script": null,
        "skills": null,
        "wait": null
      }
    ]
  },
  "flowResult": {
    "steps": [
      {
        "attempts": 0,
        "error": "…",
        "finishedAt": null,
        "id": "abc123",
        "output": null,
        "startedAt": 0,
        "status": "…"
      }
    ]
  },
  "idempotencyKey": "…",
  "jobId": "abc123",
  "maxAttempts": 0,
  "metadata": {},
  "nextAttemptAt": 0,
  "request": {
    "body": "…",
    "headers": {},
    "method": "…",
    "timeoutSeconds": 0,
    "url": "https://…"
  },
  "result": {
    "bodyPreview": "…",
    "latencyMs": 0,
    "statusCode": 0
  },
  "runAt": 0,
  "scheduleId": "abc123",
  "script": {
    "env": [
      "…"
    ],
    "runtime": "…",
    "source": "…",
    "timeoutSeconds": 0
  },
  "scriptResult": {
    "durationMs": 0,
    "exitCode": 0,
    "stderr": "…",
    "stdout": "…"
  },
  "skills": {
    "maxMinutes": 0,
    "profileId": "abc123",
    "steps": [
      {
        "optional": false,
        "params": null,
        "skill": "…"
      }
    ],
    "tunnel": "…"
  },
  "skillsResult": {
    "durationMs": 0,
    "steps": [
      {
        "attempts": 0,
        "code": "…",
        "durationMs": 0,
        "error": "…",
        "healed": [],
        "result": null,
        "skill": "…",
        "startedAt": 0,
        "status": "…",
        "url": "https://…"
      }
    ]
  },
  "startedAt": 0,
  "status": "…",
  "ttl": 0,
  "type": "…",
  "updatedAt": 0
}

{jobId}

GET/v1/exports/{jobId}

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

scope social:read1 unit

Parameters

jobId
string · path
required

Response data

117 fields
attemptinteger (int32)
browserBrowserRequest | null
actionsAction[]
heightinteger (int32)
keystring
maxLoopsinteger (int32)
msinteger (int32)
optionalboolean | null
scriptstring
selectorstring
textstring
typestring
urlstring
urlPatternstring
valuesstring[]
widthinteger (int32)
envstring[]
inputmap
profileIdstring
timeoutSecondsinteger (int32)
tunnelstring
urlstring
browserResultBrowserResult | null
durationMsinteger (int32)
evaluateResultsstring[]
finalUrlstring
httpStatusinteger (int32)
clientRefstring
createdAtinteger (int64)
errorstring
exportExportRequest | null
endpointstring
maxItemsinteger (int32)
paramsmap
platformstring
exportResultExportResult | null
completeboolean
itemsinteger (int64)
pagesinteger (int32)
unitsinteger (int64)
finishedAtinteger (int64) | null
flowFlowRequest | null
inputmap
stepsFlowStep[]
aiFlowAI | null
browserBrowserRequest | null
checkFlowCheck | null
endpointFlowEndpoint | null
idstring
ifstring
maxAttemptsinteger (int32)
requestHttpRequest | null
scriptScriptRequest | null
skillsSkillsRequest | null
waitFlowWait | null
flowResultFlowResult | null
stepsFlowStepResult[]
attemptsinteger (int32)
errorstring
finishedAtinteger (int64) | null
idstring
outputany | null
startedAtinteger (int64)
statusstring
idempotencyKeystring | null
jobIdstring
maxAttemptsinteger (int32)
metadatamap
nextAttemptAtinteger (int64)
requestHttpRequest | null
bodystring
headersmap
methodstring
timeoutSecondsinteger (int32)
urlstring
resultHttpResult | null
bodyPreviewstring
latencyMsinteger (int32)
statusCodeinteger (int32)
runAtinteger (int64)
scheduleIdstring
scriptScriptRequest | null
envstring[]
runtimestring
sourcestring
timeoutSecondsinteger (int32)
scriptResultScriptResult | null
durationMsinteger (int32)
exitCodeinteger (int32)
stderrstring
stdoutstring
skillsSkillsRequest | null
maxMinutesinteger (int32)
profileIdstring
stepsSkillStep[]
optionalboolean
paramsobject | null
skillstring
tunnelstring
skillsResultSkillsResult | null
durationMsinteger (int32)
stepsSkillStepResult[]
attemptsinteger (int32)
codestring
durationMsinteger (int64)
errorstring
healedSkillHeal[]
resultobject | null
skillstring
startedAtinteger (int64)
statusstring
urlstring
startedAtinteger (int64) | null
statusstring
ttlinteger (int64)
typestring
updatedAtinteger (int64)
curl "https://api.hoshime.com/v1/exports/{jobId}" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "attempt": 0,
  "browser": {
    "actions": [
      {
        "height": 0,
        "key": "…",
        "maxLoops": 0,
        "ms": 0,
        "optional": null,
        "script": "…",
        "selector": "…",
        "text": "…",
        "type": "…",
        "url": "https://…",
        "urlPattern": "…",
        "values": [],
        "width": 0
      }
    ],
    "env": [
      "…"
    ],
    "input": {},
    "profileId": "abc123",
    "timeoutSeconds": 0,
    "tunnel": "…",
    "url": "https://…"
  },
  "browserResult": {
    "durationMs": 0,
    "evaluateResults": [
      "…"
    ],
    "finalUrl": "https://…",
    "httpStatus": 0
  },
  "clientRef": "…",
  "createdAt": 0,
  "error": "…",
  "export": {
    "endpoint": "…",
    "maxItems": 0,
    "params": {},
    "platform": "…"
  },
  "exportResult": {
    "complete": false,
    "items": 0,
    "pages": 0,
    "units": 0
  },
  "finishedAt": 0,
  "flow": {
    "input": {},
    "steps": [
      {
        "ai": null,
        "browser": null,
        "check": null,
        "endpoint": null,
        "id": "abc123",
        "if": "…",
        "maxAttempts": 0,
        "request": null,
        "script": null,
        "skills": null,
        "wait": null
      }
    ]
  },
  "flowResult": {
    "steps": [
      {
        "attempts": 0,
        "error": "…",
        "finishedAt": null,
        "id": "abc123",
        "output": null,
        "startedAt": 0,
        "status": "…"
      }
    ]
  },
  "idempotencyKey": "…",
  "jobId": "abc123",
  "maxAttempts": 0,
  "metadata": {},
  "nextAttemptAt": 0,
  "request": {
    "body": "…",
    "headers": {},
    "method": "…",
    "timeoutSeconds": 0,
    "url": "https://…"
  },
  "result": {
    "bodyPreview": "…",
    "latencyMs": 0,
    "statusCode": 0
  },
  "runAt": 0,
  "scheduleId": "abc123",
  "script": {
    "env": [
      "…"
    ],
    "runtime": "…",
    "source": "…",
    "timeoutSeconds": 0
  },
  "scriptResult": {
    "durationMs": 0,
    "exitCode": 0,
    "stderr": "…",
    "stdout": "…"
  },
  "skills": {
    "maxMinutes": 0,
    "profileId": "abc123",
    "steps": [
      {
        "optional": false,
        "params": null,
        "skill": "…"
      }
    ],
    "tunnel": "…"
  },
  "skillsResult": {
    "durationMs": 0,
    "steps": [
      {
        "attempts": 0,
        "code": "…",
        "durationMs": 0,
        "error": "…",
        "healed": [],
        "result": null,
        "skill": "…",
        "startedAt": 0,
        "status": "…",
        "url": "https://…"
      }
    ]
  },
  "startedAt": 0,
  "status": "…",
  "ttl": 0,
  "type": "…",
  "updatedAt": 0
}

{jobId}

GET/v1/exports/{jobId}/download

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

scope social:read1 unit

Parameters

jobId
string · path
required
format
string
json (the default) or csv.
jsoncsv
default json
curl "https://api.hoshime.com/v1/exports/{jobId}/download" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
null
esc
↑↓ move↵ open