APIDataScrapers

Scrape HTML

Retrieve scrape HTML with the Context.dev API. Supply a formats and a URL. Sample fields include images and languages. Use the result as input for a related analysis or application.

Selected price
$0.002 / billing creditPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
—Loading...
Success rate · 30d
—Loading...
USE THIS API

Scrape HTML

Prepare your request, then continue with your agent.

Selected price

$0.002 / billing credit

A billing credit measures provider usage. Credits consumed depend on the operation and request options; one credit is not necessarily one call.

Provider
API
Pricing
Connect your agent
On this page

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
body*object

body

Fetch the fully rendered HTML of any page.

Sample response

"bytes": {
  "data": null,
  "requested": false,
  "success": null
}
"cache_metadata": {
  "age_ms": 229058981,
  "status": "hit"
}
"highlights": {
  "data": null,
  "requested": false,
  "success": null
}
html {}
dataString · text preview
html.data


<!DOCTYPE html>
<!--[if lt IE 7]>      <html lang="en-us" class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html lang="en-us" class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html lang="en-us" class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html lang="en-us" class="no-js"> <!--<![endif]-->
    <head>
        <title>
    A Light in the Attic | Books to Scrape - Sandbox
</title>

        <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
        <meta name="created" content="24th Jun 2016 09:29" />
        <meta name="description" content="
    It&#39;s hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein&#39;s humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love th It&#39;s hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein&#39;s humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love that Silverstein. Need proof of his genius? RockabyeRockabye baby, in the treetopDon&#39;t you know a treetopIs no safe place to rock?And who put you up there,And your cradle, too?Baby, I think someone down here&#39;sGot it in for you. Shel, you never sounded so good. ...more
" />
        <meta name="viewport" content="width=device-width" />
        <meta name="robots" content="NOARCHIVE,NOCACHE" />

        <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
        <!--[if lt IE 9]>
        <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->

        
            <link rel="shortcut icon" href="../../static/oscar/favicon.ico" />
        

        
        
    
    
        <link rel="stylesheet" type="text/css" href="../../static/oscar/css/styles.css" />
    
    <link rel="stylesheet" href="../../static/oscar/js/bootstrap-datetimepicker/bootstrap-datetimepicker.css" />
    <link rel="stylesheet" type="text/css" href="../../static/oscar/css/datetimepicker.css" />


        
        

        

        
            
            

        
    </head>

    <body id="default" class="default">
        
        
    
    
    <header class="header container-fluid">
        <div class="page_inner">
            <div class="row">
                <div class="col-sm-8 h1"><a href="../../index.html">Books to Scrape</a><small> We love being scraped!</small>
</div>

                
            </div>
        </div>
    </header>

    
    
        <div class="container-fluid page">
            <div class="page_inner">
                
<ul class="breadcrumb">
    <li>
        <a href="../../index.html">Home</a>
    </li>
    
        
        <li>
            <a href="../category/books_1/index.html">Books</a>
        </li>
        
        <li>
            <a href="../category/books/poetry_23/index.html">Poetry</a>
        </li>
        
        <li class="active">A Light in the Attic</li>

        
        
    
</ul>

                

                



<div id="messages">

</div>

                
                <div class="content">
                    

                    
                    <div id="promotions">
                        
                    </div>

                    
                    <div id="content_inner">

<article class="product_page"><!-- Start of product page -->

    <div class="row">

        
        <div class="col-sm-6">
            




    

    

        
        <div id="product_gallery" class="carousel">
            <div class="thumbnail">
                <div class="carousel-inner">
                    <div class="item active">
                    
                        
                            <img src="../../media/cache/fe/72/fe72f0532301ec28892ae79a629a293c.jpg" alt="A Light in the Attic" />
                        
                    
                    </div>
                </div>
            </div>
        </div>

    


        </div>
        

        
        <div class="col-sm-6 product_main">
            
            
            <h1>A Light in the Attic</h1>

            
                






    
        <p class="price_color">£51.77</p>
    

<p class="instock availability">
    <i class="icon-ok"></i>
    
        In stock (22 available)
    
</p>

            

            
                



    <p class="star-rating Three">
        <i class="icon-star"></i>
        <i class="icon-star"></i>
        <i class="icon-star"></i>
        <i class="icon-star"></i>
        <i class="icon-star"></i>

        <!-- <small><a href="/catalogue/a-light-in-the-attic_1000/reviews/">
        
                
                    0 customer reviews
                
        </a></small>
         -->&nbsp;


<!-- 
    <a id="write_review" href="/catalogue/a-light-in-the-attic_1000/reviews/add/#addreview" class="btn btn-success btn-sm">
        Write a review
    </a>

 --></p>

            

            <hr/>

            <div class="alert alert-warning" role="alert"><strong>Warning!</strong> This is a demo website for web scraping purposes. Prices and ratings here were randomly assigned and have no real meaning.</div>


            
                






            
        </div><!-- /col-sm-6 -->
        

    </div><!-- /row -->

    
        
        <div id="product_description" class="sub-header">
            <h2>Product Description</h2>
        </div>
        <p>It's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love th It's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love that Silverstein. Need proof of his genius? RockabyeRockabye baby, in the treetopDon't you know a treetopIs no safe place to rock?And who put you up there,And your cradle, too?Baby, I think someone down here'sGot it in for you. Shel, you never sounded so good. ...more</p>
        
    

    
    <div class="sub-header">
        <h2>Product Information</h2>
    </div>
    <table class="table table-striped">
        
        <tr>
            <th>UPC</th><td>a897fe39b1053632</td>
        </tr>
        
        <tr>
            <th>Product Type</th><td>Books</td>
        </tr>

        
        
            <tr>
                <th>Price (excl. tax)</th><td>£51.77</td>
            </tr>
            
                <tr>
                    <th>Price (incl. tax)</th><td>£51.77</td>
                </tr>
                <tr>
                    <th>Tax</th><td>£0.00</td>
                </tr>
            
            <tr>
                <th>Availability</th>
                <td>In stock (22 available)</td>
            </tr>
        
        
        
            <tr>
                <th>Number of reviews</th>
                <td>0</td>
            </tr>
        
    </table>
    

    
        
        <section>
            <div id="reviews" class="sub-header">
            </div>
        </section>
        
    

    
        
    

    



    



</article><!-- End of product page -->
</div>
                </div>
            </div>
        </div>
    

    
<footer class="footer container-fluid">
    
        
    
</footer>


        
        
  
            <!-- jQuery -->
            <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
            <script>window.jQuery || document.write('<script src="../../static/oscar/js/jquery/jquery-1.9.1.min.js"><\/script>')</script>
        
  


        
        
    
        
    <!-- Twitter Bootstrap -->
    <script type="text/javascript" src="../../static/oscar/js/bootstrap3/bootstrap.min.js"></script>
    <!-- Oscar -->
    <script src="../../static/oscar/js/oscar/ui.js" type="text/javascript" charset="utf-8"></script>

    <script src="../../static/oscar/js/bootstrap-datetimepicker/bootstrap-datetimepicker.js" type="text/javascript" charset="utf-8"></script>
    <script src="../../static/oscar/js/bootstrap-datetimepicker/locales/bootstrap-datetimepicker.all.js" type="text/javascript" charset="utf-8"></script>


        
        
    
    

    



        
        <script type="text/javascript">
            $(function() {
                
    
    oscar.init();

            });
        </script>

        
        <!-- Version: N/A -->
        
    </body>
