XML to JSON Converter avatar

XML to JSON Converter

Try for free

2 hours trial then $1.00/month - No credit card required now

Go to Store
XML to JSON Converter

XML to JSON Converter

eloquent_mountain/xml-to-json-converter
Try for free

2 hours trial then $1.00/month - No credit card required now

XML to JSON Converter Convert any XML file to JSON effortlessly with this Apify actor. Handle complex XML structures and transform them into structured JSON data. Supports input via URL or direct text paste, making it easy to integrate into your data processing workflows.

You can access the XML to JSON Converter programmatically from your own applications by using the Apify API. You can choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.

1{
2  "openapi": "3.0.1",
3  "info": {
4    "version": "0.0",
5    "x-build-id": "HsHCTmfuk1uKqdLkO"
6  },
7  "servers": [
8    {
9      "url": "https://api.apify.com/v2"
10    }
11  ],
12  "paths": {
13    "/acts/eloquent_mountain~xml-to-json-converter/run-sync-get-dataset-items": {
14      "post": {
15        "operationId": "run-sync-get-dataset-items-eloquent_mountain-xml-to-json-converter",
16        "x-openai-isConsequential": false,
17        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
18        "tags": [
19          "Run Actor"
20        ],
21        "requestBody": {
22          "required": true,
23          "content": {
24            "application/json": {
25              "schema": {
26                "$ref": "#/components/schemas/inputSchema"
27              }
28            }
29          }
30        },
31        "parameters": [
32          {
33            "name": "token",
34            "in": "query",
35            "required": true,
36            "schema": {
37              "type": "string"
38            },
39            "description": "Enter your Apify token here"
40          }
41        ],
42        "responses": {
43          "200": {
44            "description": "OK"
45          }
46        }
47      }
48    },
49    "/acts/eloquent_mountain~xml-to-json-converter/runs": {
50      "post": {
51        "operationId": "runs-sync-eloquent_mountain-xml-to-json-converter",
52        "x-openai-isConsequential": false,
53        "summary": "Executes an Actor and returns information about the initiated run in response.",
54        "tags": [
55          "Run Actor"
56        ],
57        "requestBody": {
58          "required": true,
59          "content": {
60            "application/json": {
61              "schema": {
62                "$ref": "#/components/schemas/inputSchema"
63              }
64            }
65          }
66        },
67        "parameters": [
68          {
69            "name": "token",
70            "in": "query",
71            "required": true,
72            "schema": {
73              "type": "string"
74            },
75            "description": "Enter your Apify token here"
76          }
77        ],
78        "responses": {
79          "200": {
80            "description": "OK",
81            "content": {
82              "application/json": {
83                "schema": {
84                  "$ref": "#/components/schemas/runsResponseSchema"
85                }
86              }
87            }
88          }
89        }
90      }
91    },
92    "/acts/eloquent_mountain~xml-to-json-converter/run-sync": {
93      "post": {
94        "operationId": "run-sync-eloquent_mountain-xml-to-json-converter",
95        "x-openai-isConsequential": false,
96        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
97        "tags": [
98          "Run Actor"
99        ],
100        "requestBody": {
101          "required": true,
102          "content": {
103            "application/json": {
104              "schema": {
105                "$ref": "#/components/schemas/inputSchema"
106              }
107            }
108          }
109        },
110        "parameters": [
111          {
112            "name": "token",
113            "in": "query",
114            "required": true,
115            "schema": {
116              "type": "string"
117            },
118            "description": "Enter your Apify token here"
119          }
120        ],
121        "responses": {
122          "200": {
123            "description": "OK"
124          }
125        }
126      }
127    }
128  },
129  "components": {
130    "schemas": {
131      "inputSchema": {
132        "type": "object",
133        "properties": {
134          "xmlUrl": {
135            "title": "XML File URL",
136            "type": "string",
137            "description": "URL of the XML file to convert."
138          },
139          "xmlText": {
140            "title": "Paste XML Text",
141            "type": "string",
142            "description": "Paste your XML content directly."
143          }
144        }
145      },
146      "runsResponseSchema": {
147        "type": "object",
148        "properties": {
149          "data": {
150            "type": "object",
151            "properties": {
152              "id": {
153                "type": "string"
154              },
155              "actId": {
156                "type": "string"
157              },
158              "userId": {
159                "type": "string"
160              },
161              "startedAt": {
162                "type": "string",
163                "format": "date-time",
164                "example": "2025-01-08T00:00:00.000Z"
165              },
166              "finishedAt": {
167                "type": "string",
168                "format": "date-time",
169                "example": "2025-01-08T00:00:00.000Z"
170              },
171              "status": {
172                "type": "string",
173                "example": "READY"
174              },
175              "meta": {
176                "type": "object",
177                "properties": {
178                  "origin": {
179                    "type": "string",
180                    "example": "API"
181                  },
182                  "userAgent": {
183                    "type": "string"
184                  }
185                }
186              },
187              "stats": {
188                "type": "object",
189                "properties": {
190                  "inputBodyLen": {
191                    "type": "integer",
192                    "example": 2000
193                  },
194                  "rebootCount": {
195                    "type": "integer",
196                    "example": 0
197                  },
198                  "restartCount": {
199                    "type": "integer",
200                    "example": 0
201                  },
202                  "resurrectCount": {
203                    "type": "integer",
204                    "example": 0
205                  },
206                  "computeUnits": {
207                    "type": "integer",
208                    "example": 0
209                  }
210                }
211              },
212              "options": {
213                "type": "object",
214                "properties": {
215                  "build": {
216                    "type": "string",
217                    "example": "latest"
218                  },
219                  "timeoutSecs": {
220                    "type": "integer",
221                    "example": 300
222                  },
223                  "memoryMbytes": {
224                    "type": "integer",
225                    "example": 1024
226                  },
227                  "diskMbytes": {
228                    "type": "integer",
229                    "example": 2048
230                  }
231                }
232              },
233              "buildId": {
234                "type": "string"
235              },
236              "defaultKeyValueStoreId": {
237                "type": "string"
238              },
239              "defaultDatasetId": {
240                "type": "string"
241              },
242              "defaultRequestQueueId": {
243                "type": "string"
244              },
245              "buildNumber": {
246                "type": "string",
247                "example": "1.0.0"
248              },
249              "containerUrl": {
250                "type": "string"
251              },
252              "usage": {
253                "type": "object",
254                "properties": {
255                  "ACTOR_COMPUTE_UNITS": {
256                    "type": "integer",
257                    "example": 0
258                  },
259                  "DATASET_READS": {
260                    "type": "integer",
261                    "example": 0
262                  },
263                  "DATASET_WRITES": {
264                    "type": "integer",
265                    "example": 0
266                  },
267                  "KEY_VALUE_STORE_READS": {
268                    "type": "integer",
269                    "example": 0
270                  },
271                  "KEY_VALUE_STORE_WRITES": {
272                    "type": "integer",
273                    "example": 1
274                  },
275                  "KEY_VALUE_STORE_LISTS": {
276                    "type": "integer",
277                    "example": 0
278                  },
279                  "REQUEST_QUEUE_READS": {
280                    "type": "integer",
281                    "example": 0
282                  },
283                  "REQUEST_QUEUE_WRITES": {
284                    "type": "integer",
285                    "example": 0
286                  },
287                  "DATA_TRANSFER_INTERNAL_GBYTES": {
288                    "type": "integer",
289                    "example": 0
290                  },
291                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
292                    "type": "integer",
293                    "example": 0
294                  },
295                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
296                    "type": "integer",
297                    "example": 0
298                  },
299                  "PROXY_SERPS": {
300                    "type": "integer",
301                    "example": 0
302                  }
303                }
304              },
305              "usageTotalUsd": {
306                "type": "number",
307                "example": 0.00005
308              },
309              "usageUsd": {
310                "type": "object",
311                "properties": {
312                  "ACTOR_COMPUTE_UNITS": {
313                    "type": "integer",
314                    "example": 0
315                  },
316                  "DATASET_READS": {
317                    "type": "integer",
318                    "example": 0
319                  },
320                  "DATASET_WRITES": {
321                    "type": "integer",
322                    "example": 0
323                  },
324                  "KEY_VALUE_STORE_READS": {
325                    "type": "integer",
326                    "example": 0
327                  },
328                  "KEY_VALUE_STORE_WRITES": {
329                    "type": "number",
330                    "example": 0.00005
331                  },
332                  "KEY_VALUE_STORE_LISTS": {
333                    "type": "integer",
334                    "example": 0
335                  },
336                  "REQUEST_QUEUE_READS": {
337                    "type": "integer",
338                    "example": 0
339                  },
340                  "REQUEST_QUEUE_WRITES": {
341                    "type": "integer",
342                    "example": 0
343                  },
344                  "DATA_TRANSFER_INTERNAL_GBYTES": {
345                    "type": "integer",
346                    "example": 0
347                  },
348                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
349                    "type": "integer",
350                    "example": 0
351                  },
352                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
353                    "type": "integer",
354                    "example": 0
355                  },
356                  "PROXY_SERPS": {
357                    "type": "integer",
358                    "example": 0
359                  }
360                }
361              }
362            }
363          }
364        }
365      }
366    }
367  }
368}

XML to JSON Converter OpenAPI definition

OpenAPI is a standard for designing and describing RESTful APIs, allowing developers to define API structure, endpoints, and data formats in a machine-readable way. It simplifies API development, integration, and documentation.

OpenAPI is effective when used with AI agents and GPTs by standardizing how these systems interact with various APIs, for reliable integrations and efficient communication.

By defining machine-readable API specifications, OpenAPI allows AI models like GPTs to understand and use varied data sources, improving accuracy. This accelerates development, reduces errors, and provides context-aware responses, making OpenAPI a core component for AI applications.

You can download the OpenAPI definitions for XML to JSON Converter from the options below:

If you’d like to learn more about how OpenAPI powers GPTs, read our blog post.

You can also check out our other API clients:

Developer
Maintained by Community

Actor Metrics

  • 2 monthly users

  • 1 bookmark

  • 94% runs succeeded

  • Created in Nov 2024

  • Modified 2 months ago