Parsera avatar

Parsera

Try for free

No credit card required

Go to Store
Parsera

Parsera

parsera-labs/parsera
Try for free

No credit card required

Extract Data from ANY website with Parsera.org

You can access the Parsera 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": "1.0",
5    "x-build-id": "bFa0cfFxmXIK1xfZr"
6  },
7  "servers": [
8    {
9      "url": "https://api.apify.com/v2"
10    }
11  ],
12  "paths": {
13    "/acts/parsera-labs~parsera/run-sync-get-dataset-items": {
14      "post": {
15        "operationId": "run-sync-get-dataset-items-parsera-labs-parsera",
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/parsera-labs~parsera/runs": {
50      "post": {
51        "operationId": "runs-sync-parsera-labs-parsera",
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/parsera-labs~parsera/run-sync": {
93      "post": {
94        "operationId": "run-sync-parsera-labs-parsera",
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        "required": [
134          "url",
135          "apiKey",
136          "attributes"
137        ],
138        "properties": {
139          "apiKey": {
140            "title": "Parsera API Key",
141            "type": "string",
142            "description": "Your Parsera API key for authentication"
143          },
144          "attributes": {
145            "title": "Extraction Attributes",
146            "type": "array",
147            "description": "Define what data to extract from the webpage"
148          },
149          "cookies": {
150            "title": "Custom Cookies",
151            "type": "array",
152            "description": "Custom cookies to use for the request (optional)"
153          },
154          "precisionMode": {
155            "title": "Precision Mode",
156            "type": "boolean",
157            "description": "Enable for more accurate but slower extraction",
158            "default": false
159          },
160          "proxyCountry": {
161            "title": "Proxy Location",
162            "enum": [
163              "random",
164              "Afghanistan",
165              "Albania",
166              "Algeria",
167              "Argentina",
168              "Armenia",
169              "Aruba",
170              "Australia",
171              "Austria",
172              "Azerbaijan",
173              "Bahamas",
174              "Bahrain",
175              "Bangladesh",
176              "Belarus",
177              "Belgium",
178              "BosniaandHerzegovina",
179              "Brazil",
180              "BritishVirginIslands",
181              "Brunei",
182              "Bulgaria",
183              "Cambodia",
184              "Cameroon",
185              "Canada",
186              "Chile",
187              "China",
188              "Colombia",
189              "CostaRica",
190              "Croatia",
191              "Cuba",
192              "Cyprus",
193              "Chechia",
194              "Denmark",
195              "DominicanRepublic",
196              "Ecuador",
197              "Egypt",
198              "ElSalvador",
199              "Estonia",
200              "Ethiopia",
201              "Finland",
202              "France",
203              "Georgia",
204              "Germany",
205              "Ghana",
206              "Greece",
207              "Guatemala",
208              "Guyana",
209              "HashemiteKingdomofJordan",
210              "HongKong",
211              "Hungary",
212              "India",
213              "Indonesia",
214              "Iran",
215              "Iraq",
216              "Ireland",
217              "Israel",
218              "Italy",
219              "Jamaica",
220              "Japan",
221              "Kazakhstan",
222              "Kenya",
223              "Kosovo",
224              "Kuwait",
225              "Latvia",
226              "Liechtenstein",
227              "Luxembourg",
228              "Macedonia",
229              "Madagascar",
230              "Malaysia",
231              "Mauritius",
232              "Mexico",
233              "Mongolia",
234              "Montenegro",
235              "Morocco",
236              "Mozambique",
237              "Myanmar",
238              "Nepal",
239              "Netherlands",
240              "NewZealand",
241              "Nigeria",
242              "Norway",
243              "Oman",
244              "Pakistan",
245              "Palestine",
246              "Panama",
247              "PapuaNewGuinea",
248              "Paraguay",
249              "Peru",
250              "Philippines",
251              "Poland",
252              "Portugal",
253              "PuertoRico",
254              "Qatar",
255              "RepublicOfLithuania",
256              "RepublicOfMoldova",
257              "Romania",
258              "Russia",
259              "SaudiArabia",
260              "Senegal",
261              "Serbia",
262              "Seychelles",
263              "Singapore",
264              "Slovakia",
265              "Slovenia",
266              "Somalia",
267              "SouthAfrica",
268              "SouthKorea",
269              "Spain",
270              "SriLanka",
271              "Sudan",
272              "Suriname",
273              "Sweden",
274              "Switzerland",
275              "Syria",
276              "Taiwan",
277              "Tajikistan",
278              "Thailand",
279              "TrinidadandTobago",
280              "Tunisia",
281              "Turkey",
282              "Uganda",
283              "Ukraine",
284              "UnitedArabEmirates",
285              "UnitedKingdom",
286              "UnitedStates",
287              "Uzbekistan",
288              "Venezuela",
289              "Vietnam",
290              "Zambia"
291            ],
292            "type": "string",
293            "description": "Country for the proxy IP (optional)"
294          },
295          "url": {
296            "title": "Target URL",
297            "pattern": "^https?://[^\\s/$.?#].[^\\s]*$",
298            "type": "string",
299            "description": "The webpage URL to extract data from"
300          }
301        }
302      },
303      "runsResponseSchema": {
304        "type": "object",
305        "properties": {
306          "data": {
307            "type": "object",
308            "properties": {
309              "id": {
310                "type": "string"
311              },
312              "actId": {
313                "type": "string"
314              },
315              "userId": {
316                "type": "string"
317              },
318              "startedAt": {
319                "type": "string",
320                "format": "date-time",
321                "example": "2025-01-08T00:00:00.000Z"
322              },
323              "finishedAt": {
324                "type": "string",
325                "format": "date-time",
326                "example": "2025-01-08T00:00:00.000Z"
327              },
328              "status": {
329                "type": "string",
330                "example": "READY"
331              },
332              "meta": {
333                "type": "object",
334                "properties": {
335                  "origin": {
336                    "type": "string",
337                    "example": "API"
338                  },
339                  "userAgent": {
340                    "type": "string"
341                  }
342                }
343              },
344              "stats": {
345                "type": "object",
346                "properties": {
347                  "inputBodyLen": {
348                    "type": "integer",
349                    "example": 2000
350                  },
351                  "rebootCount": {
352                    "type": "integer",
353                    "example": 0
354                  },
355                  "restartCount": {
356                    "type": "integer",
357                    "example": 0
358                  },
359                  "resurrectCount": {
360                    "type": "integer",
361                    "example": 0
362                  },
363                  "computeUnits": {
364                    "type": "integer",
365                    "example": 0
366                  }
367                }
368              },
369              "options": {
370                "type": "object",
371                "properties": {
372                  "build": {
373                    "type": "string",
374                    "example": "latest"
375                  },
376                  "timeoutSecs": {
377                    "type": "integer",
378                    "example": 300
379                  },
380                  "memoryMbytes": {
381                    "type": "integer",
382                    "example": 1024
383                  },
384                  "diskMbytes": {
385                    "type": "integer",
386                    "example": 2048
387                  }
388                }
389              },
390              "buildId": {
391                "type": "string"
392              },
393              "defaultKeyValueStoreId": {
394                "type": "string"
395              },
396              "defaultDatasetId": {
397                "type": "string"
398              },
399              "defaultRequestQueueId": {
400                "type": "string"
401              },
402              "buildNumber": {
403                "type": "string",
404                "example": "1.0.0"
405              },
406              "containerUrl": {
407                "type": "string"
408              },
409              "usage": {
410                "type": "object",
411                "properties": {
412                  "ACTOR_COMPUTE_UNITS": {
413                    "type": "integer",
414                    "example": 0
415                  },
416                  "DATASET_READS": {
417                    "type": "integer",
418                    "example": 0
419                  },
420                  "DATASET_WRITES": {
421                    "type": "integer",
422                    "example": 0
423                  },
424                  "KEY_VALUE_STORE_READS": {
425                    "type": "integer",
426                    "example": 0
427                  },
428                  "KEY_VALUE_STORE_WRITES": {
429                    "type": "integer",
430                    "example": 1
431                  },
432                  "KEY_VALUE_STORE_LISTS": {
433                    "type": "integer",
434                    "example": 0
435                  },
436                  "REQUEST_QUEUE_READS": {
437                    "type": "integer",
438                    "example": 0
439                  },
440                  "REQUEST_QUEUE_WRITES": {
441                    "type": "integer",
442                    "example": 0
443                  },
444                  "DATA_TRANSFER_INTERNAL_GBYTES": {
445                    "type": "integer",
446                    "example": 0
447                  },
448                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
449                    "type": "integer",
450                    "example": 0
451                  },
452                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
453                    "type": "integer",
454                    "example": 0
455                  },
456                  "PROXY_SERPS": {
457                    "type": "integer",
458                    "example": 0
459                  }
460                }
461              },
462              "usageTotalUsd": {
463                "type": "number",
464                "example": 0.00005
465              },
466              "usageUsd": {
467                "type": "object",
468                "properties": {
469                  "ACTOR_COMPUTE_UNITS": {
470                    "type": "integer",
471                    "example": 0
472                  },
473                  "DATASET_READS": {
474                    "type": "integer",
475                    "example": 0
476                  },
477                  "DATASET_WRITES": {
478                    "type": "integer",
479                    "example": 0
480                  },
481                  "KEY_VALUE_STORE_READS": {
482                    "type": "integer",
483                    "example": 0
484                  },
485                  "KEY_VALUE_STORE_WRITES": {
486                    "type": "number",
487                    "example": 0.00005
488                  },
489                  "KEY_VALUE_STORE_LISTS": {
490                    "type": "integer",
491                    "example": 0
492                  },
493                  "REQUEST_QUEUE_READS": {
494                    "type": "integer",
495                    "example": 0
496                  },
497                  "REQUEST_QUEUE_WRITES": {
498                    "type": "integer",
499                    "example": 0
500                  },
501                  "DATA_TRANSFER_INTERNAL_GBYTES": {
502                    "type": "integer",
503                    "example": 0
504                  },
505                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
506                    "type": "integer",
507                    "example": 0
508                  },
509                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
510                    "type": "integer",
511                    "example": 0
512                  },
513                  "PROXY_SERPS": {
514                    "type": "integer",
515                    "example": 0
516                  }
517                }
518              }
519            }
520          }
521        }
522      }
523    }
524  }
525}

Parsera 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 Parsera 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

  • 1 monthly user

  • 2 stars

  • >99% runs succeeded

  • 54 days response time

  • Created in Nov 2024

  • Modified 2 months ago

Categories