SmartCrawler v2 · Agent-first crawler API

The v2 · Agent-first crawler API API from SmartCrawler — 13 operation(s) for v2 · agent-first crawler api.

GitHub OpenAPI

Operations 13

POST /api/v2/scrape Scrape #
POST /api/v2/map Map Site #
POST /api/v2/crawl Crawl #
GET /api/v2/crawl/{job_id} Crawl Status #
POST /api/v2/batch/scrape Batch Scrape #
POST /api/v2/extract Extract #
POST /api/v2/query Query #
GET /api/v2/sources List Sources #
GET /api/v2/ V2 Root #
POST /api/v2/custom/scrape Custom Scrape #
POST /api/v2/dataset/query Dataset Query #
POST /api/v2/custom/scrape/async Custom Scrape Async #
GET /api/v2/custom/job/{job_id} Custom Job Status #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/smartcrawler-io:smartcrawler-io-v2-agent-first-crawler-api-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

smartcrawler-io-v2-agent-first-crawler-api-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: smart-crawler — 为 AI Agent 打造的竞品数据采集引擎 v2 · Agent-first…
  description: '跨境电商竞品数据采集引擎,覆盖 9 大家居品牌 46 个独立站,并支持 Amazon/市场平台 VOC。


    **AI Agent 推荐用 MCP 接入**:`/mcp`(streamable-http,工具目录见 `/llms.txt`)。

    REST API 用 `X-API-Key: sck_...` 鉴权。能力总览见 `/agents.json`,站点简介见 `/llms.txt`。'
  version: 0.1.0