</html>
"requested": true
"success": true
"images": {
  "data": null,
  "requested": false,
  "success": null
}
"json": {
  "data": null,
  "requested": false,
  "success": null
}
"key_metadata": {
  "credits_consumed": 1
}
"markdown": {
  "data": null,
  "requested": false,
  "success": null
}
"metadata": {
  "additionalMeta": {
    "content-type": "text/html; charset=UTF-8",
    "created": "24th Jun 2016 09:29",
    "viewport": "width=device-width"
  },
  "description": "It's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love th It's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love that Silverstein. Need proof of his genius? RockabyeRockabye baby, in the treetopDon't you know a treetopIs no safe place to rock?And who put you up there,And your cradle, too?Baby, I think someone down here'sGot it in for you. Shel, you never sounded so good. ...more",
  "favicon": "https://books.toscrape.com/static/oscar/favicon.ico",
  "headings": [
    {
      "level": 1,
      "text": "A Light in the Attic"
    },
    {
      "level": 2,
      "text": "Product Description"
    },
    {
      "level": 2,
      "text": "Product Information"
    }
  ],
  "language": "en-us",
  "robots": "NOARCHIVE,NOCACHE",
  "title": "A Light in the Attic | Books to Scrape - Sandbox"
}
"parsed": {
  "data": null,
  "requested": false,
  "success": null,
  "type": "custom"
}
"product": {
  "data": null,
  "requested": false,
  "success": null
}
"profile": null
"request_id": "5907a48d-3bec-4e18-9c56-5904c4bcdfee"
"screenshot": {
  "data": null,
  "requested": false,
  "success": null
}
"url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"

Response result

Response structure

Inferred from examples
  • bytesobject
    • datanull
    • requestedboolean
    • successnull
  • cache_metadataobject
    • age_msinteger
    • statusstring
  • highlightsobject
    • datanull
    • requestedboolean
    • successnull
  • htmlobject
    • datastring
    • requestedboolean
    • successboolean
  • imagesobject
    • datanull
    • requestedboolean
    • successnull
  • jsonobject
    • datanull
    • requestedboolean
    • successnull
  • key_metadataobject
    • credits_consumedinteger
  • markdownobject
    • datanull
    • requestedboolean
    • successnull
  • metadataobject
    • additionalMetaobject
      • content-typestring
      • createdstring
      • viewportstring
    • descriptionstring
    • faviconstring
    • headingsobject[]
      • levelinteger
      • textstring
    • languagestring
    • robotsstring
    • titlestring
  • parsedobject
    • datanull
    • requestedboolean
    • successnull
    • typestring
  • productobject
    • datanull
    • requestedboolean
    • successnull
  • profilenull
  • request_idstring
  • screenshotobject
    • datanull
    • requestedboolean
    • successnull
  • urlstring

Sellers

SellerPricingRequests · 30dPerformanceAccess
Context.dev — Scrape HTML · POST · View API reference$0.002 / billing credit—
—successP50—
Loading...
Selected pricing · context-devUSD / billing credit
Unit price
$0.002

A billing credit measures provider usage. Credits consumed depend on the operation and request options; one credit is not necessarily one call.

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.

API

Method
POST
Endpoint
https://api.openany.si/v1/agent-apis/context-dev/v1/web/scrape/html
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
  'https://api.openany.si/v1/agent-apis/context-dev/v1/web/scrape/html' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "formats": {
    "html": true
  },
  "url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"
}'

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
formatsJSON request bodybodyobjectYes

const: {"html":true}

maxAgeMsJSON request bodybodyintegerNo

minimum: 0 · maximum: 31536000000

sharedParamsJSON request bodybodyobjectNo

additionalProperties: false

Nested fields and variants
body.sharedParams.actions array · Optional

Parent object: body.sharedParams

minItems: 1 · maxItems: 5

Nested fields and variants

body.sharedParams.actions[] · Array item · object

Nested fields and variants

object

Nested fields and variants
body.sharedParams.actions[].action string · Required

Parent object: body.sharedParams.actions[]

minLength: 1 · maxLength: 500

body.sharedParams.actions[].type string · Required

Parent object: body.sharedParams.actions[]

enum: "perform"

object

Nested fields and variants
body.sharedParams.actions[].amount integer | string · Optional

Parent object: body.sharedParams.actions[]

body.sharedParams.actions[].direction string · Optional

Parent object: body.sharedParams.actions[]

enum: "down", "up", "left", "right"

body.sharedParams.actions[].maxScrolls integer · Optional

Parent object: body.sharedParams.actions[]

minimum: 1 · maximum: 50

body.sharedParams.actions[].selector string · Optional

Parent object: body.sharedParams.actions[]

maxLength: 2000 · pattern: \S

body.sharedParams.actions[].type string · Required

Parent object: body.sharedParams.actions[]

enum: "scroll"

object

Nested fields and variants
body.sharedParams.actions[].milliseconds integer · Required

Parent object: body.sharedParams.actions[]

minimum: 0 · maximum: 30000

body.sharedParams.actions[].type string · Required

Parent object: body.sharedParams.actions[]

enum: "wait"

object

Nested fields and variants
body.sharedParams.actions[].selector string · Required

Parent object: body.sharedParams.actions[]

maxLength: 2048 · pattern: \S

body.sharedParams.actions[].type string · Required

Parent object: body.sharedParams.actions[]

enum: "waitFor"

body.sharedParams.country string · Optional

Parent object: body.sharedParams

pattern: ^[A-Za-z]{2}$

body.sharedParams.dismissCookies boolean · Optional

Parent object: body.sharedParams

body.sharedParams.dismissPopups boolean · Optional

Parent object: body.sharedParams

body.sharedParams.excludeSelectors array · Optional

Parent object: body.sharedParams

minItems: 1 · maxItems: 50

Nested fields and variants

body.sharedParams.excludeSelectors[] · Array item · string

body.sharedParams.headers object · Optional

Parent object: body.sharedParams

Nested fields and variants

body.sharedParams.headers.{name} · Named entries · string

body.sharedParams.includeFrames boolean · Optional

Parent object: body.sharedParams

body.sharedParams.includeSelectors array · Optional

Parent object: body.sharedParams

minItems: 1 · maxItems: 50

Nested fields and variants

body.sharedParams.includeSelectors[] · Array item · string

body.sharedParams.mainContentOnly boolean · Optional

Parent object: body.sharedParams

body.sharedParams.parsers object · Optional

Parent object: body.sharedParams

additionalProperties: false

Nested fields and variants
body.sharedParams.parsers.pdf object · Optional

Parent object: body.sharedParams.parsers

additionalProperties: false

Nested fields and variants
body.sharedParams.parsers.pdf.endPage integer · Optional

Parent object: body.sharedParams.parsers.pdf

minimum: 1

body.sharedParams.parsers.pdf.ocr string · Optional

Parent object: body.sharedParams.parsers.pdf

enum: "off", "auto"

body.sharedParams.parsers.pdf.startPage integer · Optional

Parent object: body.sharedParams.parsers.pdf

minimum: 1

body.sharedParams.profile object · Optional

Parent object: body.sharedParams

Nested fields and variants

existing

Nested fields and variants
body.sharedParams.profile.profileId string · Required

Parent object: body.sharedParams.profile

pattern: ^prof_[a-f0-9]{32}$

body.sharedParams.profile.type string · Required

Parent object: body.sharedParams.profile

const: "existing"

new

Nested fields and variants
body.sharedParams.profile.identifier string · Required

Parent object: body.sharedParams.profile

minLength: 1 · maxLength: 1024

body.sharedParams.profile.password string · Required

Parent object: body.sharedParams.profile

minLength: 1 · maxLength: 4096

body.sharedParams.profile.type string · Required

Parent object: body.sharedParams.profile

const: "new"

body.sharedParams.settleAnimations boolean · Optional

Parent object: body.sharedParams

body.sharedParams.theme string · Optional

Parent object: body.sharedParams

enum: "light", "dark"

body.sharedParams.viewport object · Optional

Parent object: body.sharedParams

additionalProperties: false

Nested fields and variants
body.sharedParams.viewport.height integer · Optional

