# GraphQL Extractor (`jupri/graphql-extractor`) Actor

💫 Universal  GraphQL Scraper

- **URL**: https://apify.com/jupri/graphql-extractor.md
- **Developed by:** [cat](https://apify.com/jupri) (community)
- **Categories:** Developer tools
- **Stats:** 28 total users, 0 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-usage

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Welcome to GraphQL Extractor

![dont be sad readme is here](https://raw.githubusercontent.com/JupriGH/resources/main/cats/catframe.png)

### 🕸️ About GRAPHQL

![enter image description here](https://www.gravitee.io/hubfs/graphql.png)

**GraphQL**  is a data  [query](https://en.wikipedia.org/wiki/Query_language "Query language")  and  [manipulation](https://en.wikipedia.org/wiki/Data_manipulation_language "Data manipulation language")  language for  [APIs](https://en.wikipedia.org/wiki/API "API")  that allows a  [client](https://en.wikipedia.org/wiki/Client%E2%80%93server_model "Client–server model")  to specify what data it needs ("[declarative](https://en.wikipedia.org/wiki/Declarative_programming "Declarative programming")  data fetching"). A GraphQL server can fetch data from separate sources for a single client query and present the results in a unified  [graph](https://en.wikipedia.org/wiki/Graph_(abstract_data_type) "Graph (abstract data type)").[[2]](https://en.wikipedia.org/wiki/GraphQL#cite_note-2)  It is not tied to any specific  [database](https://en.wikipedia.org/wiki/Database "Database")  or storage engine.


### 🕸️ About This Actor

Trying to be Universal **GraphQL** Scraper Actor

Web scraping is so much easier now, thanks to **GraphQL**. It’s like you ask websites for data, and they just serve it up on a silver platter, no fuss. Honestly, it's made scraping feel less like a chore and more like a friendly chat with the internet. Now, here's hoping [Amazon.com](Amazon.com) jumps on the **GraphQL** bandwagon soon—fingers crossed!


![enter image description here](https://image.shutterstock.com/image-vector/vector-illustration-under-construction-sign-260nw-1665084250.jpg)

### 🕸️ Examples (Use Cases)

#### Example #1: `https://apify.hashnode.dev`

Scraping blogs from	 [https://apify.hashnode.dev](https://apify.hashnode.dev)

##### URL :
````

https://apify.hashnode.dev/api/graphql

````
##### Command :

```graphql
query ($host: String!, $after: String, $first: Int!, $filter: PublicationPostConnectionFilter) {
  publication(host: $host) {
    id
    posts(after: $after, first: $first, filter: $filter) {
      edges {
        node {
          __typename id title subtitle slug publishedAt  url brief
        }
        __typename
      }
      pageInfo { hasNextPage endCursor __typename }
      totalDocuments
      __typename
    }
    __typename
  }
}
````

##### Variables :

```yaml
{
    "host": "apify.hashnode.dev"
}
```

##### ACTOR INPUT :

```yaml
{
    "limit": 200,

    "url": "https://apify.hashnode.dev/api/graphql",
    "variables": "{ \"host\": \"apify.hashnode.dev\", \"first\": 10 }",
    
    "query": "query ($host: String!, $after: String, $first: Int!, $filter: PublicationPostConnectionFilter) {\r\n publication(host: $host) {\r\n id\r\n posts(after: $after, first: $first, filter: $filter) {\r\n edges {\r\n node {\r\n __typename id title subtitle slug publishedAt url brief\r\n }\r\n __typename\r\n }\r\n pageInfo { hasNextPage endCursor __typename }\r\n totalDocuments\r\n __typename\r\n }\r\n __typename\r\n }\r\n}",

    "cursor.step"	: 25,
    "cursor.next"	: "after",
    "cursor.limit"	: "first",

    "parse.root"	: "publication.posts",
    "parse.list"	: "edges",
    "parse.item"	: "node",
    "parse.total"	: "totalDocuments",
    "parse.next"	: "pageInfo.endCursor"

}
```

### 🕸️ GraphQL Quick Guide

#### Lesson #1: BASIC

```php
SYNTAX: 
	{ commandName(parameter: ARGUMENT) { FIELD_LIST } }
```

***Example :***

```php
{ 
	search(name:"pants" count:10) { id name __typename } 
}
```

***JSON Input :***

```yaml
{
	"query": "{ search(name:\"pants\" count:10) { id name __typename } }"
}
```

#### Lesson #2: VARIABLES

```php
SYNTAX: 
	query ($VARIABLE: TYPE) { commandName(parameter: $VARIABLE) { FIELD_LIST } }
```

***Example :***

```php
query ($text:String $limit:Int) { 
	search(name:$text count:$limit) { id name __typename } 
}
```

***JSON Input :***

```yaml
{
	"query": "query ($text:String $limit:Int){ search(name:$text count:$limit){id name __typename} }",
	"variables": { "text": "pants", "limit": 10 }
}
```

#### Lesson  #3: FRAGMENT

```php
SYNTAX:
	query ($VARIABLE: TYPE) { commandName(parameter: $VARIABLE) { ... FRAGMENT_NAME } }
	fragment FRAGMENT_NAME on TYPE { FIELD_LIST }
```

***Example: Without Fragment***

```php
query ($text:String $limit:Int) {
	search(name:$text count:$limit) { 
		id name sku description url specifications __typename 
		variations { id name sku description url __typename  }
		similarProducts { id name sku description url __typename }
	} 
}
```

***Example: With Fragment***

```php
query ($text:String $limit:Int) { 
	search(name:$text count:$limit) { 
		... ProductInfo 
		specifications 
		variations { ... ProductInfo  }
		similarProducts { ... ProductInfo }
	} 
}

fragment ProductInfo on Product { id name sku description url __typename }
```

# Actor input Schema

## `limit` (type: `integer`):

💡 Number of results

## `url` (type: `string`):

💡 GraphQL URL

## `query` (type: `string`):

💡 GraphQL command or SHA1 Code (Persistent QUERY Code => <code>32 BYTES/64 HEX Char</code>)

## `variables` (type: `string`):

💡 GraphQL input variables (JSON)

## `cursor.step` (type: `integer`):

💡 Maximum number of <code>IPP</code> (items-per-page)

## `cursor.index` (type: `string`):

💡 Pagination MODE 1️⃣: <code>VARIABLES\[INDEX]</code> value will increased by <code>+1</code>

## `cursor.next` (type: `string`):

💡 Pagination MODE 2️⃣: <code>VARIABLES\[NEXT]</code> will set to cursor value from previous request

## `cursor.offset` (type: `string`):

💡 Pagination MODE 3️⃣: <code>VARIABLES\[OFFSET]</code> value will increased by <code>+STEP</code>

## `cursor.limit` (type: `string`):

💡 Pagination: <code>VARIABLES\[LIMIT]</code> will set to number of <code>IPP</code> (<code>STEP</code>)

## `parse.root` (type: `string`):

💡 Root of data

## `parse.list` (type: `string`):

💡 <code>ROOT\[LIST]</code>: Result List (relative to <code>ROOT</code>)

## `parse.item` (type: `string`):

💡 <code>LIST\[ITEM]</code>: Path to Item (relative to <code>LIST</code>)

## `parse.total` (type: `string`):

💡 <code>ROOT\[TOTAL]</code>: Total number of Data (relative to <code>ROOT</code>)

## `parse.next` (type: `string`):

💡 <code>ROOT\[NEXT]</code>: Cursor value for next page request

## `no_typename` (type: `boolean`):

No description

## `dev_proxy_config` (type: `object`):

💡 <b>Supported protocol:</b><br><br><b>HTTP(S), SOCKS5</b><br><code>{http|socks5}://{user:pass}@{hostname|ip-address}:port</code><br><br><b>Example</b>: <code>socks5://example.com:9000</code>

## `dev_custom_headers` (type: `array`):

💡 Additional HTTP Headers

## `dev_custom_cookies` (type: `array`):

💡 Additional HTTP Cookies

## `dev_transform_fields` (type: `array`):

💡 <b>Transform the resulting output. Select only needed fields.</b><br><br>For nested object use <b>DOT</b>. For example: <pre>address.streetAddress</pre><br>For nested array use <b>NUMBER</b> <i>(index of array element starting from index=0)</i>. For example: <pre>images.0.url</pre>

## `dev_dataset_name` (type: `string`):

💡 <b>Save results into custom named Dataset, use mask to customize dataset name</b><br><br><code>{ACTOR} = actor name<br>{DATE} = date (YYYYMMDD)<br>{TIME} = time (HHMMSS)</code><br><br>This masks can be used to autogenerate Dataset Name.<br><br>example: <i><code>data-{DATE}</code></i><br>Depending on today date the dataset name will be: <code>data-20230603</code><i><br><br>default: <code>data-{ACTOR}-{DATE}-{TIME}</code></i>

## `dev_dataset_clear` (type: `boolean`):

Clear Dataset before insert/update.

## `dev_no_strip` (type: `boolean`):

💡 Keep/Save empty values <i><code>(NULL, FALSE, empty ARRAY, empty OBJECT, empty STRING)</code></i>

## Actor input object example

```json
{
  "limit": 100,
  "url": "https://apify.hashnode.dev/api/graphql",
  "query": "query ($host: String!, $after: String, $first: Int!, $filter: PublicationPostConnectionFilter) {\r\n    publication(host: $host) {\r\n        id\r\n        posts(after: $after, first: $first, filter: $filter) {\r\n            edges {\r\n                node {\r\n                    __typename id title subtitle slug publishedAt url brief\r\n                }\r\n                __typename\r\n            }\r\n            pageInfo { hasNextPage endCursor __typename }\r\n            totalDocuments\r\n            __typename\r\n        }\r\n        __typename\r\n    }\r\n}",
  "variables": "{ \"host\": \"apify.hashnode.dev\", \"first\": 10 }",
  "cursor.step": 25,
  "cursor.next": "after",
  "cursor.limit": "first",
  "parse.root": "publication.posts",
  "parse.list": "edges",
  "parse.item": "node",
  "parse.total": "totalDocuments",
  "parse.next": "pageInfo.endCursor"
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "limit": 100,
    "url": "https://apify.hashnode.dev/api/graphql",
    "query": `query ($host: String!, $after: String, $first: Int!, $filter: PublicationPostConnectionFilter) {
    publication(host: $host) {
        id
        posts(after: $after, first: $first, filter: $filter) {
            edges {
                node {
                    __typename id title subtitle slug publishedAt url brief
                }
                __typename
            }
            pageInfo { hasNextPage endCursor __typename }
            totalDocuments
            __typename
        }
        __typename
    }
}`,
    "variables": "{ \"host\": \"apify.hashnode.dev\", \"first\": 10 }",
    "cursor.step": 25,
    "cursor.index": "",
    "cursor.next": "after",
    "cursor.offset": "",
    "cursor.limit": "first",
    "parse.root": "publication.posts",
    "parse.list": "edges",
    "parse.item": "node",
    "parse.total": "totalDocuments",
    "parse.next": "pageInfo.endCursor"
};

// Run the Actor and wait for it to finish
const run = await client.actor("jupri/graphql-extractor").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "limit": 100,
    "url": "https://apify.hashnode.dev/api/graphql",
    "query": """query ($host: String!, $after: String, $first: Int!, $filter: PublicationPostConnectionFilter) {\r
    publication(host: $host) {\r
        id\r
        posts(after: $after, first: $first, filter: $filter) {\r
            edges {\r
                node {\r
                    __typename id title subtitle slug publishedAt url brief\r
                }\r
                __typename\r
            }\r
            pageInfo { hasNextPage endCursor __typename }\r
            totalDocuments\r
            __typename\r
        }\r
        __typename\r
    }\r
}""",
    "variables": "{ \"host\": \"apify.hashnode.dev\", \"first\": 10 }",
    "cursor.step": 25,
    "cursor.index": "",
    "cursor.next": "after",
    "cursor.offset": "",
    "cursor.limit": "first",
    "parse.root": "publication.posts",
    "parse.list": "edges",
    "parse.item": "node",
    "parse.total": "totalDocuments",
    "parse.next": "pageInfo.endCursor",
}

# Run the Actor and wait for it to finish
run = client.actor("jupri/graphql-extractor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "limit": 100,
  "url": "https://apify.hashnode.dev/api/graphql",
  "query": "query ($host: String!, $after: String, $first: Int!, $filter: PublicationPostConnectionFilter) {\\r\\n    publication(host: $host) {\\r\\n        id\\r\\n        posts(after: $after, first: $first, filter: $filter) {\\r\\n            edges {\\r\\n                node {\\r\\n                    __typename id title subtitle slug publishedAt url brief\\r\\n                }\\r\\n                __typename\\r\\n            }\\r\\n            pageInfo { hasNextPage endCursor __typename }\\r\\n            totalDocuments\\r\\n            __typename\\r\\n        }\\r\\n        __typename\\r\\n    }\\r\\n}",
  "variables": "{ \\"host\\": \\"apify.hashnode.dev\\", \\"first\\": 10 }",
  "cursor.step": 25,
  "cursor.index": "",
  "cursor.next": "after",
  "cursor.offset": "",
  "cursor.limit": "first",
  "parse.root": "publication.posts",
  "parse.list": "edges",
  "parse.item": "node",
  "parse.total": "totalDocuments",
  "parse.next": "pageInfo.endCursor"
}' |
apify call jupri/graphql-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=jupri/graphql-extractor",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "GraphQL Extractor",
        "description": "💫 Universal  GraphQL Scraper",
        "version": "0.0",
        "x-build-id": "QGvYQdohPETzd30T9"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/jupri~graphql-extractor/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-jupri-graphql-extractor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/jupri~graphql-extractor/runs": {
            "post": {
                "operationId": "runs-sync-jupri-graphql-extractor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/jupri~graphql-extractor/run-sync": {
            "post": {
                "operationId": "run-sync-jupri-graphql-extractor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "limit": {
                        "title": "♾️ LIMIT",
                        "type": "integer",
                        "description": "💡 Number of results"
                    },
                    "url": {
                        "title": "❓ URL",
                        "type": "string",
                        "description": "💡 GraphQL URL"
                    },
                    "query": {
                        "title": "❓ QUERY",
                        "type": "string",
                        "description": "💡 GraphQL command or SHA1 Code (Persistent QUERY Code => <code>32 BYTES/64 HEX Char</code>)"
                    },
                    "variables": {
                        "title": "❓ VARIABLES",
                        "type": "string",
                        "description": "💡 GraphQL input variables (JSON)"
                    },
                    "cursor.step": {
                        "title": "❓ STEP",
                        "type": "integer",
                        "description": "💡 Maximum number of <code>IPP</code> (items-per-page)"
                    },
                    "cursor.index": {
                        "title": "❓ INDEX",
                        "type": "string",
                        "description": "💡 Pagination MODE 1️⃣: <code>VARIABLES[INDEX]</code> value will increased by <code>+1</code>"
                    },
                    "cursor.next": {
                        "title": "❓ NEXT",
                        "type": "string",
                        "description": "💡 Pagination MODE 2️⃣: <code>VARIABLES[NEXT]</code> will set to cursor value from previous request"
                    },
                    "cursor.offset": {
                        "title": "❓ OFFSET",
                        "type": "string",
                        "description": "💡 Pagination MODE 3️⃣: <code>VARIABLES[OFFSET]</code> value will increased by <code>+STEP</code>"
                    },
                    "cursor.limit": {
                        "title": "❓ LIMIT",
                        "type": "string",
                        "description": "💡 Pagination: <code>VARIABLES[LIMIT]</code> will set to number of <code>IPP</code> (<code>STEP</code>)"
                    },
                    "parse.root": {
                        "title": "❓ ROOT",
                        "type": "string",
                        "description": "💡 Root of data"
                    },
                    "parse.list": {
                        "title": "❓ LIST",
                        "type": "string",
                        "description": "💡 <code>ROOT[LIST]</code>: Result List (relative to <code>ROOT</code>)"
                    },
                    "parse.item": {
                        "title": "❓ ITEM",
                        "type": "string",
                        "description": "💡 <code>LIST[ITEM]</code>: Path to Item (relative to <code>LIST</code>)"
                    },
                    "parse.total": {
                        "title": "❓ TOTAL",
                        "type": "string",
                        "description": "💡 <code>ROOT[TOTAL]</code>: Total number of Data (relative to <code>ROOT</code>)"
                    },
                    "parse.next": {
                        "title": "❓ NEXT",
                        "type": "string",
                        "description": "💡 <code>ROOT[NEXT]</code>: Cursor value for next page request"
                    },
                    "no_typename": {
                        "title": "❓ Remove request \"__typename\" atttributes",
                        "type": "boolean",
                        "description": ""
                    },
                    "dev_proxy_config": {
                        "title": "🌐 PROXY NETWORKING",
                        "type": "object",
                        "description": "💡 <b>Supported protocol:</b><br><br><b>HTTP(S), SOCKS5</b><br><code>{http|socks5}://{user:pass}@{hostname|ip-address}:port</code><br><br><b>Example</b>: <code>socks5://example.com:9000</code>"
                    },
                    "dev_custom_headers": {
                        "title": "📜 HTTP HEADERS",
                        "type": "array",
                        "description": "💡 Additional HTTP Headers",
                        "items": {
                            "type": "object",
                            "required": [
                                "key",
                                "value"
                            ],
                            "properties": {
                                "key": {
                                    "type": "string",
                                    "title": "Key"
                                },
                                "value": {
                                    "type": "string",
                                    "title": "Value"
                                }
                            }
                        }
                    },
                    "dev_custom_cookies": {
                        "title": "🍰 HTTP COOKIES",
                        "type": "array",
                        "description": "💡 Additional HTTP Cookies",
                        "items": {
                            "type": "object",
                            "required": [
                                "key",
                                "value"
                            ],
                            "properties": {
                                "key": {
                                    "type": "string",
                                    "title": "Key"
                                },
                                "value": {
                                    "type": "string",
                                    "title": "Value"
                                }
                            }
                        }
                    },
                    "dev_transform_fields": {
                        "title": "♻️ CUSTOM FIELD",
                        "type": "array",
                        "description": "💡 <b>Transform the resulting output. Select only needed fields.</b><br><br>For nested object use <b>DOT</b>. For example: <pre>address.streetAddress</pre><br>For nested array use <b>NUMBER</b> <i>(index of array element starting from index=0)</i>. For example: <pre>images.0.url</pre>",
                        "items": {
                            "type": "object",
                            "required": [
                                "key",
                                "value"
                            ],
                            "properties": {
                                "key": {
                                    "type": "string",
                                    "title": "Key"
                                },
                                "value": {
                                    "type": "string",
                                    "title": "Value"
                                }
                            }
                        }
                    },
                    "dev_dataset_name": {
                        "title": "📁 CUSTOM STORAGE",
                        "type": "string",
                        "description": "💡 <b>Save results into custom named Dataset, use mask to customize dataset name</b><br><br><code>{ACTOR} = actor name<br>{DATE} = date (YYYYMMDD)<br>{TIME} = time (HHMMSS)</code><br><br>This masks can be used to autogenerate Dataset Name.<br><br>example: <i><code>data-{DATE}</code></i><br>Depending on today date the dataset name will be: <code>data-20230603</code><i><br><br>default: <code>data-{ACTOR}-{DATE}-{TIME}</code></i>"
                    },
                    "dev_dataset_clear": {
                        "title": "Clear Storage",
                        "type": "boolean",
                        "description": "Clear Dataset before insert/update."
                    },
                    "dev_no_strip": {
                        "title": "Disable data cleansing",
                        "type": "boolean",
                        "description": "💡 Keep/Save empty values <i><code>(NULL, FALSE, empty ARRAY, empty OBJECT, empty STRING)</code></i>"
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
