{
  "openapi": "3.0.1",
  "info": {
    "title": "Sketchfab Ai 3d Model Search",
    "description": "This Apify Actor queries the Sketchfab API smartly using Gemini 2.5 flash and lang-graph to search 3D models using filters like keywords, users, tags, categories, dates, downloadability, animation, polygons, PBR, rigging, formats, licenses, collections, and sorting, returning clean JSON results.",
    "version": "1.3",
    "x-build-id": "ewpc9QBzGFjvKZIIi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/amonsharma~sketchfab-ai-3d-model-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-amonsharma-sketchfab-ai-3d-model-search",
        "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/amonsharma~sketchfab-ai-3d-model-search/runs": {
      "post": {
        "operationId": "runs-sync-amonsharma-sketchfab-ai-3d-model-search",
        "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/amonsharma~sketchfab-ai-3d-model-search/run-sync": {
      "post": {
        "operationId": "run-sync-amonsharma-sketchfab-ai-3d-model-search",
        "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": {
          "useAI": {
            "title": "🤖 Enable AI Mode",
            "type": "boolean",
            "description": "Enable AI-powered natural language search using LangGraph + Google Gemini. AI converts your long text into optimized query + tags + categories. When false, use manual filters.",
            "default": false
          },
          "naturalQuery": {
            "title": "Natural Language Query",
            "type": "string",
            "description": "Describe what you're looking for in plain English - even long paragraphs! AI will convert it to SEO-optimized query + tags. Example: 'I need a futuristic cyberpunk car with neon lights, low poly for my Unity game'",
            "default": ""
          },
          "googleApiKey": {
            "title": "Google API Key",
            "type": "string",
            "description": "Your Google Gemini API key for AI processing. Get one at https://aistudio.google.com/apikey. Can also be set as GOOGLE_API_KEY environment variable."
          },
          "cursor": {
            "title": "📄 Pagination Cursor",
            "type": "string",
            "description": "Cursor for pagination (from previous response's next_cursor). Use this to fetch next/previous pages of results.",
            "default": ""
          },
          "count": {
            "title": "📊 Results Per Page",
            "minimum": 1,
            "maximum": 24,
            "type": "integer",
            "description": "Number of results per page (default: 24, max: 24)",
            "default": 24
          },
          "q": {
            "title": "Query Keywords",
            "type": "string",
            "description": "Space-separated keywords (e.g., 'car vehicle 3d'). Used in manual mode. AI mode generates this automatically.",
            "default": ""
          },
          "tags": {
            "title": "Tags",
            "type": "array",
            "description": "List of tag slugs (e.g., ['low-poly', 'game-ready', 'pbr']). Combined with query for best results.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Category slugs: animals-pets, architecture, cars-vehicles, characters-creatures, electronics-gadgets, fashion-style, food-drink, furniture-home, music, nature-plants, people, places-travel, science-technology, sports-fitness, weapons-military",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "downloadable": {
            "title": "Downloadable Only",
            "type": "boolean",
            "description": "Only show models that allow downloads (DEFAULT: true)",
            "default": true
          },
          "animated": {
            "title": "Animated",
            "type": "boolean",
            "description": "Only show animated models"
          },
          "rigged": {
            "title": "Rigged",
            "type": "boolean",
            "description": "Only rigged models with skeleton/bones"
          },
          "staffpicked": {
            "title": "Staff Picked",
            "type": "boolean",
            "description": "Only show staff-picked high-quality models"
          },
          "sound": {
            "title": "Has Sound",
            "type": "boolean",
            "description": "Only show models containing sound"
          },
          "pbr_type": {
            "title": "PBR Type",
            "enum": [
              "",
              "metalness",
              "specular",
              "true",
              "false"
            ],
            "type": "string",
            "description": "PBR filtering",
            "default": ""
          },
          "file_format": {
            "title": "File Format",
            "enum": [
              "",
              "gltf",
              "obj",
              "fbx",
              "blend",
              "dae",
              "3ds",
              "ply",
              "stl",
              "x3d"
            ],
            "type": "string",
            "description": "Filter by file format",
            "default": ""
          },
          "license": {
            "title": "License",
            "enum": [
              "",
              "CC0",
              "CC-BY",
              "CC-BY-SA",
              "CC-BY-ND",
              "CC-BY-NC",
              "CC-BY-NC-SA",
              "CC-BY-NC-ND"
            ],
            "type": "string",
            "description": "Filter by license type",
            "default": ""
          },
          "min_face_count": {
            "title": "Min Face Count",
            "type": "integer",
            "description": "Minimum polygon faces"
          },
          "max_face_count": {
            "title": "Max Face Count",
            "type": "integer",
            "description": "Maximum polygon faces (e.g., 10000 for low-poly)"
          },
          "sort_by": {
            "title": "Sort By",
            "enum": [
              "",
              "likes",
              "views",
              "publishedAt",
              "recent",
              "relevance"
            ],
            "type": "string",
            "description": "Sort results",
            "default": ""
          },
          "date": {
            "title": "Date Filter (Days)",
            "type": "integer",
            "description": "Limit to models from last X days (7=this week, 30=this month)"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}