Parent object: body.sharedParams.viewport

minimum: 240 · maximum: 4320

body.sharedParams.viewport.width integer · Optional

Parent object: body.sharedParams.viewport

minimum: 240 · maximum: 7680

body.sharedParams.waitFor integer | string · Optional

Parent object: body.sharedParams

tagsJSON request bodybodyarrayNo

maxItems: 20

Nested fields and variants

body.tags[] · Array item · string

timeoutOptsJSON request bodybodyobjectNo

additionalProperties: false

Nested fields and variants
body.timeoutOpts.behavior string · Optional

Parent object: body.timeoutOpts

enum: "fail", "return-partial"

body.timeoutOpts.milliseconds integer · Required

Parent object: body.timeoutOpts

minimum: 1 · maximum: 300000

urlJSON request bodybodystringYes

format: uri · pattern: ^https?://

zdrJSON request bodybodystringNo

enum: "enabled", "disabled"

Required markers inside a nested object or variant apply when that object or variant is used.

Sample response

Sample response · Documented HTTP 200 Published documentation example. Verify the actual response after an approved call.

Documentation example (source abbreviated)
{
  "bytes": {
    "data": null,
    "requested": false,
    "success": null
  },
  "cache_metadata": {
    "age_ms": 229058981,
    "status": "hit"
  },
  "highlights": {
    "data": null,
    "requested": false,
    "success": null
  },
  "html": {
    "data": "\n\n<!DOCTYPE html>\n<!--[if lt IE 7]>      <html lang=\"en-us\" class=\"no-js lt-ie9 lt-ie8 lt-ie7\"> <![endif]-->\n<!--[if IE 7]>         <html lang=\"en-us\" class=\"no-js lt-ie9 lt-ie8\"> <![endif]-->\n<!--[if IE 8]>         <html lang=\"en-us\" class=\"no-js lt-ie9\"> <![endif]-->\n<!--[if gt IE 8]><!--> <html lang=\"en-us\" class=\"no-js\"> <!--<![endif]-->\n    <head>\n        <title>\n    A Light in the Attic | Books to Scrape - Sandbox\n</title>\n\n        <meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\" />\n        <meta name=\"created\" content=\"24th Jun 2016 09:29\" />\n        <meta name=\"description\" content=\"\n    It&#39;s hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein&#39;s humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love th It&#39;s hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein&#39;s humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love that Silverstein. Need proof of his genius? RockabyeRockabye baby, in the treetopDon&#39;t you know a treetopIs no safe place to rock?And who put you up there,And your cradle, too?Baby, I think someone down here&#39;sGot it in for you. Shel, you never sounded so good. ...more\n\" />\n        <meta name=\"viewport\" content=\"width=device-width\" />\n        <meta name=\"robots\" content=\"NOARCHIVE,NOCACHE\" />\n\n        <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->\n        <!--[if lt IE 9]>\n        <script src=\"//html5shim.googlecode.com/svn/trunk/html5.js\"></script>\n        <![endif]-->\n\n        \n            <link rel=\"shortcut icon\" href=\"../../static/oscar/favicon.ico\" />\n        \n\n        \n        \n    \n    \n        <link rel=\"stylesheet\" type=\"text/css\" href=\"../../static/oscar/css/styles.css\" />\n    \n    <link rel=\"stylesheet\" href=\"../../static/oscar/js/bootstrap-datetimepicker/bootstrap-datetimepicker.css\" />\n    <link rel=\"stylesheet\" type=\"text/css\" href=\"../../static/oscar/css/datetimepicker.css\" />\n\n\n        \n        \n\n        \n\n        \n            \n            \n\n        \n    </head>\n\n    <body id=\"default\" class=\"default\">\n        \n        \n    \n    \n    <header class=\"header container-fluid\">\n        <div class=\"page_inner\">\n            <div class=\"row\">\n                <div class=\"col-sm-8 h1\"><a href=\"../../index.html\">Books to Scrape</a><small> We love being scraped!</small>\n</div>\n\n                \n            </div>\n        </div>\n    </header>\n\n    \n    \n        <div class=\"container-fluid page\">\n            <div class=\"page_inner\">\n                \n<ul class=\"breadcrumb\">\n    <li>\n        <a href=\"../../index.html\">Home</a>\n    </li>\n    \n        \n        <li>\n            <a href=\"../category/books_1/index.html\">Books</a>\n        </li>\n        \n        <li>\n            <a href=\"../category/books/poetry_23/index.html\">Poetry</a>\n        </li>\n        \n        <li class=\"active\">A Light in the Attic</li>\n\n        \n        \n    \n</ul>\n\n                \n\n                \n\n\n\n<div id=\"messages\">\n\n</div>\n\n                \n                <div class=\"content\">\n                    \n\n                    \n                    <div id=\"promotions\">\n                        \n                    </div>\n\n                    \n                    <div id=\"content_inner\">\n\n<article class=\"product_page\"><!-- Start of product page -->\n\n    <div class=\"row\">\n\n        \n        <div class=\"col-sm-6\">\n            \n\n\n\n\n    \n\n    \n\n        \n        <div id=\"product_gallery\" class=\"carousel\">\n            <div class=\"thumbnail\">\n                <div class=\"carousel-inner\">\n                    <div class=\"item active\">\n                    \n                        \n                            <img src=\"../../media/cache/fe/72/fe72f0532301ec28892ae79a629a293c.jpg\" alt=\"A Light in the Attic\" />\n                        \n                    \n                    </div>\n                </div>\n            </div>\n        </div>\n\n    \n\n\n        </div>\n        \n\n        \n        <div class=\"col-sm-6 product_main\">\n            \n            \n            <h1>A Light in the Attic</h1>\n\n            \n                \n\n\n\n\n\n\n    \n        <p class=\"price_color\">£51.77</p>\n    \n\n<p class=\"instock availability\">\n    <i class=\"icon-ok\"></i>\n    \n        In stock (22 available)\n    \n</p>\n\n            \n\n            \n                \n\n\n\n    <p class=\"star-rating Three\">\n        <i class=\"icon-star\"></i>\n        <i class=\"icon-star\"></i>\n        <i class=\"icon-star\"></i>\n        <i class=\"icon-star\"></i>\n        <i class=\"icon-star\"></i>\n\n        <!-- <small><a href=\"/catalogue/a-light-in-the-attic_1000/reviews/\">\n        \n                \n                    0 customer reviews\n                \n        </a></small>\n         -->&nbsp;\n\n\n<!-- \n    <a id=\"write_review\" href=\"/catalogue/a-light-in-the-attic_1000/reviews/add/#addreview\" class=\"btn btn-success btn-sm\">\n        Write a review\n    </a>\n\n --></p>\n\n            \n\n            <hr/>\n\n            <div class=\"alert alert-warning\" role=\"alert\"><strong>Warning!</strong> This is a demo website for web scraping purposes. Prices and ratings here were randomly assigned and have no real meaning.</div>\n\n\n            \n                \n\n\n\n\n\n\n            \n        </div><!-- /col-sm-6 -->\n        \n\n    </div><!-- /row -->\n\n    \n        \n        <div id=\"product_description\" class=\"sub-header\">\n            <h2>Product Description</h2>\n        </div>\n        <p>It's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love th It's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love that Silverstein. Need proof of his genius? RockabyeRockabye baby, in the treetopDon't you know a treetopIs no safe place to rock?And who put you up there,And your cradle, too?Baby, I think someone down here'sGot it in for you. Shel, you never sounded so good. ...more</p>\n        \n    \n\n    \n    <div class=\"sub-header\">\n        <h2>Product Information</h2>\n    </div>\n    <table class=\"table table-striped\">\n        \n        <tr>\n            <th>UPC</th><td>a897fe39b1053632</td>\n        </tr>\n        \n        <tr>\n            <th>Product Type</th><td>Books</td>\n        </tr>\n\n        \n        \n            <tr>\n                <th>Price (excl. tax)</th><td>£51.77</td>\n            </tr>\n            \n                <tr>\n                    <th>Price (incl. tax)</th><td>£51.77</td>\n                </tr>\n                <tr>\n                    <th>Tax</th><td>£0.00</td>\n                </tr>\n            \n            <tr>\n                <th>Availability</th>\n                <td>In stock (22 available)</td>\n            </tr>\n        \n        \n        \n            <tr>\n                <th>Number of reviews</th>\n                <td>0</td>\n            </tr>\n        \n    </table>\n    \n\n    \n        \n        <section>\n            <div id=\"reviews\" class=\"sub-header\">\n            </div>\n        </section>\n        \n    \n\n    \n        \n    \n\n    \n\n\n\n    \n\n\n\n</article><!-- End of product page -->\n</div>\n                </div>\n            </div>\n        </div>\n    \n\n    \n<footer class=\"footer container-fluid\">\n    \n        \n    \n</footer>\n\n\n        \n        \n  \n            <!-- jQuery -->\n            <script src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js\"></script>\n            <script>window.jQuery || document.write('<script src=\"../../static/oscar/js/jquery/jquery-1.9.1.min.js\"><\\/script>')</script>\n        \n  \n\n\n        \n        \n    \n        \n    <!-- Twitter Bootstrap -->\n    <script type=\"text/javascript\" src=\"../../static/oscar/js/bootstrap3/bootstrap.min.js\"></script>\n    <!-- Oscar -->\n    <script src=\"../../static/oscar/js/oscar/ui.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\n\n    <script src=\"../../static/oscar/js/bootstrap-datetimepicker/bootstrap-datetimepicker.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\n    <script src=\"../../static/oscar/js/bootstrap-datetimepicker/locales/bootstrap-datetimepicker.all.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\n\n\n        \n        \n    \n    \n\n    \n\n\n\n        \n        <script type=\"text/javascript\">\n            $(function() {\n                \n    \n    oscar.init();\n\n            });\n        </script>\n\n        \n        <!-- Version: N/A -->\n        \n    </body>\n</html>\n",
    "requested": true,
    "success": true
  },
  "images": {
    "data": null,
    "requested": false,
    "success": null
  },
  "json": {
    "data": null,
    "requested": false,
    "success": null
  },
  "key_metadata": {
    "credits_consumed": 1
  },
  "markdown": {
    "data": null,
    "requested": false,
    "success": null
  },
  "metadata": {
    "additionalMeta": {
      "content-type": "text/html; charset=UTF-8",
      "created": "24th Jun 2016 09:29",
      "viewport": "width=device-width"
    },
    "description": "It's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love th It's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love that Silverstein. Need proof of his genius? RockabyeRockabye baby, in the treetopDon't you know a treetopIs no safe place to rock?And who put you up there,And your cradle, too?Baby, I think someone down here'sGot it in for you. Shel, you never sounded so good. ...more",
    "favicon": "https://books.toscrape.com/static/oscar/favicon.ico",
    "headings": [
      {
        "level": 1,
        "text": "A Light in the Attic"
      },
      {
        "level": 2,
        "text": "Product Description"
      },
      {
        "level": 2,
        "text": "Product Information"
      }
    ],
    "language": "en-us",
    "robots": "NOARCHIVE,NOCACHE",
    "title": "A Light in the Attic | Books to Scrape - Sandbox"
  },
  "parsed": {
    "data": null,
    "requested": false,
    "success": null,
    "type": "custom"
  },
  "product": {
    "data": null,
    "requested": false,
    "success": null
  },
  "profile": null,
  "request_id": "5907a48d-3bec-4e18-9c56-5904c4bcdfee",
  "screenshot": {
    "data": null,
    "requested": false,
    "success": null
  },
  "url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"
}