tags:
- name: v2 · Agent-first crawler API
paths:
  /api/v2/scrape:
    post:
      tags:
      - v2 · Agent-first crawler API
      summary: Scrape
      description: Single URL scrape with warehouse-first behavior.
      operationId: scrape_api_v2_scrape_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: Authorization
      - name: X-API-Key
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ScrapeRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v2/map:
    post:
      tags:
      - v2 · Agent-first crawler API
      summary: Map Site
      description: Map a configured site to known product URLs from the warehouse.
      operationId: map_site_api_v2_map_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: Authorization
      - name: X-API-Key
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MapRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v2/crawl:
    post:
      tags:
      - v2 · Agent-first crawler API
      summary: Crawl
      description: 'Validate or queue a full-site crawl.


        The default is dry_run=true to protect users from accidental high-cost

        crawls. Set dry_run=false explicitly to enqueue.'
      operationId: crawl_api_v2_crawl_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: Authorization
      - name: X-API-Key
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CrawlRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v2/crawl/{job_id}:
    get:
      tags:
      - v2 · Agent-first crawler API
      summary: Crawl Status
      description: Poll a queued crawl job.
      operationId: crawl_status_api_v2_crawl__job_id__get
      parameters:
      - name: job_id
        in: path
        required: true
        schema:
          type: integer
          title: Job Id
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: Authorization
      - name: X-API-Key
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v2/batch/scrape:
    post:
      tags:
      - v2 · Agent-first crawler API
      summary: Batch Scrape
      description: 'Batch scrape as a group of single URL calls.


        The MVP returns inline results for the first 100 URLs. A webhook-backed async

        batch can be layered on top of the same service later.'
      operationId: batch_scrape_api_v2_batch_scrape_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: Authorization
      - name: X-API-Key
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchScrapeRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v2/extract:
    post:
      tags:
      - v2 · Agent-first crawler API
      summary: Extract
      description: 'Extract structured fields from URLs.


        The MVP uses warehouse/live structured data and shapes it to the requested

        JSON schema. LLM extraction can be added as a final fallback.'
      operationId: extract_api_v2_extract_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: Authorization
      - name: X-API-Key
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExtractRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v2/query:
    post:
      tags:
      - v2 · Agent-first crawler API
      summary: Query
      description: Query smart-crawler's warehouse before spending live scrape credits.
      operationId: query_api_v2_query_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: Authorization
      - name: X-API-Key
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WarehouseQueryRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v2/sources:
    get:
      tags:
      - v2 · Agent-first crawler API
      summary: List Sources
      description: List all configured data sources with warehouse counts.
      operationId: list_sources_api_v2_sources_get
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: Authorization
      - name: X-API-Key
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v2/:
    get:
      tags:
      - v2 · Agent-first crawler API
      summary: V2 Root
      description: v2 API index.
      operationId: v2_root_api_v2__get
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: Authorization
      - name: X-API-Key
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v2/custom/scrape:
    post:
      tags:
      - v2 · Agent-first crawler API
      summary: Custom Scrape
      description: 通用数据采集:任意 URL → warehouse-first 抓取 → 带 provenance 入指定 dataset。
      operationId: custom_scrape_api_v2_custom_scrape_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: Authorization
      - name: X-API-Key
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomScrapeRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v2/dataset/query:
    post:
      tags:
      - v2 · Agent-first crawler API
      summary: Dataset Query
      description: 查通用数据集(extracted_records)。默认只返 main;include_staging=true 带 staging。
      operationId: dataset_query_api_v2_dataset_query_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: Authorization
      - name: X-API-Key
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DatasetQueryRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v2/custom/scrape/async:
    post:
      tags:
      - v2 · Agent-first crawler API
      summary: Custom Scrape Async
      description: 异步入队一条通用抓取任务,返回 job_id。worker 消费走 warehouse-first 落库。
      operationId: custom_scrape_async_api_v2_custom_scrape_async_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: Authorization
      - name: X-API-Key
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AsyncScrapeRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v2/custom/job/{job_id}:
    get:
      tags:
      - v2 · Agent-first crawler API
      summary: Custom Job Status
      description: 查询 spine 抓取任务状态。
      operationId: custom_job_status_api_v2_custom_job__job_id__get
      parameters:
      - name: job_id
        in: path
        required: true
        schema:
          type: integer
          title: Job Id
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: Authorization
      - name: X-API-Key
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ExtractRequest:
      properties:
        urls:
          items:
            type: string
          type: array
          title: Urls
          description: URLs to extract; max 25.
        schema:
          additionalProperties: true
          type: object
          title: Schema
        prompt:
          anyOf:
          - type: string
          - type: 'null'
          title: Prompt
      type: object
      required:
      - urls
      title: ExtractRequest
    CrawlRequest:
      properties:
        url:
          type: string
          title: Url
          description: Known site root URL.
        limit:
          type: integer
          maximum: 10000.0
          title: Limit
          default: 1000
        dry_run:
          type: boolean
          title: Dry Run
          description: 'Default true: estimate and validate without queuing a crawl job.'
          default: true
        include_paths:
          items:
            type: string
          type: array
          title: Include Paths
          default: []
        exclude_paths:
          items:
            type: string
          type: array
          title: Exclude Paths
          default: []
        max_depth:
          type: integer
          title: Max Depth
          default: 2
        poll_interval:
          type: integer
          title: Poll Interval
          default: 30
      type: object
      required:
      - url
      title: CrawlRequest
    BatchScrapeRequest:
      properties:
        urls:
          items:
            type: string
          type: array
          title: Urls
          description: URLs to scrape; max 100.
        formats:
          items:
            type: string
          type: array
          title: Formats
          default:
          - markdown
          - structured
        webhook:
          anyOf:
          - type: string
          - type: 'null'
          title: Webhook
      type: object
      required:
      - urls
      title: BatchScrapeRequest
    DatasetQueryRequest:
      properties:
        dataset:
          type: string
          title: Dataset
        query:
          anyOf:
          - type: string
          - type: 'null'
          title: Query
        entity_type:
          anyOf:
          - type: string
          - type: 'null'
          title: Entity Type
        include_staging:
          type: boolean
          title: Include Staging
          default: false
        limit:
          type: integer
          title: Limit
          default: 20
      type: object
      required:
      - dataset
      title: DatasetQueryRequest
    ScrapeRequest:
      properties:
        url:
          type: string
          title: Url
          description: URL to scrape.
        formats:
          items:
            type: string
          type: array
          title: Formats
          description: markdown / structured / html / links
          default:
          - markdown
          - structured
        only_main_content:
          type: boolean
          title: Only Main Content
          default: true
        wait_for:
          type: integer
          title: Wait For
          description: Extra wait in milliseconds.
          default: 0
        timeout:
          type: integer
          title: Timeout
          description: Timeout in milliseconds.
          default: 30000
        force_live:
          type: boolean
          title: Force Live
          description: Bypass warehouse cache.
          default: false
        mode:
          type: string
          title: Mode
          description: standard / advanced (browser_pool rendered scrape).
          default: standard
      type: object
      required:
      - url
      title: ScrapeRequest
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    CustomScrapeRequest:
      properties:
        url:
          type: string
          title: Url
        dataset:
          type: string
          title: Dataset
        entity_type:
          type: string
          title: Entity Type
          default: generic
        schema:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Schema
        force_live:
          type: boolean
          title: Force Live
          default: false
        save_policy:
          type: string
          title: Save Policy
          default: promote_if_valid
        max_age_sec:
          anyOf:
          - type: integer
          - type: 'null'
          title: Max Age Sec
      type: object
      required:
      - url
      - dataset
      title: CustomScrapeRequest
    AsyncScrapeRequest:
      properties:
        url:
          type: string
          title: Url
        dataset:
          type: string
          title: Dataset
        entity_type:
          type: string
          title: Entity Type
          default: generic
        save_policy:
          type: string
          title: Save Policy
          default: promote_if_valid
        force_live:
          type: boolean
          title: Force Live
          default: false
        max_retries:
          type: integer
          title: Max Retries
          default: 3
      type: object
      required:
      - url
      - dataset
      title: AsyncScrapeRequest
    MapRequest:
      properties:
        url:
          type: string
          title: Url
          description: Known site root URL.
        limit:
          type: integer
          maximum: 10000.0
          title: Limit
          default: 1000
        include_subdomains:
          type: boolean
          title: Include Subdomains
          default: false
        search:
          anyOf:
          - type: string
          - type: 'null'
          title: Search
      type: object
      required:
      - url
      title: MapRequest
    WarehouseQueryRequest:
      properties:
        query:
          type: string
          title: Query
          description: Keyword/category/SKU query.
        site:
          anyOf:
          - type: string
          - type: 'null'
          title: Site
        brand:
          anyOf:
          - type: string
          - type: 'null'
          title: Brand
        limit:
          type: integer
          maximum: 200.0
          title: Limit
          default: 20
      type: object
      required:
      - query
      title: WarehouseQueryRequest