---
title: "JSON to JSONP"
method: POST
path: "/v1/jsontojsonp"
tags: ["Data Conversion"]
---

# JSON to JSONP

`POST /v1/jsontojsonp`

## Request

- Base URL: `https://api.apiverve.com`
- URL: `https://api.apiverve.com/v1/jsontojsonp`
- Auth: API key in header `x-api-key`

JSON to JSONP is a simple tool for converting JSON data into JSONP format. It returns the converted JSONP data.

## Request body

- object
  - `json` string, required: The JSON data you want converted into JSONP format. Send it as an object or as a JSON-encoded string.
  - `callback` string: The callback function name to wrap the JSON data. Must be a JavaScript identifier, optionally dotted (e.g. myCallback or window.myCallback).

## Response `200`

Successful Response

- object
  - `status` string: status
  - `error` string: error
  - `data` object: data

## Other responses

- `401`: Your request was not authorized, or your API Key was invalid
- `404`: Requested resource was not found
- `500`: A server error has occurred, try again later

---

[API](https://skmtc.dev/apiverve/apis/apiverve-api.md) · [All operations](https://skmtc.dev/apiverve/apis/apiverve-api/llms.txt) · [OpenAPI document](https://skmtc.dev/apiverve/apis/apiverve-api/revisions/4b9a77598eb4?raw)