Usage billing

A billing credit measures provider usage. Credits consumed depend on the operation and request options; one credit is not necessarily one call.

Agent integration

Copy the resource contract without sharing an API key.

View API Markdown
API Markdown
# Scrape HTML

Retrieve scrape HTML with the Context.dev API. Supply a formats and a URL. Sample fields include images and languages. Use the result as input for a related analysis or application.
## Available implementations
context-dev · Context.dev — Scrape HTML: https://openany.si/markets/apis/capabilities/context-dev-scrape-html?offering=3272cfc4-0181-4c6c-b93e-b4cdfed1c83c · $0.002 / billing credit

## Selected API contract
Documentation: https://openany.si/markets/apis/capabilities/context-dev-scrape-html
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/context-dev/v1/web/scrape/html
Price: $0.002 / billing credit
Pricing note: A billing credit measures provider usage. Credits consumed depend on the operation and request options; one credit is not necessarily one call.
Provider: context-dev
Contract revision: 3
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.

Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.

## Prepared request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/context-dev/v1/web/scrape/html' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "formats": {
    "html": true
  },
  "url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"
}'
```

## API contract
```json
{
  "resource_type": "api",
  "name": "Context.dev — Scrape HTML",
  "endpoint": "https://api.openany.si/v1/agent-apis/context-dev/v1/web/scrape/html",
  "method": "POST",
  "content_type": "application/json",
  "execution_mode": "sync",
  "authentication": {
    "type": "bearer",
    "environment_variable": "OPENANY_API_KEY"
  },
  "inputs": [
    {
      "description": "Fetch the fully rendered HTML of any page.",
      "json_schema": {
        "additionalProperties": false,
        "allOf": [
          {
            "if": {
              "required": [
                "markdownParams"
              ]
            },
            "then": {
              "properties": {
                "formats": {
                  "properties": {
                    "markdown": {
                      "const": true
                    }
                  },
                  "required": [
                    "markdown"
                  ]
                }
              }
            }
          },
          {
            "if": {
              "required": [
                "screenshotParams"
              ]
            },
            "then": {
              "properties": {
                "formats": {
                  "properties": {
                    "screenshot": {
                      "const": true
                    }
                  },
                  "required": [
                    "screenshot"
                  ]
                }
              }
            }
          },
          {
            "if": {
              "required": [
                "imageParams"
              ]
            },
            "then": {
              "properties": {
                "formats": {
                  "properties": {
                    "images": {
                      "const": true
                    }
                  },
                  "required": [
                    "images"
                  ]
                }
              }
            }
          },
          {
            "if": {
              "required": [
                "parseParams"
              ]
            },
            "then": {
              "properties": {
                "formats": {
                  "properties": {
                    "parse": {
                      "const": true
                    }
                  },
                  "required": [
                    "parse"
                  ]
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "formats": {
                  "properties": {
                    "parse": {
                      "const": true
                    }
                  },
                  "required": [
                    "parse"
                  ]
                }
              }
            },
            "then": {
              "required": [
                "parseParams"
              ]
            }
          },
          {
            "if": {
              "required": [
                "highlightsParams"
              ]
            },
            "then": {
              "properties": {
                "formats": {
                  "properties": {
                    "highlights": {
                      "const": true
                    }
                  },
                  "required": [
                    "highlights"
                  ]
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "formats": {
                  "properties": {
                    "highlights": {
                      "const": true
                    }
                  },
                  "required": [
                    "highlights"
                  ]
                }
              }
            },
            "then": {
              "required": [
                "highlightsParams"
              ]
            }
          },
          {
            "if": {
              "required": [
                "jsonParams"
              ]
            },
            "then": {
              "properties": {
                "formats": {
                  "properties": {
                    "json": {
                      "const": true
                    }
                  },
                  "required": [
                    "json"
                  ]
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "formats": {
                  "properties": {
                    "json": {
                      "const": true
                    }
                  },
                  "required": [
                    "json"
                  ]
                }
              }
            },
            "then": {
              "required": [
                "jsonParams"
              ]
            }
          },
          {
            "if": {
              "required": [
                "productParams"
              ]
            },
            "then": {
              "properties": {
                "formats": {
                  "properties": {
                    "product": {
                      "const": true
                    }
                  },
                  "required": [
                    "product"
                  ]
                }
              }
            }
          }
        ],
        "properties": {
          "formats": {
            "const": {
              "html": true
            },
            "type": "object"
          },
          "maxAgeMs": {
            "default": 259200000,
            "maximum": 31536000000,
            "minimum": 0,
            "type": "integer"
          },
          "sharedParams": {
            "additionalProperties": false,
            "properties": {
              "actions": {
                "items": {
                  "discriminator": {
                    "propertyName": "type"
                  },
                  "oneOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "action": {
                          "maxLength": 500,
                          "minLength": 1,
                          "type": "string"
                        },
                        "type": {
                          "enum": [
                            "perform"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "type",
                        "action"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "amount": {
                          "default": "viewport",
                          "oneOf": [
                            {
                              "maximum": 100000,
                              "minimum": 1,
                              "type": "integer"
                            },
                            {
                              "enum": [
                                "viewport",
                                "max"
                              ],
                              "type": "string"
                            }
                          ]
                        },
                        "direction": {
                          "default": "down",
                          "enum": [
                            "down",
                            "up",
                            "left",
                            "right"
                          ],
                          "type": "string"
                        },
                        "maxScrolls": {
                          "default": 1,
                          "maximum": 50,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "selector": {
                          "maxLength": 2000,
                          "pattern": "\\S",
                          "type": "string"
                        },
                        "type": {
                          "enum": [
                            "scroll"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "type"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "milliseconds": {
                          "maximum": 30000,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "type": {
                          "enum": [
                            "wait"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "type",
                        "milliseconds"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "selector": {
                          "maxLength": 2048,
                          "pattern": "\\S",
                          "type": "string"
                        },
                        "type": {
                          "enum": [
                            "waitFor"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "type",
                        "selector"
                      ],
                      "type": "object"
                    }
                  ]
                },
                "maxItems": 5,
                "minItems": 1,
                "type": "array"
              },
              "country": {
                "pattern": "^[A-Za-z]{2}$",
                "type": "string"
              },
              "dismissCookies": {
                "default": true,
                "type": "boolean"
              },
              "dismissPopups": {
                "default": false,
                "type": "boolean"
              },
              "excludeSelectors": {
                "items": {
                  "maxLength": 2048,
                  "pattern": "\\S",
                  "type": "string"
                },
                "maxItems": 50,
                "minItems": 1,
                "type": "array",
                "uniqueItems": true
              },
              "headers": {
                "additionalProperties": {
                  "maxLength": 8192,
                  "pattern": "^[^\\r\\n]*$",
                  "type": "string"
                },
                "propertyNames": {
                  "not": {
                    "pattern": "^(?:[Hh][Oo][Ss][Tt]|[Cc][Oo][Nn][Tt][Ee][Nn][Tt]-[Ll][Ee][Nn][Gg][Tt][Hh]|[Cc][Oo][Nn][Nn][Ee][Cc][Tt][Ii][Oo][Nn]|[Kk][Ee][Ee][Pp]-[Aa][Ll][Ii][Vv][Ee]|[Pp][Rr][Oo][Xx][Yy]-[Aa][Uu][Tt][Hh][Ee][Nn][Tt][Ii][Cc][Aa][Tt][Ee]|[Pp][Rr][Oo][Xx][Yy]-[Aa][Uu][Tt][Hh][Oo][Rr][Ii][Zz][Aa][Tt][Ii][Oo][Nn]|[Pp][Rr][Oo][Xx][Yy]-[Cc][Oo][Nn][Nn][Ee][Cc][Tt][Ii][Oo][Nn]|[Tt][Ee]|[Tt][Rr][Aa][Ii][Ll][Ee][Rr]|[Tt][Rr][Aa][Nn][Ss][Ff][Ee][Rr]-[Ee][Nn][Cc][Oo][Dd][Ii][Nn][Gg]|[Uu][Pp][Gg][Rr][Aa][Dd][Ee]|[Ee][Xx][Pp][Ee][Cc][Tt])$"
                  },
                  "pattern": "^[!#$%&'*+.^_`|~0-9A-Za-z-]+$"
                },
                "type": "object"
              },
              "includeFrames": {
                "default": false,
                "type": "boolean"
              },
              "includeSelectors": {
                "items": {
                  "maxLength": 2048,
                  "pattern": "\\S",
                  "type": "string"
                },
                "maxItems": 50,
                "minItems": 1,
                "type": "array",
                "uniqueItems": true
              },
              "mainContentOnly": {
                "default": false,
                "type": "boolean"
              },
              "parsers": {
                "additionalProperties": false,
                "properties": {
                  "pdf": {
                    "additionalProperties": false,
                    "properties": {
                      "endPage": {
                        "minimum": 1,
                        "type": "integer"
                      },
                      "ocr": {
                        "default": "off",
                        "enum": [
                          "off",
                          "auto"
                        ],
                        "type": "string"
                      },
                      "startPage": {
                        "minimum": 1,
                        "type": "integer"
                      }
                    },
                    "type": "object"
                  }
                },
                "type": "object"
              },
              "profile": {
                "discriminator": {
                  "propertyName": "type"
                },
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "profileId": {
                        "pattern": "^prof_[a-f0-9]{32}$",
                        "type": "string"
                      },
                      "type": {
                        "const": "existing",
                        "type": "string"
                      }
                    },
                    "required": [
                      "type",
                      "profileId"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "identifier": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      },
                      "password": {
                        "maxLength": 4096,
                        "minLength": 1,
                        "type": "string",
                        "writeOnly": true
                      },
                      "type": {
                        "const": "new",
                        "type": "string"
                      }
                    },
                    "required": [
                      "type",
                      "identifier",
                      "password"
                    ],
                    "type": "object"
                  }
                ]
              },
              "settleAnimations": {
                "type": "boolean"
              },
              "theme": {
                "enum": [
                  "light",
                  "dark"
                ],
                "type": "string"
              },
              "viewport": {
                "additionalProperties": false,
                "properties": {
                  "height": {
                    "default": 900,
                    "maximum": 4320,
                    "minimum": 240,
                    "type": "integer"
                  },
                  "width": {
                    "default": 1440,
                    "maximum": 7680,
                    "minimum": 240,
                    "type": "integer"
                  }
                },
                "type": "object"
              },
              "waitFor": {
                "oneOf": [
                  {
                    "maximum": 30000,
                    "minimum": 0,
                    "type": "integer"
                  },
                  {
                    "maxLength": 2048,
                    "pattern": "\\S",
                    "type": "string"
                  }
                ]
              }
            },
            "type": "object"
          },
          "tags": {
            "items": {
              "maxLength": 50,
              "minLength": 1,
              "type": "string"
            },
            "maxItems": 20,
            "type": "array"
          },
          "timeoutOpts": {
            "additionalProperties": false,
            "default": {
              "behavior": "fail",
              "milliseconds": 90000
            },
            "properties": {
              "behavior": {
                "default": "fail",
                "enum": [
                  "fail",
                  "return-partial"
                ],
                "type": "string"
              },
              "milliseconds": {
                "maximum": 300000,
                "minimum": 1,
                "type": "integer"
              }
            },
            "required": [
              "milliseconds"
            ],
            "type": "object"
          },
          "url": {
            "format": "uri",
            "pattern": "^https?://",
            "type": "string"
          },
          "zdr": {
            "default": "disabled",
            "enum": [
              "enabled",
              "disabled"
            ],
            "type": "string"
          }
        },
        "required": [
          "url",
          "formats"
        ],
        "type": "object"
      },
      "location": "body",
      "name": "body",
      "nullable": false,
      "pointer": "",
      "required": true,
      "type": "object"
    }
  ],
  "billing": {
    "currency": "USD",
    "mode": "usage",
    "priceMicroUsd": "2000",
    "rounding": "ceil",
    "unit": "credit",
    "unitQuantity": "1"
  },
  "examples": [
    {
      "http_status": 200,
      "name": "Documentation example (source abbreviated)",
      "request": {
        "body": {
          "formats": {
            "html": true
          },
          "url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"
        },
        "headers": {},
        "path": {},
        "query": {}
      },
      "response_body": {
        "bytes": {
          "data": null,
          "requested": false,
          "success": null
        },
        "cache_metadata": {
          "age_ms": 229058981,
          "status": "hit"
        },
        "highlights": {
          "data": null,
          "requested": false,
          "success": null
        },
        "html": {
          "data": "\n\n<!DOCTYPE html>\n<!--[if lt IE 7]>      <html lang=\"en-us\" class=\"no-js lt-ie9 lt-ie8 lt-ie7\"> <![endif]-->\n<!--[if IE 7]>         <html lang=\"en-us\" class=\"no-js lt-ie9 lt-ie8\"> <![endif]-->\n<!--[if IE 8]>         <html lang=\"en-us\" class=\"no-js lt-ie9\"> <![endif]-->\n<!--[if gt IE 8]><!--> <html lang=\"en-us\" class=\"no-js\"> <!--<![endif]-->\n    <head>\n        <title>\n    A Light in the Attic | Books to Scrape - Sandbox\n</title>\n\n        <meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\" />\n        <meta name=\"created\" content=\"24th Jun 2016 09:29\" />\n        <meta name=\"description\" content=\"\n    It&#39;s hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein&#39;s humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love th It&#39;s hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein&#39;s humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love that Silverstein. Need proof of his genius? RockabyeRockabye baby, in the treetopDon&#39;t you know a treetopIs no safe place to rock?And who put you up there,And your cradle, too?Baby, I think someone down here&#39;sGot it in for you. Shel, you never sounded so good. ...more\n\" />\n        <meta name=\"viewport\" content=\"width=device-width\" />\n        <meta name=\"robots\" content=\"NOARCHIVE,NOCACHE\" />\n\n        <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->\n        <!--[if lt IE 9]>\n        <script src=\"//html5shim.googlecode.com/svn/trunk/html5.js\"></script>\n        <![endif]-->\n\n        \n            <link rel=\"shortcut icon\" href=\"../../static/oscar/favicon.ico\" />\n        \n\n        \n        \n    \n    \n        <link rel=\"stylesheet\" type=\"text/css\" href=\"../../static/oscar/css/styles.css\" />\n    \n    <link rel=\"stylesheet\" href=\"../../static/oscar/js/bootstrap-datetimepicker/bootstrap-datetimepicker.css\" />\n    <link rel=\"stylesheet\" type=\"text/css\" href=\"../../static/oscar/css/datetimepicker.css\" />\n\n\n        \n        \n\n        \n\n        \n            \n            \n\n        \n    </head>\n\n    <body id=\"default\" class=\"default\">\n        \n        \n    \n    \n    <header class=\"header container-fluid\">\n        <div class=\"page_inner\">\n            <div class=\"row\">\n                <div class=\"col-sm-8 h1\"><a href=\"../../index.html\">Books to Scrape</a><small> We love being scraped!</small>\n</div>\n\n                \n            </div>\n        </div>\n    </header>\n\n    \n    \n        <div class=\"container-fluid page\">\n            <div class=\"page_inner\">\n                \n<ul class=\"breadcrumb\">\n    <li>\n        <a href=\"../../index.html\">Home</a>\n    </li>\n    \n        \n        <li>\n            <a href=\"../category/books_1/index.html\">Books</a>\n        </li>\n        \n        <li>\n            <a href=\"../category/books/poetry_23/index.html\">Poetry</a>\n        </li>\n        \n        <li class=\"active\">A Light in the Attic</li>\n\n        \n        \n    \n</ul>\n\n                \n\n                \n\n\n\n<div id=\"messages\">\n\n</div>\n\n                \n                <div class=\"content\">\n                    \n\n                    \n                    <div id=\"promotions\">\n                        \n                    </div>\n\n                    \n                    <div id=\"content_inner\">\n\n<article class=\"product_page\"><!-- Start of product page -->\n\n    <div class=\"row\">\n\n        \n        <div class=\"col-sm-6\">\n            \n\n\n\n\n    \n\n    \n\n        \n        <div id=\"product_gallery\" class=\"carousel\">\n            <div class=\"thumbnail\">\n                <div class=\"carousel-inner\">\n                    <div class=\"item active\">\n                    \n                        \n                            <img src=\"../../media/cache/fe/72/fe72f0532301ec28892ae79a629a293c.jpg\" alt=\"A Light in the Attic\" />\n                        \n                    \n                    </div>\n                </div>\n            </div>\n        </div>\n\n    \n\n\n        </div>\n        \n\n        \n        <div class=\"col-sm-6 product_main\">\n            \n            \n            <h1>A Light in the Attic</h1>\n\n            \n                \n\n\n\n\n\n\n    \n        <p class=\"price_color\">£51.77</p>\n    \n\n<p class=\"instock availability\">\n    <i class=\"icon-ok\"></i>\n    \n        In stock (22 available)\n    \n</p>\n\n            \n\n            \n                \n\n\n\n    <p class=\"star-rating Three\">\n        <i class=\"icon-star\"></i>\n        <i class=\"icon-star\"></i>\n        <i class=\"icon-star\"></i>\n        <i class=\"icon-star\"></i>\n        <i class=\"icon-star\"></i>\n\n        <!-- <small><a href=\"/catalogue/a-light-in-the-attic_1000/reviews/\">\n        \n                \n                    0 customer reviews\n                \n        </a></small>\n         -->&nbsp;\n\n\n<!-- \n    <a id=\"write_review\" href=\"/catalogue/a-light-in-the-attic_1000/reviews/add/#addreview\" class=\"btn btn-success btn-sm\">\n        Write a review\n    </a>\n\n --></p>\n\n            \n\n            <hr/>\n\n            <div class=\"alert alert-warning\" role=\"alert\"><strong>Warning!</strong> This is a demo website for web scraping purposes. Prices and ratings here were randomly assigned and have no real meaning.</div>\n\n\n            \n                \n\n\n\n\n\n\n            \n        </div><!-- /col-sm-6 -->\n        \n\n    </div><!-- /row -->\n\n    \n        \n        <div id=\"product_description\" class=\"sub-header\">\n            <h2>Product Description</h2>\n        </div>\n        <p>It's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love th It's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love that Silverstein. Need proof of his genius? RockabyeRockabye baby, in the treetopDon't you know a treetopIs no safe place to rock?And who put you up there,And your cradle, too?Baby, I think someone down here'sGot it in for you. Shel, you never sounded so good. ...more</p>\n        \n    \n\n    \n    <div class=\"sub-header\">\n        <h2>Product Information</h2>\n    </div>\n    <table class=\"table table-striped\">\n        \n        <tr>\n            <th>UPC</th><td>a897fe39b1053632</td>\n        </tr>\n        \n        <tr>\n            <th>Product Type</th><td>Books</td>\n        </tr>\n\n        \n        \n            <tr>\n                <th>Price (excl. tax)</th><td>£51.77</td>\n            </tr>\n            \n                <tr>\n                    <th>Price (incl. tax)</th><td>£51.77</td>\n                </tr>\n                <tr>\n                    <th>Tax</th><td>£0.00</td>\n                </tr>\n            \n            <tr>\n                <th>Availability</th>\n                <td>In stock (22 available)</td>\n            </tr>\n        \n        \n        \n            <tr>\n                <th>Number of reviews</th>\n                <td>0</td>\n            </tr>\n        \n    </table>\n    \n\n    \n        \n        <section>\n            <div id=\"reviews\" class=\"sub-header\">\n            </div>\n        </section>\n        \n    \n\n    \n        \n    \n\n    \n\n\n\n    \n\n\n\n</article><!-- End of product page -->\n</div>\n                </div>\n            </div>\n        </div>\n    \n\n    \n<footer class=\"footer container-fluid\">\n    \n        \n    \n</footer>\n\n\n        \n        \n  \n            <!-- jQuery -->\n            <script src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js\"></script>\n            <script>window.jQuery || document.write('<script src=\"../../static/oscar/js/jquery/jquery-1.9.1.min.js\"><\\/script>')</script>\n        \n  \n\n\n        \n        \n    \n        \n    <!-- Twitter Bootstrap -->\n    <script type=\"text/javascript\" src=\"../../static/oscar/js/bootstrap3/bootstrap.min.js\"></script>\n    <!-- Oscar -->\n    <script src=\"../../static/oscar/js/oscar/ui.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\n\n    <script src=\"../../static/oscar/js/bootstrap-datetimepicker/bootstrap-datetimepicker.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\n    <script src=\"../../static/oscar/js/bootstrap-datetimepicker/locales/bootstrap-datetimepicker.all.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\n\n\n        \n        \n    \n    \n\n    \n\n\n\n        \n        <script type=\"text/javascript\">\n            $(function() {\n                \n    \n    oscar.init();\n\n            });\n        </script>\n\n        \n        <!-- Version: N/A -->\n        \n    </body>\n</html>\n",
          "requested": true,
          "success": true
        },
        "images": {
          "data": null,
          "requested": false,
          "success": null
        },
        "json": {
          "data": null,
          "requested": false,
          "success": null
        },
        "key_metadata": {
          "credits_consumed": 1
        },
        "markdown": {
          "data": null,
          "requested": false,
          "success": null
        },
        "metadata": {
          "additionalMeta": {
            "content-type": "text/html; charset=UTF-8",
            "created": "24th Jun 2016 09:29",
            "viewport": "width=device-width"
          },
          "description": "It's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love th It's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love that Silverstein. Need proof of his genius? RockabyeRockabye baby, in the treetopDon't you know a treetopIs no safe place to rock?And who put you up there,And your cradle, too?Baby, I think someone down here'sGot it in for you. Shel, you never sounded so good. ...more",
          "favicon": "https://books.toscrape.com/static/oscar/favicon.ico",
          "headings": [
            {
              "level": 1,
              "text": "A Light in the Attic"
            },
            {
              "level": 2,
              "text": "Product Description"
            },
            {
              "level": 2,
              "text": "Product Information"
            }
          ],
          "language": "en-us",
          "robots": "NOARCHIVE,NOCACHE",
          "title": "A Light in the Attic | Books to Scrape - Sandbox"
        },
        "parsed": {
          "data": null,
          "requested": false,
          "success": null,
          "type": "custom"
        },
        "product": {
          "data": null,
          "requested": false,
          "success": null
        },
        "profile": null,
        "request_id": "5907a48d-3bec-4e18-9c56-5904c4bcdfee",
        "screenshot": {
          "data": null,
          "requested": false,
          "success": null
        },
        "url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"
      }
    }
  ]
}
```

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Documentation example (source abbreviated)

Published documentation example. Verify the actual response after an approved call.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 1

    Review these request fields before running. Keep the published provider and request method unchanged.

    body
    Fetch the fully rendered HTML of any page.
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/context-dev/v1/web/scrape/html' \
      -X POST \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json' \
      --data-raw '{
      "formats": {
        "html": true
      },
      "url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"
    }'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "bytes": {
        "data": null,
        "requested": false,
        "success": null
      },
      "cache_metadata": {
        "age_ms": 229058981,
        "status": "hit"
      },
      "highlights": {
        "data": null,
        "requested": false,
        "success": null
      },
      "html": {
        "data": "\n\n<!DOCTYPE html>\n<!--[if lt IE 7]>      <html lang=\"en-us\" class=\"no-js lt-ie9 lt-ie8 lt-ie7\"> <![endif]-->\n<!--[if IE 7]>         <html lang=\"en-us\" class=\"no-js lt-ie9 lt-ie8\"> <![endif]-->\n<!--[if IE 8]>         <html lang=\"en-us\" class=\"no-js lt-ie9\"> <![endif]-->\n<!--[if gt IE 8]><!--> <html lang=\"en-us\" class=\"no-js\"> <!--<![endif]-->\n    <head>\n        <title>\n    A Light in the Attic | Books to Scrape - Sandbox\n</title>\n\n        <meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\" />\n        <meta name=\"created\" content=\"24th Jun 2016 09:29\" />\n        <meta name=\"description\" content=\"\n    It&#39;s hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein&#39;s humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love th It&#39;s hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein&#39;s humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love that Silverstein. Need proof of his genius? RockabyeRockabye baby, in the treetopDon&#39;t you know a treetopIs no safe place to rock?And who put you up there,And your cradle, too?Baby, I think someone down here&#39;sGot it in for you. Shel, you never sounded so good. ...more\n\" />\n        <meta name=\"viewport\" content=\"width=device-width\" />\n        <meta name=\"robots\" content=\"NOARCHIVE,NOCACHE\" />\n\n        <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->\n        <!--[if lt IE 9]>\n        <script src=\"//html5shim.googlecode.com/svn/trunk/html5.js\"></script>\n        <![endif]-->\n\n        \n            <link rel=\"shortcut icon\" href=\"../../static/oscar/favicon.ico\" />\n        \n\n        \n        \n    \n    \n        <link rel=\"stylesheet\" type=\"text/css\" href=\"../../static/oscar/css/styles.css\" />\n    \n    <link rel=\"stylesheet\" href=\"../../static/oscar/js/bootstrap-datetimepicker/bootstrap-datetimepicker.css\" />\n    <link rel=\"stylesheet\" type=\"text/css\" href=\"../../static/oscar/css/datetimepicker.css\" />\n\n\n        \n        \n\n        \n\n        \n            \n            \n\n        \n    </head>\n\n    <body id=\"default\" class=\"default\">\n        \n        \n    \n    \n    <header class=\"header container-fluid\">\n        <div class=\"page_inner\">\n            <div class=\"row\">\n                <div class=\"col-sm-8 h1\"><a href=\"../../index.html\">Books to Scrape</a><small> We love being scraped!</small>\n</div>\n\n                \n            </div>\n        </div>\n    </header>\n\n    \n    \n        <div class=\"container-fluid page\">\n            <div class=\"page_inner\">\n                \n<ul class=\"breadcrumb\">\n    <li>\n        <a href=\"../../index.html\">Home</a>\n    </li>\n    \n        \n        <li>\n            <a href=\"../category/books_1/index.html\">Books</a>\n        </li>\n        \n        <li>\n            <a href=\"../category/books/poetry_23/index.html\">Poetry</a>\n        </li>\n        \n        <li class=\"active\">A Light in the Attic</li>\n\n        \n        \n    \n</ul>\n\n                \n\n                \n\n\n\n<div id=\"messages\">\n\n</div>\n\n                \n                <div class=\"content\">\n                    \n\n                    \n                    <div id=\"promotions\">\n                        \n                    </div>\n\n                    \n                    <div id=\"content_inner\">\n\n<article class=\"product_page\"><!-- Start of product page -->\n\n    <div class=\"row\">\n\n        \n        <div class=\"col-sm-6\">\n            \n\n\n\n\n    \n\n    \n\n        \n        <div id=\"product_gallery\" class=\"carousel\">\n            <div class=\"thumbnail\">\n                <div class=\"carousel-inner\">\n                    <div class=\"item active\">\n                    \n                        \n                            <img src=\"../../media/cache/fe/72/fe72f0532301ec28892ae79a629a293c.jpg\" alt=\"A Light in the Attic\" />\n                        \n                    \n                    </div>\n                </div>\n            </div>\n        </div>\n\n    \n\n\n        </div>\n        \n\n        \n        <div class=\"col-sm-6 product_main\">\n            \n            \n            <h1>A Light in the Attic</h1>\n\n            \n                \n\n\n\n\n\n\n    \n        <p class=\"price_color\">£51.77</p>\n    \n\n<p class=\"instock availability\">\n    <i class=\"icon-ok\"></i>\n    \n        In stock (22 available)\n    \n</p>\n\n            \n\n            \n                \n\n\n\n    <p class=\"star-rating Three\">\n        <i class=\"icon-star\"></i>\n        <i class=\"icon-star\"></i>\n        <i class=\"icon-star\"></i>\n        <i class=\"icon-star\"></i>\n        <i class=\"icon-star\"></i>\n\n        <!-- <small><a href=\"/catalogue/a-light-in-the-attic_1000/reviews/\">\n        \n                \n                    0 customer reviews\n                \n        </a></small>\n         -->&nbsp;\n\n\n<!-- \n    <a id=\"write_review\" href=\"/catalogue/a-light-in-the-attic_1000/reviews/add/#addreview\" class=\"btn btn-success btn-sm\">\n        Write a review\n    </a>\n\n --></p>\n\n            \n\n            <hr/>\n\n            <div class=\"alert alert-warning\" role=\"alert\"><strong>Warning!</strong> This is a demo website for web scraping purposes. Prices and ratings here were randomly assigned and have no real meaning.</div>\n\n\n            \n                \n\n\n\n\n\n\n            \n        </div><!-- /col-sm-6 -->\n        \n\n    </div><!-- /row -->\n\n    \n        \n        <div id=\"product_description\" class=\"sub-header\">\n            <h2>Product Description</h2>\n        </div>\n        <p>It's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love th It's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love that Silverstein. Need proof of his genius? RockabyeRockabye baby, in the treetopDon't you know a treetopIs no safe place to rock?And who put you up there,And your cradle, too?Baby, I think someone down here'sGot it in for you. Shel, you never sounded so good. ...more</p>\n        \n    \n\n    \n    <div class=\"sub-header\">\n        <h2>Product Information</h2>\n    </div>\n    <table class=\"table table-striped\">\n        \n        <tr>\n            <th>UPC</th><td>a897fe39b1053632</td>\n        </tr>\n        \n        <tr>\n            <th>Product Type</th><td>Books</td>\n        </tr>\n\n        \n        \n            <tr>\n                <th>Price (excl. tax)</th><td>£51.77</td>\n            </tr>\n            \n                <tr>\n                    <th>Price (incl. tax)</th><td>£51.77</td>\n                </tr>\n                <tr>\n                    <th>Tax</th><td>£0.00</td>\n                </tr>\n            \n            <tr>\n                <th>Availability</th>\n                <td>In stock (22 available)</td>\n            </tr>\n        \n        \n        \n            <tr>\n                <th>Number of reviews</th>\n                <td>0</td>\n            </tr>\n        \n    </table>\n    \n\n    \n        \n        <section>\n            <div id=\"reviews\" class=\"sub-header\">\n            </div>\n        </section>\n        \n    \n\n    \n        \n    \n\n    \n\n\n\n    \n\n\n\n</article><!-- End of product page -->\n</div>\n                </div>\n            </div>\n        </div>\n    \n\n    \n<footer class=\"footer container-fluid\">\n    \n        \n    \n</footer>\n\n\n        \n        \n  \n            <!-- jQuery -->\n            <script src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js\"></script>\n            <script>window.jQuery || document.write('<script src=\"../../static/oscar/js/jquery/jquery-1.9.1.min.js\"><\\/script>')</script>\n        \n  \n\n\n        \n        \n    \n        \n    <!-- Twitter Bootstrap -->\n    <script type=\"text/javascript\" src=\"../../static/oscar/js/bootstrap3/bootstrap.min.js\"></script>\n    <!-- Oscar -->\n    <script src=\"../../static/oscar/js/oscar/ui.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\n\n    <script src=\"../../static/oscar/js/bootstrap-datetimepicker/bootstrap-datetimepicker.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\n    <script src=\"../../static/oscar/js/bootstrap-datetimepicker/locales/bootstrap-datetimepicker.all.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\n\n\n        \n        \n    \n    \n\n    \n\n\n\n        \n        <script type=\"text/javascript\">\n            $(function() {\n                \n    \n    oscar.init();\n\n            });\n        </script>\n\n        \n        <!-- Version: N/A -->\n        \n    </body>\n</html>\n",
        "requested": true,
        "success": true
      },
      "images": {
        "data": null,
        "requested": false,
        "success": null
      },
      "json": {
        "data": null,
        "requested": false,
        "success": null
      },
      "key_metadata": {
        "credits_consumed": 1
      },
      "markdown": {
        "data": null,
        "requested": false,
        "success": null
      },
      "metadata": {
        "additionalMeta": {
          "content-type": "text/html; charset=UTF-8",
          "created": "24th Jun 2016 09:29",
          "viewport": "width=device-width"
        },
        "description": "It's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love th It's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love that Silverstein. Need proof of his genius? RockabyeRockabye baby, in the treetopDon't you know a treetopIs no safe place to rock?And who put you up there,And your cradle, too?Baby, I think someone down here'sGot it in for you. Shel, you never sounded so good. ...more",
        "favicon": "https://books.toscrape.com/static/oscar/favicon.ico",
        "headings": [
          {
            "level": 1,
            "text": "A Light in the Attic"
          },
          {
            "level": 2,
            "text": "Product Description"
          },
          {
            "level": 2,
            "text": "Product Information"
          }
        ],
        "language": "en-us",
        "robots": "NOARCHIVE,NOCACHE",
        "title": "A Light in the Attic | Books to Scrape - Sandbox"
      },
      "parsed": {
        "data": null,
        "requested": false,
        "success": null,
        "type": "custom"
      },
      "product": {
        "data": null,
        "requested": false,
        "success": null
      },
      "profile": null,
      "request_id": "5907a48d-3bec-4e18-9c56-5904c4bcdfee",
      "screenshot": {
        "data": null,
        "requested": false,
        "success": null
      },
      "url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"
    }

Common questions

Do I need a separate key for every provider?

Use your OpenAny API key for standard API access. Read it from OPENANY_API_KEY in your environment and keep it out of prompts, source code and logs.

Are these providers interchangeable?

No. Each offering has its own inputs, pricing and response contract. Selecting a catalog offering does not establish automatic routing or fallback. Confirm the service contract before calling.

How is this API billed?

API-key calls use your shared balance at the selected implementation's published rate. Check the billing unit and request-specific pricing rules before making a paid call. Recorded usage determines the final charge under that contract.

Where do the price and contract come from?

The selected implementation publishes its provider, request contract, revision and billing rules through OpenAny's public API catalog. A revision number identifies a contract version, not a price update date. A price update timestamp is not supplied; do not treat a page date as one.

How do OpenAny Balance and x402 differ?

OpenAny Balance uses an API key and one shared balance. Card, USDC and x402 top-ups, card auto top-up and USDC subscriptions fund that balance; available routes appear on the Credits page. Direct x402 is a separate pay-per-request flow, available only on listings that show it and requiring an authorized payment client.

Does Playground send a paid request?

Yes. After you sign in, Run sends a real API request using an active OpenAny API key. Charges follow the published API contract and use your shared balance. Selecting an implementation, editing inputs and viewing sample responses do not send requests.

Use Scrape HTML with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.