Expanded Limits, Across all tiers - Our Gift to you! Learn more →

AlterLab
SearchResearchPricingComparePlaygroundBlogDocsChangelog
    AlterLabAlterLab
    PricingComparePlaygroundBlogDocsChangelog
    IntroductionQuickstartInstallationYour First Request
    REST APICrawl APIMap APISearch APIResearch APINewSERP APINewExtract APIAIJob PollingDomain StatsNewGeocode APINewNews APIBatch ResultsNewAPI KeysSessions APINewEnterprise APIEnterprise
    AccountAutoAI VisibilityAutoAlertsAutoAuthAutoBillingAutoCrawlAutoExtractAutoIntegrationsAutoKeysAutoMapAutoMonitorsAutoOrganizationsAutoResearch SchedulesAutoRunsAutoSchedulesAutoScrapeAutoSearchAutoSearch SchedulesAutoSessionsAutoUser WebhooksAutoV1 EndpointsAutoAffiliatesAutoAgentAutoAgent OnboardingAutoAgent VisibilityAutoAnalyticsAutoApprovalsAutoArtifactsAutoAttributionAutoB2BAutoBatchAutoBeta FeaturesAutoBlogAutoBuyerAutoChatAutoConnectionsAutoConnectorsAutoContact ListsAutoCreatorAutoCross SellAutoDashboardAutoDefaultsAutoDomainsAutoEmail PreferencesAutoFcAutoHandsAutoHealthAutoJobsAutoListingsAutoMaintenanceAutoNewsAutoOauthAutoOauth GrantsAutoPage InspectAutoPlatformAutoPresetsAutoPricingAutoPrivacyAutoPublicAutoPublic PagesAutoReferralAutoReferralsAutoReportsAutoResearchAutoSecretsAutoSerpAutoSSOAutoStorefrontsAutoSupportAutoTemplatesAutoToolsAutoTrackAutoUsageAutoUsage TagsAutoUserAutoWorkflowsAutoWorkspacesAutoWebhooksAuto
    OverviewPythonNode.jsCLI
    Guides OverviewJavaScript RenderingBrowser ActionsOutput FormatsPDF & OCRCachingWebhooksJSON Schema FilteringWebSocket Real-TimeBring Your Own ProxyProSticky SessionsProAuthenticated ScrapingNewHTTP Methods & BodiesNewStructured ExtractionAIWeb SearchAgent and RAG GroundingResearch JobsAgent RunsSite MappingWeb CrawlingBatch ScrapingSchedulerData MarketplaceSelling DataAgent OnboardingEmbeddingsKeyword IdeasAI VisibilityWorkflowsChange DetectionCloud Storage ExportSpend LimitsOrganizations & TeamsScrape TemplatesCustom ConnectorsSecretsContact ListsPlatform Sub-AccountsReferrals & AffiliatesAlerts & NotificationsExtraction ProfilesAIBYOK ExtractionAIOAuth2 Machine-to-MachineSupport & TicketsUnsupported Targets
    Tutorials OverviewStructured ExtractionAIE-commerce ScrapingNews MonitoringPrice MonitoringMulti-Page CrawlingMonitoring DashboardAI Agent / MCPMCPAI Research AgentAISite CrawlingData Pipeline to Cloud
    E-commerceLead GenerationChange MonitoringRAG & AI PipelinesAIResearch
    Reference OverviewPricingRate LimitsReliabilityReliability ContractError CodesChangelogVersioning
    Migrations OverviewFrom FirecrawlFrom ApifyFrom ScrapingBee / ScraperAPIFrom Crawl4AIFrom SpiderSearch to SERPFirecrawl v0 API ReferenceLegacy
    OverviewMCP ServerAIn8n NodeLangChainAICrewAIAILlamaIndexAISupabaseChrome ExtensionSoon
    PlaygroundPricingStatus

    Up to 5,000 free requests · No credit card

    API Reference
    Auto-generated

    Extract

    API reference for extract endpoints.

    Auto-generated

    This page was generated from the OpenAPI spec. Runmake generate-docs to refresh after spec changes.

    POST /api/v1/extract

    POST
    /api/v1/extract

    Extract structured data from content

    Parameters

    NameTypeRequiredDescription
    contentstring
    Required
    Raw content to extract from (HTML, text, markdown, or base64-encoded PDF)
    content_type"html" | "text" | "markdown"OptionalType of the provided contentDefault: html
    extraction_schemaobjectOptionalextraction_schema
    extraction_profile"auto" | "product" | "article" | "job_posting" | "faq" | "recipe" | "event"Optionalextraction_profile
    extraction_promptstringOptionalextraction_prompt
    formatsstring[]OptionalOutput formats for content transformationDefault: ['json']
    source_urlstringOptionalsource_url
    evidencebooleanOptionalInclude field provenance/evidence for extracted fieldsDefault: False

    Request Example

    Bash
    curl -X POST https://api.alterlab.io/api/v1/extract \
      -H "X-API-Key: YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "content": "example_content",
        "content_type": "..."
      }'

    Response Example

    JSON
    {
      "extract_id": "example",
      "formats": {},
      "credits_used": 0,
      "model_used": "example",
      "extraction_method": "example",
      "content_size_chars": 0
    }

    GET /api/v1/extract/estimate

    GET
    /api/v1/extract/estimate

    Estimate extraction cost

    Parameters

    NameTypeRequiredDescription
    content_lengthinteger
    Required
    content_length
    has_extraction_promptbooleanOptionalhas_extraction_promptDefault: False

    Request Example

    Bash
    curl -X GET 'https://api.alterlab.io/api/v1/extract/estimate?content_length=<content_length>' \
      -H "X-API-Key: YOUR_API_KEY" \
      -H "Content-Type: application/json"

    Response Example

    JSON
    {
      "estimated_cost_microcents": 0,
      "estimated_cost_usd": "example",
      "breakdown": "example"
    }

    GET /api/v1/extract/templates

    GET
    /api/v1/extract/templates

    List extraction templates

    Request Example

    Bash
    curl -X GET https://api.alterlab.io/api/v1/extract/templates \
      -H "X-API-Key: YOUR_API_KEY" \
      -H "Content-Type: application/json"

    Response Example

    JSON
    {
      "templates": [],
      "total": 0
    }

    POST /api/v1/extract/templates

    POST
    /api/v1/extract/templates

    Save a custom extraction template

    Parameters

    NameTypeRequiredDescription
    namestring
    Required
    Display name for the template
    schemaobject
    Required
    JSON Schema defining the extraction output structure
    tagsstring[]OptionalTags

    Request Example

    Bash
    curl -X POST https://api.alterlab.io/api/v1/extract/templates \
      -H "X-API-Key: YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "name": "example_name",
        "schema": "..."
      }'

    Response Example

    JSON
    {
      "status": "ok"
    }

    GET /api/v1/extract/templates/{template_id}

    GET
    /api/v1/extract/templates/{template_id}

    Get a user template by ID

    Parameters

    NameTypeRequiredDescription
    template_idstring
    Required
    template_id

    Request Example

    Bash
    curl -X GET https://api.alterlab.io/api/v1/extract/templates/<template_id> \
      -H "X-API-Key: YOUR_API_KEY" \
      -H "Content-Type: application/json"

    Response Example

    JSON
    {
      "id": "example",
      "name": "example",
      "description": "example",
      "schema": "example",
      "builtin": true,
      "tags": []
    }

    PUT /api/v1/extract/templates/{template_id}

    PUT
    /api/v1/extract/templates/{template_id}

    Update a user template

    Parameters

    NameTypeRequiredDescription
    template_idstring
    Required
    template_id
    namestringOptionalname
    schemaobjectOptionalschema
    tagsstring[]Optionaltags

    Request Example

    Bash
    curl -X PUT https://api.alterlab.io/api/v1/extract/templates/<template_id> \
      -H "X-API-Key: YOUR_API_KEY" \
      -H "Content-Type: application/json"

    Response Example

    JSON
    {
      "id": "example",
      "name": "example",
      "description": "example",
      "schema": "example",
      "builtin": true,
      "tags": []
    }

    DELETE /api/v1/extract/templates/{template_id}

    DELETE
    /api/v1/extract/templates/{template_id}

    Delete a user template

    Parameters

    NameTypeRequiredDescription
    template_idstring
    Required
    template_id

    Request Example

    Bash
    curl -X DELETE https://api.alterlab.io/api/v1/extract/templates/<template_id> \
      -H "X-API-Key: YOUR_API_KEY" \
      -H "Content-Type: application/json"

    Response Example

    JSON
    {
      "status": "ok"
    }

    GET /api/v1/extract/templates/{template_id}/versions

    GET
    /api/v1/extract/templates/{template_id}/versions

    List template versions

    Parameters

    NameTypeRequiredDescription
    template_idstring
    Required
    template_id

    Request Example

    Bash
    curl -X GET https://api.alterlab.io/api/v1/extract/templates/<template_id>/versions \
      -H "X-API-Key: YOUR_API_KEY" \
      -H "Content-Type: application/json"

    Response Example

    JSON
    {
      "versions": [],
      "total": 0
    }

    GET /api/v1/extract/templates/{template_id}/versions/{version}

    GET
    /api/v1/extract/templates/{template_id}/versions/{version}

    Get one template version

    Parameters

    NameTypeRequiredDescription
    template_idstring
    Required
    template_id
    versioninteger
    Required
    version

    Request Example

    Bash
    curl -X GET https://api.alterlab.io/api/v1/extract/templates/<template_id>/versions/<version> \
      -H "X-API-Key: YOUR_API_KEY" \
      -H "Content-Type: application/json"

    Response Example

    JSON
    {
      "version": 0,
      "schema": {},
      "created_at": "example"
    }

    GET /api/v1/extract/usage

    GET
    /api/v1/extract/usage

    List extraction usage history

    Parameters

    NameTypeRequiredDescription
    pageintegerOptionalpageDefault: 1
    page_sizeintegerOptionalpage_sizeDefault: 50
    date_fromstringOptionaldate_from
    date_tostringOptionaldate_to

    Request Example

    Bash
    curl -X GET https://api.alterlab.io/api/v1/extract/usage \
      -H "X-API-Key: YOUR_API_KEY" \
      -H "Content-Type: application/json"

    Response Example

    JSON
    {
      "items": [],
      "total": 0,
      "page": 0,
      "page_size": 0,
      "has_more": true
    }

    GET /api/v1/extract/usage/summary

    GET
    /api/v1/extract/usage/summary

    Aggregate extraction usage totals

    Parameters

    NameTypeRequiredDescription
    hoursintegerOptionalhours
    daysintegerOptionaldays

    Request Example

    Bash
    curl -X GET https://api.alterlab.io/api/v1/extract/usage/summary \
      -H "X-API-Key: YOUR_API_KEY" \
      -H "Content-Type: application/json"

    Response Example

    JSON
    {
      "total_requests": 0,
      "total_cost_microcents": 0,
      "cost_usd": "example"
    }
    Last updated: June 2026

    On this page