User:Dikshagupta99/Sandbox/API:Get the contents of a page

From mediawiki.org
Jump to navigation Jump to search

There are three main methods for retrieving page content via the API:

  1. Get the content of a page through API:Revisions .
  2. Get parsed content of a page through API: Parse .
  3. Get plain text or limited HTML extracts of a given page through Extension:TextExtracts .

Method 1: Get the content of a page through API: Revisions[edit]

This can be done by specifying the parameter titles of the page. The retrieved content is in the form of wikitext.

Example[edit]

GET request to obtain the retrieved wikitext content of the page Pet door.


Response[edit]

Response
[
{'slots':
 {'main': 
{'contentmodel': 'wikitext',
'contentformat': 'text/x-wiki',
'content':'[[File:Doggy door exit.JPG|thumb|
A dog exiting through a pet door]]
A pet door or pet flap (also referred to in more specific terms,
 such as cat flap,cat door, dog door, or doggy door)
is a small opening to allow [[pet]]s to enter and 
exit a building on their own without needing a person to open the door. 
Originally simple holes, the modern form is a
 hinged and often spring-loaded panel or flexible flap,
 and some are electronically controlled.  
They offer a degree of protection against wind,
 rain, and larger-bodied intruders entering the dwelling. 
Similar hatches can let dogs through fences at stiles.
 A related concept is the pet gate, which is easy for
 humans to open but acts as a secure pet barrier, 
as well as the automated left- or right-handed pet doors
.<ref>{{Cite web|url=http://www.gizmag.com
/passive-house-petwalk-door/31162/|title=World\'s
 first Passive House-certified pet door unveiled at 
Ecobuild 2014|website=www.gizmag.com|access-date=2016-07-07}}
</ref>
==Purpose==
A pet door is found to be convenient by many owners of companion animals,
especially dogs and cats, because it lets
 the pets come and go as they please,
reducing the need for pet-owners to let or take the pet outside manually,
and curtailing unwanted behaviour such as
 loud vocalisation to be let outside, 
scratching on doors or walls, and (especially in the case of dogs)
 [[Excretion|excreting]] in the house. 
They also help to ensure that a pet left outdoors can safely 
get back into the house in the case of inclement weather.
==Features==
[[File:Cat flap.jpg|thumb|A cat flap in action]]
The simplest type are bottom-weighted flaps
 hung from the top of the opening,
which swing shut on their own, 
but may be spring-aided to increase wind resistance. 
These flaps often feature magnets around the edges to help keep 
the door closed against weather and wind. 
Some pet doors have side-mounted hinges like saloon doors
{{cn|date=September 2012
|reason=Add a citation and a photo showing that these actually exist.}}.
These pet doors usually have a spring or other contrivance
 to force their closure after the pet has gone through. 
Instead of a rubber flap, saloon style doors are often made from plastic, 
acrylic, or plexiglas,
 and the panels are fitted with weatherseal to help keep weather outside.
Another common feature is an adjustable catch
 to restrict the opening of the device to either one direction or the other; 
for example, to allow the pet to come in for the night,
 but not go out again until the owner releases the catch the next morning. 
Some pets, mostly cats with their retractile claws and flexible paws, 
learn to circumvent one-way pet doors, 
especially the "flap-within-flap" design.
Most also have a locking mechanism of some kind, 
and can be closed off by sliding a rigid plate
 into parallel rails on the left
 and right of the interior side of the pet door to close it off,
 e.g. during bad weather or when the owners
 are travelling with their pets.
Pet doors are generally designed to be safe for any pet. 
 The panels are often designed with soft [[Polyvinyl chloride|vinyl]]
 that does not trap or injure the animal. 
Cheap, easily replaceable pet doors are made from plastic 
and as such may not always be robust enough for large, boisterous pets.
Pet doors are most often fitted in a plywood or plastic panelled door, 
into which it is straightforward to cut a large round hole, 
but can also be fitted in brickwork or
 (if a sealed unit is obtained with the hole already provided)
 in a double glazed door.The latter is a relatively expensive option
 but may be the only alternative in some cases. 
Removable pet doors suitable for [[sliding glass door]]s are also available.
Recent innovation has contributed a new generation of more 
expensive pet doors making use of specific materials, 
automation, time control devices, and/or sophisticated sensors
 to deal with such common problems as poor insulation and drafts, 
higher noise levels, insufficient pet safety and access difficulties.
<ref>
{{Cite web|url=http://www.trendhunter.com/trends/pet-door|title=Automated
 Pet Doors : pet door|access-date=2016-07-07}}</ref><ref>
{{Cite web|url=http://www.ubergizmo.com/2014/03/
petwalk-automatic-pet-door-prevents-wet-paw-marks-around-the-home/
|title=PetWALK Automatic Pet Door Prevents Wet Paw Marks Around 
The Home|date=2014-03-13|website=Ubergizmo
|language=en-US|access-date=2016-07-07}}</ref>
==History==
The [[Oxford English Dictionary]] records the first use of the phrase 
"cat flap" in 1957 and "cat door" in 1959,
<ref>Oxford English Dictionary(full ed.)
, 2005.</ref>{{clarify|date=September 2012
|reason=What about "pet door",
 "pet flap", "dog door", and "dog flap"?}} but the idea is much older.
[[File:Gatera de ademuz.jpg|thumb|left|A 
{{lang|es|gatera}}(farm cat hole) in 
[[Rincón de Ademuz]], Valencia, Spain]]
In rural areas, cat doors (often simple holes) in the walls,
 doors or even roofs of grain and flour 
storage spaces have long been used to welcome
 [[feral cat]]s to hunt rodent pests that feed on these stores.
 Human semi-domestication of [[wildcat]]s dates back to at least 7,
500 BC in [[Cyprus]],
<ref name="NatGeo 2004">{{cite web
|title=Oldest Known Pet Cat? 9500-year-old Burial Found on Cyprus
|url= http://news.nationalgeographic.com/news/
2004/04/0408_040408_oldestpetcat.html
|accessdate=March 6, 2007
|date=April 8, 2004
|work=National Geographic News 
|publisher=National Geographic Society\n}}</ref>
and the domestic cat was a part of everyday life in grain-dependent
 [[ancient Egypt]] (ca. 6,000 BC onward). 
Nowadays, this function is mostly lost, but in some rural areas, 
such as [[Valencia, Spain|Valencia]],
Spain, and [[Vaunage]], France, farm cat doors and holes ({{lang-es|gateras}},
{{lang-fr|chatières}}) are still common.
The 14th-century [[English literature|English]] 
writer [[Geoffrey Chaucer]] described
a simple cat hole in the "Miller\'s Tale" from his [[Canterbury Tales]]
(late 14th century).
In the narrative, a servant whose knocks go unanswered uses the cat door to peek in:
<blockquote>{{lang|enm|An hole he foond, ful lowe upon a bord<br />
Ther as the cat was wont in for to crepe,
<br />And at the hole he looked in ful depe,
<br />And at the last he hadde of hym a sighte.}}</blockquote>
In an apparent [[Early modern period|early modern]] 
example of [[urban legend]], 
the invention of the pet door was attributed to [[Isaac Newton]]
 (1642&ndash;1727)
in a story
 (authored anonymously and published in a column of anecdotes in 1893) 
to the effect that Newton foolishly made a large hole
 for his adult cat and a small one for her kittens,
not realizing the kittens would follow the mother through the large one.
<ref>{{Cite web
|title=Random Readings: Philosophy and Common Sense
|author=Anonymous ("The Country Parson")<!--Not to be confused with Frank A.
 Clark who used that name in the 1960s!-->
|editor=E. H. Sears & Rufus Ellis
|work=The Monthly Religious Magazine
|year=1863
|volume=29-30
|page=298
|publisher=Leonard C. Bowles Press
|location=Boston, MA
|url= https://books.google.com/books?id=PXYUAAAAYAAJ&pg=PA298\n}}
</ref> 
Two Newton biographers cite passages saying that
 Newton kept "neither cat nor dog in his chamber".
<ref>Brodetsky, S. (2007) [first pub. 1927]. Sir Isaac Newton.
 Upton Press. p. 100. {{ISBN|1406769991}}.
</ref><ref>More, Louis Trenchard (1937). Isaac Newton: a Biography. 
C. Scribner\'s Sons.</ref> Yet over 60 years earlier,
a member of Newton\'s alma mater Trinity college, one J. M. F. Wright,
reported this same story (from an unknown source) in his 1827 memoir, 
adding: "Whether this account be true or false, 
indisputably true is it that there are in the door to this day two
plugged holes of the proper dimensions 
for the respective egresses of cat and kitten.
"<ref>Wright, J. F. M. (1827). \'\'Alma Mater\'\'. Volume 1. p. 17.
</ref>
Modern cat flaps are popular in some countries even in
 urban environments,
particularly the [[United Kingdom]] where it is estimated that about
 74% of cats have access to the outdoors.
<ref>
{{cite web|url=http://www.petplan.co.uk/petcensus/censusinfo.pdf 
|title=Petplan Pet Census 2011 |publisher=Petplan 
|page=15 |accessdate=September 11, 2012}}
</ref>
Dog doors are common in suburban North America, 
where they mostly lead to fenced-in yards. 
Pet doors are also common between suburban homes
 and their attached garages,
so that pet-related mess (cat box, dog food, etc.) 
can be kept in the garage with pets having free access.
==Electronic pet doors==
[[File:Wall mounted catflap.jpg|thumb|200px
|A [[Integrated circuit|microchip]]-enabled, 
selective-access cat and small dog door running through a wall]]
Several types of pet doors that allow selective access are available. 
The advantages of this type of pet door over 
simpler models are improved weather resistance, 
and home security against strays and other unwanted animals. 
Some use a [[permanent magnet]] 
mounted on the pet\'s collar to activate a matching [[electromagnet]]ic
 mechanism that unlatches the door panel 
when the magnet comes within range;
 several pets can be fitted with collars that match the same door. 
Pet doors with [[Consumer IR|infrared]]
 locks open only when a collar-mounted device
 transmits the correct code to the latch\'s receiver, 
allowing owners to have multiple flaps that different pets can use,
 e.g. a small cat flap to the back yard and
 a large dog door accessing a [[dog run]].  
Either type can be used to selectively allow one pet outside access,
 while denying it to another 
(e.g., an ill animal that needs to stay indoors).
Some of the newest models use [[radio-frequency identification]] 
to electronically read a pet\'s 
[[Microchip implant (animal)|microchip implant]]. 
This removes the need for a cat to wear a collar, which could become lost.
 Other high-end doors use a key with RFID. 
The key is attached to the pet\'s collar,
 and the electric door only opens for the assigned keys.
==Dog stiles==
[[File:Dog door demonstration - geograph.org.uk - 718920.jpg|thumb|left|
A man lets a dog through the lift-up hatch at a stile in 
[[Medway]], [[England]].|247x247px]]
In [[England]], [[Ireland]], 
and other areas with large numbers of livestock fences and
 walls in areas through which people walk on footpaths,
 [[stile]]s often have wooden, lift-up dog hatchways next to them, 
because dogs are not good at climbing stile steps
 and are often too heavy to lift over a fence.
==Pet gates==
A related idea, essentially an opposite of the pet door, is the pet gate, 
an easily human-operated portal that keeps pets in (or out)
 and thwarts their attempts to open it,
e.g. with a thumb-operated switch or a smooth door handle, 
and which is tall enough that it cannot be jumped
 over by the type of pet for which it was designed. 
Styles vary, 
they are typically made of wooden or metal bars or a wire lattice, 
and have adjustable widths so that
 they can be used to span arbitrary entrances,
hallways or windows. Common uses are to keep pets inside while
ventilating a room by opening an unscreened door, 
or keeping pets out of a baby
\'s room or a dining area.{{clear|left}}
==Pet barriers==
Pet barriers are typically made of fabric and 
are especially used to secure staircases.
<ref>{{cite web|last1=Woods|first1=Amanda
|title=7 Important Measures to Pet Proof
Your Home|url=https://medium.com/@woodsamanda399/
7-important-measures-to-pet-proof-your-home-bdd3e33ae4c8
|accessdate=23 August 2017}}</ref>
They are available in banister-to-banister and wall-to-banister options
 and are customizable and portable.
== References ==
{{Refimprove|date=July 2007}}
{{reflist}}
{{Commons category|Pet doors}}
[[Category:Door furniture]]
[[Category:Pet equipment]]'}}}]

Method 2: Get the parsed content of a page by API: Parse[edit]

This can be done by:

  1. Specifying a page or revision using the parameter page. The retrieved content is in the form of HTML.
  2. Specifying parameter prop as wikitext to get the original wikitext that was parsed. The retrieved content is in the form of wikitext.

Example 1[edit]

GET request to get parsed content of a page: Pet door.


Response[edit]

Response
<div class="mw-parser-output"><div class="thumb tright"><div class="thumbinner" style="width:222px;"><a href="/wiki/File:Doggy_door_exit.JPG" class="image"><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/7/71/Doggy_door_exit.JPG/220px-Doggy_door_exit.JPG" decoding="async" width="220" height="165" class="thumbimage" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/7/71/Doggy_door_exit.JPG/330px-Doggy_door_exit.JPG 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/7/71/Doggy_door_exit.JPG/440px-Doggy_door_exit.JPG 2x" data-file-width="1600" data-file-height="1200" /></a>  <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Doggy_door_exit.JPG" class="internal" title="Enlarge"></a></div>A dog exiting through a pet door</div></div></div>
<p>A <b>pet door</b> or <b>pet flap</b> (also referred to in more specific terms, such as <b>cat flap</b>, <b>cat door</b>, <b>dog door</b>, or <b>doggy door</b>) is a small opening to allow <a href="/wiki/Pet" title="Pet">pets</a> to enter and exit a building on their own without needing a person to open the door.  Originally simple holes, the modern form is a hinged and often spring-loaded panel or flexible flap, and some are electronically controlled.  They offer a degree of protection against wind, rain, and larger-bodied intruders entering the dwelling. Similar hatches can let dogs through fences at stiles. A related concept is the <b>pet gate</b>, which is easy for humans to open but acts as a secure pet barrier, as well as the <b>automated left- or right-handed pet doors</b>.<sup id="cite_ref-1" class="reference"><a href="#cite_note-1">&#91;1&#93;</a></sup>
</p>
<div id="toc" class="toc"><input type="checkbox" role="button" id="toctogglecheckbox" class="toctogglecheckbox" style="display:none" /><div class="toctitle" lang="en" dir="ltr"><h2>Contents</h2><span class="toctogglespan"><label class="toctogglelabel" for="toctogglecheckbox"></label></span></div>
<ul>
<li class="toclevel-1 tocsection-1"><a href="#Purpose"><span class="tocnumber">1</span> <span class="toctext">Purpose</span></a></li>
<li class="toclevel-1 tocsection-2"><a href="#Features"><span class="tocnumber">2</span> <span class="toctext">Features</span></a></li>
<li class="toclevel-1 tocsection-3"><a href="#History"><span class="tocnumber">3</span> <span class="toctext">History</span></a></li>
<li class="toclevel-1 tocsection-4"><a href="#Electronic_pet_doors"><span class="tocnumber">4</span> <span class="toctext">Electronic pet doors</span></a></li>
<li class="toclevel-1 tocsection-5"><a href="#Dog_stiles"><span class="tocnumber">5</span> <span class="toctext">Dog stiles</span></a></li>
<li class="toclevel-1 tocsection-6"><a href="#Pet_gates"><span class="tocnumber">6</span> <span class="toctext">Pet gates</span></a></li>
<li class="toclevel-1 tocsection-7"><a href="#Pet_barriers"><span class="tocnumber">7</span> <span class="toctext">Pet barriers</span></a></li>
<li class="toclevel-1 tocsection-8"><a href="#References"><span class="tocnumber">8</span> <span class="toctext">References</span></a></li>
</ul>
</div>

<h2><span class="mw-headline" id="Purpose">Purpose</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Pet_door&amp;action=edit&amp;section=1" title="Edit section: Purpose">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
<p>A pet door is found to be convenient by many owners of companion animals, especially dogs and cats, because it lets the pets come and go as they please, reducing the need for pet-owners to let or take the pet outside manually, and curtailing unwanted behaviour such as loud vocalisation to be let outside, scratching on doors or walls, and (especially in the case of dogs) <a href="/wiki/Excretion" title="Excretion">excreting</a> in the house. They also help to ensure that a pet left outdoors can safely get back into the house in the case of inclement weather.
</p>
<h2><span class="mw-headline" id="Features">Features</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Pet_door&amp;action=edit&amp;section=2" title="Edit section: Features">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
<div class="thumb tright"><div class="thumbinner" style="width:222px;"><a href="/wiki/File:Cat_flap.jpg" class="image"><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/3/36/Cat_flap.jpg/220px-Cat_flap.jpg" decoding="async" width="220" height="277" class="thumbimage" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/3/36/Cat_flap.jpg/330px-Cat_flap.jpg 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/3/36/Cat_flap.jpg/440px-Cat_flap.jpg 2x" data-file-width="860" data-file-height="1081" /></a>  <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Cat_flap.jpg" class="internal" title="Enlarge"></a></div>A cat flap in action</div></div></div>
<p>The simplest type are bottom-weighted flaps hung from the top of the opening, which swing shut on their own, but may be spring-aided to increase wind resistance. These flaps often feature magnets around the edges to help keep the door closed against weather and wind. Some pet doors have side-mounted hinges like saloon doors<sup class="noprint Inline-Template Template-Fact" style="white-space:nowrap;">&#91;<i><a href="/wiki/Wikipedia:Citation_needed" title="Wikipedia:Citation needed"><span title="Add a citation and a photo showing that these actually exist. (September 2012)">citation needed</span></a></i>&#93;</sup>. These pet doors usually have a spring or other contrivance to force their closure after the pet has gone through. Instead of a rubber flap, saloon style doors are often made from plastic, acrylic, or plexiglas, and the panels are fitted with weatherseal to help keep weather outside.
</p><p>Another common feature is an adjustable catch to restrict the opening of the device to either one direction or the other; for example, to allow the pet to come in for the night, but not go out again until the owner releases the catch the next morning. Some pets, mostly cats with their retractile claws and flexible paws, learn to circumvent one-way pet doors, especially the "flap-within-flap" design.
</p><p>Most also have a locking mechanism of some kind, and can be closed off by sliding a rigid plate into parallel rails on the left and right of the interior side of the pet door to close it off, e.g. during bad weather or when the owners are travelling with their pets.
</p><p>Pet doors are generally designed to be safe for any pet.  The panels are often designed with soft <a href="/wiki/Polyvinyl_chloride" title="Polyvinyl chloride">vinyl</a> that does not trap or injure the animal. Cheap, easily replaceable pet doors are made from plastic and as such may not always be robust enough for large, boisterous pets.
</p><p>Pet doors are most often fitted in a plywood or plastic panelled door, into which it is straightforward to cut a large round hole, but can also be fitted in brickwork or (if a sealed unit is obtained with the hole already provided) in a double glazed door.  The latter is a relatively expensive option but may be the only alternative in some cases. Removable pet doors suitable for <a href="/wiki/Sliding_glass_door" title="Sliding glass door">sliding glass doors</a> are also available.
</p><p>Recent innovation has contributed a new generation of more expensive pet doors making use of specific materials, automation, time control devices, and/or sophisticated sensors to deal with such common problems as poor insulation and drafts, higher noise levels, insufficient pet safety and access difficulties.<sup id="cite_ref-2" class="reference"><a href="#cite_note-2">&#91;2&#93;</a></sup><sup id="cite_ref-3" class="reference"><a href="#cite_note-3">&#91;3&#93;</a></sup>
</p>
<h2><span class="mw-headline" id="History">History</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Pet_door&amp;action=edit&amp;section=3" title="Edit section: History">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
<p>The <i><a href="/wiki/Oxford_English_Dictionary" title="Oxford English Dictionary">Oxford English Dictionary</a></i> records the first use of the phrase "cat flap" in 1957 and "cat door" in 1959,<sup id="cite_ref-4" class="reference"><a href="#cite_note-4">&#91;4&#93;</a></sup><sup class="noprint Inline-Template" style="margin-left:0.1em; white-space:nowrap;">&#91;<i><a href="/wiki/Wikipedia:Please_clarify" title="Wikipedia:Please clarify"><span title="What about &quot;pet door&quot;, &quot;pet flap&quot;, &quot;dog door&quot;, and &quot;dog flap&quot;? (September 2012)">clarification needed</span></a></i>&#93;</sup> but the idea is much older.
</p>
<div class="thumb tleft"><div class="thumbinner" style="width:222px;"><a href="/wiki/File:Gatera_de_ademuz.jpg" class="image"><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/9/98/Gatera_de_ademuz.jpg/220px-Gatera_de_ademuz.jpg" decoding="async" width="220" height="165" class="thumbimage" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/9/98/Gatera_de_ademuz.jpg/330px-Gatera_de_ademuz.jpg 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/9/98/Gatera_de_ademuz.jpg/440px-Gatera_de_ademuz.jpg 2x" data-file-width="960" data-file-height="720" /></a>  <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Gatera_de_ademuz.jpg" class="internal" title="Enlarge"></a></div>A <i><i lang="es" title="Spanish language text">gatera</i></i> (farm cat hole) in <a href="/wiki/Rinc%C3%B3n_de_Ademuz" title="Rincón de Ademuz">Rinn de Ademuz</a>, Valencia, Spain</div></div></div>
<p>In rural areas, cat doors (often simple holes) in the walls, doors or even roofs of grain and flour storage spaces have long been used to welcome <a href="/wiki/Feral_cat" title="Feral cat">feral cats</a> to hunt rodent pests that feed on these stores. Human semi-domestication of <a href="/wiki/Wildcat" title="Wildcat">wildcats</a> dates back to at least 7,500 BC in <a href="/wiki/Cyprus" title="Cyprus">Cyprus</a>,<sup id="cite_ref-NatGeo_2004_5-0" class="reference"><a href="#cite_note-NatGeo_2004-5">&#91;5&#93;</a></sup> and the domestic cat was a part of everyday life in grain-dependent <a href="/wiki/Ancient_Egypt" title="Ancient Egypt">ancient Egypt</a> (ca. 6,000 BC onward).  Nowadays, this function is mostly lost, but in some rural areas, such as <a href="/wiki/Valencia,_Spain" class="mw-redirect" title="Valencia, Spain">Valencia</a>, Spain, and <a href="/wiki/Vaunage" title="Vaunage">Vaunage</a>, France, farm cat doors and holes (<a href="/wiki/Spanish_language" title="Spanish language">Spanish</a>: <i lang="es">gateras</i>, <a href="/wiki/French_language" title="French language">French</a>: <i lang="fr">chatières</i>) are still common.
</p><p>
The 14th-century <a href="/wiki/English_literature" title="English literature">English</a> writer <a href="/wiki/Geoffrey_Chaucer" title="Geoffrey Chaucer">Geoffrey Chaucer</a> described a simple cat hole in the "Miller's Tale" from his <i><a href="/wiki/Canterbury_Tales" class="mw-redirect" title="Canterbury Tales">Canterbury Tales</a></i> (late 14th century). In the narrative, a servant whose knocks go unanswered uses the cat door to peek in:</p><blockquote><p><i lang="enm" title="Middle English language text">An hole he foond, ful lowe upon a bord<br />Ther as the cat was wont in for to crepe,<br />And at the hole he looked in ful depe,<br />And at the last he hadde of hym a sighte.</i></p></blockquote>
<p>In an apparent <a href="/wiki/Early_modern_period" title="Early modern period">early modern</a> example of <a href="/wiki/Urban_legend" title="Urban legend">urban legend</a>, the invention of the pet door was attributed to <a href="/wiki/Isaac_Newton" title="Isaac Newton">Isaac Newton</a> (1642&#8211;1727) in a story (authored anonymously and published in a column of anecdotes in 1893) to the effect that Newton foolishly made a large hole for his adult cat and a small one for her kittens, not realizing the kittens would follow the mother through the large one.<sup id="cite_ref-6" class="reference"><a href="#cite_note-6">&#91;6&#93;</a></sup> Two Newton biographers cite passages saying that Newton kept "neither cat nor dog in his chamber".<sup id="cite_ref-7" class="reference"><a href="#cite_note-7">&#91;7&#93;</a></sup><sup id="cite_ref-8" class="reference"><a href="#cite_note-8">&#91;8&#93;</a></sup> Yet over 60 years earlier, a member of Newton's alma mater Trinity college, one J. M. F. Wright, reported this same story (from an unknown source) in his 1827 memoir, adding: "Whether this account be true or false, indisputably true is it that there are in the door to this day two plugged holes of the proper dimensions for the respective egresses of cat and kitten."<sup id="cite_ref-9" class="reference"><a href="#cite_note-9">&#91;9&#93;</a></sup>
</p><p>Modern cat flaps are popular in some countries even in urban environments, particularly the <a href="/wiki/United_Kingdom" title="United Kingdom">United Kingdom</a> where it is estimated that about 74% of cats have access to the outdoors.<sup id="cite_ref-10" class="reference"><a href="#cite_note-10">&#91;10&#93;</a></sup>
</p><p>Dog doors are common in suburban North America, where they mostly lead to fenced-in yards.  Pet doors are also common between suburban homes and their attached garages, so that pet-related mess (cat box, dog food, etc.) can be kept in the garage with pets having free access.
</p>
<h2><span class="mw-headline" id="Electronic_pet_doors">Electronic pet doors</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Pet_door&amp;action=edit&amp;section=4" title="Edit section: Electronic pet doors">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
<div class="thumb tright"><div class="thumbinner" style="width:202px;"><a href="/wiki/File:Wall_mounted_catflap.jpg" class="image"><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/2/2d/Wall_mounted_catflap.jpg/200px-Wall_mounted_catflap.jpg" decoding="async" width="200" height="150" class="thumbimage" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/2/2d/Wall_mounted_catflap.jpg/300px-Wall_mounted_catflap.jpg 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/2/2d/Wall_mounted_catflap.jpg/400px-Wall_mounted_catflap.jpg 2x" data-file-width="2816" data-file-height="2112" /></a>  <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Wall_mounted_catflap.jpg" class="internal" title="Enlarge"></a></div>A <a href="/wiki/Integrated_circuit" title="Integrated circuit">microchip</a>-enabled, selective-access cat and small dog door running through a wall</div></div></div>
<p>Several types of pet doors that allow selective access are available. The advantages of this type of pet door over simpler models are improved weather resistance, and home security against strays and other unwanted animals. Some use a <a href="/wiki/Permanent_magnet" class="mw-redirect" title="Permanent magnet">permanent magnet</a> mounted on the pet's collar to activate a matching <a href="/wiki/Electromagnet" title="Electromagnet">electromagnetic</a> mechanism that unlatches the door panel when the magnet comes within range; several pets can be fitted with collars that match the same door. Pet doors with <a href="/wiki/Consumer_IR" title="Consumer IR">infrared</a> locks open only when a collar-mounted device transmits the correct code to the latch's receiver, allowing owners to have multiple flaps that different pets can use, e.g. a small cat flap to the back yard and a large dog door accessing a <a href="/wiki/Dog_run" class="mw-redirect" title="Dog run">dog run</a>.  Either type can be used to selectively allow one pet outside access, while denying it to another (e.g., an ill animal that needs to stay indoors).
</p><p>Some of the newest models use <a href="/wiki/Radio-frequency_identification" title="Radio-frequency identification">radio-frequency identification</a> to electronically read a pet's <a href="/wiki/Microchip_implant_(animal)" title="Microchip implant (animal)">microchip implant</a>. This removes the need for a cat to wear a collar, which could become lost. Other high-end doors use a key with RFID. The key is attached to the pet's collar, and the electric door only opens for the assigned keys.
</p>
<h2><span class="mw-headline" id="Dog_stiles">Dog stiles</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Pet_door&amp;action=edit&amp;section=5" title="Edit section: Dog stiles">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
<div class="thumb tleft"><div class="thumbinner" style="width:187px;"><a href="/wiki/File:Dog_door_demonstration_-_geograph.org.uk_-_718920.jpg" class="image"><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/a/ae/Dog_door_demonstration_-_geograph.org.uk_-_718920.jpg/185px-Dog_door_demonstration_-_geograph.org.uk_-_718920.jpg" decoding="async" width="185" height="247" class="thumbimage" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/a/ae/Dog_door_demonstration_-_geograph.org.uk_-_718920.jpg/278px-Dog_door_demonstration_-_geograph.org.uk_-_718920.jpg 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/a/ae/Dog_door_demonstration_-_geograph.org.uk_-_718920.jpg/370px-Dog_door_demonstration_-_geograph.org.uk_-_718920.jpg 2x" data-file-width="480" data-file-height="640" /></a>  <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Dog_door_demonstration_-_geograph.org.uk_-_718920.jpg" class="internal" title="Enlarge"></a></div>A man lets a dog through the lift-up hatch at a stile in <a href="/wiki/Medway" title="Medway">Medway</a>, <a href="/wiki/England" title="England">England</a>.</div></div></div>
<p>In <a href="/wiki/England" title="England">England</a>, <a href="/wiki/Ireland" title="Ireland">Ireland</a>, and other areas with large numbers of livestock fences and walls in areas through which people walk on footpaths, <a href="/wiki/Stile" title="Stile">stiles</a> often have wooden, lift-up dog hatchways next to them, because dogs are not good at climbing stile steps and are often too heavy to lift over a fence.
</p>
<h2><span class="mw-headline" id="Pet_gates">Pet gates</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Pet_door&amp;action=edit&amp;section=6" title="Edit section: Pet gates">edit</a><span class="mw-editsection-bracket">]</span></span></h2><p>
A related idea, essentially an opposite of the pet door, is the pet gate, an easily human-operated portal that keeps pets in (or out) and thwarts their attempts to open it, e.g. with a thumb-operated switch or a smooth door handle, and which is tall enough that it cannot be jumped over by the type of pet for which it was designed. Styles vary, but they are typically made of wooden or metal bars or a wire lattice, and have adjustable widths so that they can be used to span arbitrary entrances, hallways or windows. Common uses are to keep pets inside while ventilating a room by opening an unscreened door, or keeping pets out of a baby's room or a dining area.</p><div style="clear:left;"></div>
<h2><span class="mw-headline" id="Pet_barriers">Pet barriers</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Pet_door&amp;action=edit&amp;section=7" title="Edit section: Pet barriers">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
<p>Pet barriers are typically made of fabric and are especially used to secure staircases.<sup id="cite_ref-11" class="reference"><a href="#cite_note-11">&#91;11&#93;</a></sup> They are available in banister-to-banister and wall-to-banister options and are customizable and portable.
</p>
<h2><span class="mw-headline" id="References">References</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Pet_door&amp;action=edit&amp;section=8" title="Edit section: References">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
<table class="box-More_citations_needed plainlinks metadata ambox ambox-content ambox-Refimprove" role="presentation"><tbody><tr><td class="mbox-image"><div style="width:52px"><a href="/wiki/File:Question_book-new.svg" class="image"><img alt="" src="//upload.wikimedia.org/wikipedia/en/thumb/9/99/Question_book-new.svg/50px-Question_book-new.svg.png" decoding="async" width="50" height="39" srcset="//upload.wikimedia.org/wikipedia/en/thumb/9/99/Question_book-new.svg/75px-Question_book-new.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/9/99/Question_book-new.svg/100px-Question_book-new.svg.png 2x" data-file-width="512" data-file-height="399" /></a></div></td><td class="mbox-text"><div class="mbox-text-span">This article <b>needs additional citations for <a href="/wiki/Wikipedia:Verifiability" title="Wikipedia:Verifiability">verification</a></b>.<span class="hide-when-compact"> Please help <a class="external text" href="https://en.wikipedia.org/w/index.php?title=Pet_door&amp;action=edit">improve this article</a> by <a href="/wiki/Help:Introduction_to_referencing_with_Wiki_Markup/1" title="Help:Introduction to referencing with Wiki Markup/1">adding citations to reliable sources</a>. Unsourced material may be challenged and removed.<br /><small><span class="plainlinks"><i>Find sources:</i>&#160;<a rel="nofollow" class="external text" href="//www.google.com/search?as_eq=wikipedia&amp;q=%22Pet+door%22">"Pet door"</a>&#160;–&#160;<a rel="nofollow" class="external text" href="//www.google.com/search?tbm=nws&amp;q=%22Pet+door%22+-wikipedia">news</a>&#160;<b>·</b> <a rel="nofollow" class="external text" href="//www.google.com/search?&amp;q=%22Pet+door%22+site:news.google.com/newspapers&amp;source=newspapers">newspapers</a>&#160;<b>·</b> <a rel="nofollow" class="external text" href="//www.google.com/search?tbs=bks:1&amp;q=%22Pet+door%22+-wikipedia">books</a>&#160;<b>·</b> <a rel="nofollow" class="external text" href="//scholar.google.com/scholar?q=%22Pet+door%22">scholar</a>&#160;<b>·</b> <a rel="nofollow" class="external text" href="https://www.jstor.org/action/doBasicSearch?Query=%22Pet+door%22&amp;acc=on&amp;wc=on">JSTOR</a></span></small></span>  <small class="date-container"><i>(<span class="date">July 2007</span>)</i></small><small class="hide-when-compact"><i> (<a href="/wiki/Help:Maintenance_template_removal" title="Help:Maintenance template removal">Learn how and when to remove this template message</a>)</i></small></div></td></tr></tbody></table>
<div class="reflist" style="list-style-type: decimal;">
<div class="mw-references-wrap mw-references-columns"><ol class="references">
<li id="cite_note-1"><span class="mw-cite-backlink"><b><a href="#cite_ref-1">^</a></b></span> <span class="reference-text"><cite class="citation web"><a rel="nofollow" class="external text" href="http://www.gizmag.com/passive-house-petwalk-door/31162/">"World's first Passive House-certified pet door unveiled at Ecobuild 2014"</a>. <i>www.gizmag.com</i><span class="reference-accessdate">. Retrieved <span class="nowrap">2016-07-07</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=www.gizmag.com&amp;rft.atitle=World%27s+first+Passive+House-certified+pet+door+unveiled+at+Ecobuild+2014&amp;rft_id=http%3A%2F%2Fwww.gizmag.com%2Fpassive-house-petwalk-door%2F31162%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APet+door" class="Z3988"></span><style data-mw-deduplicate="TemplateStyles:r886058088">.mw-parser-output cite.citation{font-style:inherit}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation .cs1-lock-free a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/6/65/Lock-green.svg/9px-Lock-green.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .citation .cs1-lock-limited a,.mw-parser-output .citation .cs1-lock-registration a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/d/d6/Lock-gray-alt-2.svg/9px-Lock-gray-alt-2.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .citation .cs1-lock-subscription a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/a/aa/Lock-red-alt-2.svg/9px-Lock-red-alt-2.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration{color:#555}.mw-parser-output .cs1-subscription span,.mw-parser-output .cs1-registration span{border-bottom:1px dotted;cursor:help}.mw-parser-output .cs1-ws-icon a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/4/4c/Wikisource-logo.svg/12px-Wikisource-logo.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output code.cs1-code{color:inherit;background:inherit;border:inherit;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;font-size:100%}.mw-parser-output .cs1-visible-error{font-size:100%}.mw-parser-output .cs1-maint{display:none;color:#33aa33;margin-left:0.3em}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration,.mw-parser-output .cs1-format{font-size:95%}.mw-parser-output .cs1-kern-left,.mw-parser-output .cs1-kern-wl-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right,.mw-parser-output .cs1-kern-wl-right{padding-right:0.2em}</style></span>
</li>
<li id="cite_note-2"><span class="mw-cite-backlink"><b><a href="#cite_ref-2">^</a></b></span> <span class="reference-text"><cite class="citation web"><a rel="nofollow" class="external text" href="http://www.trendhunter.com/trends/pet-door">"Automated Pet Doors&#160;: pet door"</a><span class="reference-accessdate">. Retrieved <span class="nowrap">2016-07-07</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Automated+Pet+Doors+%3A+pet+door&amp;rft_id=http%3A%2F%2Fwww.trendhunter.com%2Ftrends%2Fpet-door&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APet+door" class="Z3988"></span><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886058088"/></span>
</li>
<li id="cite_note-3"><span class="mw-cite-backlink"><b><a href="#cite_ref-3">^</a></b></span> <span class="reference-text"><cite class="citation web"><a rel="nofollow" class="external text" href="http://www.ubergizmo.com/2014/03/petwalk-automatic-pet-door-prevents-wet-paw-marks-around-the-home/">"PetWALK Automatic Pet Door Prevents Wet Paw Marks Around The Home"</a>. <i>Ubergizmo</i>. 2014-03-13<span class="reference-accessdate">. Retrieved <span class="nowrap">2016-07-07</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=Ubergizmo&amp;rft.atitle=PetWALK+Automatic+Pet+Door+Prevents+Wet+Paw+Marks+Around+The+Home&amp;rft.date=2014-03-13&amp;rft_id=http%3A%2F%2Fwww.ubergizmo.com%2F2014%2F03%2Fpetwalk-automatic-pet-door-prevents-wet-paw-marks-around-the-home%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APet+door" class="Z3988"></span><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886058088"/></span>
</li>
<li id="cite_note-4"><span class="mw-cite-backlink"><b><a href="#cite_ref-4">^</a></b></span> <span class="reference-text"><i>Oxford English Dictionary</i> (full ed.), 2005.</span>
</li>
<li id="cite_note-NatGeo_2004-5"><span class="mw-cite-backlink"><b><a href="#cite_ref-NatGeo_2004_5-0">^</a></b></span> <span class="reference-text"><cite class="citation web"><a rel="nofollow" class="external text" href="http://news.nationalgeographic.com/news/2004/04/0408_040408_oldestpetcat.html">"Oldest Known Pet Cat? 9500-year-old Burial Found on Cyprus"</a>. <i>National Geographic News</i>. National Geographic Society. April 8, 2004<span class="reference-accessdate">. Retrieved <span class="nowrap">March 6,</span> 2007</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=National+Geographic+News&amp;rft.atitle=Oldest+Known+Pet+Cat%3F+9500-year-old+Burial+Found+on+Cyprus&amp;rft.date=2004-04-08&amp;rft_id=http%3A%2F%2Fnews.nationalgeographic.com%2Fnews%2F2004%2F04%2F0408_040408_oldestpetcat.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APet+door" class="Z3988"></span><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886058088"/></span>
</li>
<li id="cite_note-6"><span class="mw-cite-backlink"><b><a href="#cite_ref-6">^</a></b></span> <span class="reference-text"><cite class="citation web">Anonymous ("The Country Parson") (1863).  E. H. Sears &amp; Rufus Ellis (ed.). <a rel="nofollow" class="external text" href="https://books.google.com/books?id=PXYUAAAAYAAJ&amp;pg=PA298">"Random Readings: Philosophy and Common Sense"</a>. <i>The Monthly Religious Magazine</i>. Boston, MA: Leonard C. Bowles Press. p.&#160;298.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=The+Monthly+Religious+Magazine&amp;rft.atitle=Random+Readings%3A+Philosophy+and+Common+Sense&amp;rft.pages=298&amp;rft.date=1863&amp;rft.au=Anonymous+%28%22The+Country+Parson%22%29&amp;rft_id=https%3A%2F%2Fbooks.google.com%2Fbooks%3Fid%3DPXYUAAAAYAAJ%26pg%3DPA298&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APet+door" class="Z3988"></span><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886058088"/></span>
</li>
<li id="cite_note-7"><span class="mw-cite-backlink"><b><a href="#cite_ref-7">^</a></b></span> <span class="reference-text">Brodetsky, S. (2007) [first pub. 1927]. <i>Sir Isaac Newton</i>. Upton Press. p. 100. <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886058088"/><a href="/wiki/International_Standard_Book_Number" title="International Standard Book Number">ISBN</a>&#160;<a href="/wiki/Special:BookSources/1406769991" title="Special:BookSources/1406769991">1406769991</a>.</span>
</li>
<li id="cite_note-8"><span class="mw-cite-backlink"><b><a href="#cite_ref-8">^</a></b></span> <span class="reference-text">More, Louis Trenchard (1937). <i>Isaac Newton: a Biography</i>. C. Scribner's Sons.</span>
</li>
<li id="cite_note-9"><span class="mw-cite-backlink"><b><a href="#cite_ref-9">^</a></b></span> <span class="reference-text">Wright, J. F. M. (1827). <i>Alma Mater</i>. Volume 1. p. 17.</span>
</li>
<li id="cite_note-10"><span class="mw-cite-backlink"><b><a href="#cite_ref-10">^</a></b></span> <span class="reference-text"><cite class="citation web"><a rel="nofollow" class="external text" href="http://www.petplan.co.uk/petcensus/censusinfo.pdf">"Petplan Pet Census 2011"</a> <span class="cs1-format">(PDF)</span>. Petplan. p.&#160;15<span class="reference-accessdate">. Retrieved <span class="nowrap">September 11,</span> 2012</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Petplan+Pet+Census+2011&amp;rft.pages=15&amp;rft.pub=Petplan&amp;rft_id=http%3A%2F%2Fwww.petplan.co.uk%2Fpetcensus%2Fcensusinfo.pdf&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APet+door" class="Z3988"></span><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886058088"/></span>
</li>
<li id="cite_note-11"><span class="mw-cite-backlink"><b><a href="#cite_ref-11">^</a></b></span> <span class="reference-text"><cite class="citation web">Woods, Amanda. <a rel="nofollow" class="external text" href="https://medium.com/@woodsamanda399/7-important-measures-to-pet-proof-your-home-bdd3e33ae4c8">"7 Important Measures to Pet Proof Your Home"</a><span class="reference-accessdate">. Retrieved <span class="nowrap">23 August</span> 2017</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=7+Important+Measures+to+Pet+Proof+Your+Home&amp;rft.aulast=Woods&amp;rft.aufirst=Amanda&amp;rft_id=https%3A%2F%2Fmedium.com%2F%40woodsamanda399%2F7-important-measures-to-pet-proof-your-home-bdd3e33ae4c8&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APet+door" class="Z3988"></span><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886058088"/></span>
</li>
</ol></div></div>
<table role="presentation" class="mbox-small plainlinks sistersitebox" style="background-color:#f9f9f9;border:1px solid #aaa;color:#000">
<tbody><tr>
<td class="mbox-image"><img alt="" src="//upload.wikimedia.org/wikipedia/en/thumb/4/4a/Commons-logo.svg/30px-Commons-logo.svg.png" decoding="async" width="30" height="40" class="noviewer" srcset="//upload.wikimedia.org/wikipedia/en/thumb/4/4a/Commons-logo.svg/45px-Commons-logo.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/4/4a/Commons-logo.svg/59px-Commons-logo.svg.png 2x" data-file-width="1024" data-file-height="1376" /></td>
<td class="mbox-text plainlist">Wikimedia Commons has media related to <i><b><a href="https://commons.wikimedia.org/wiki/Category:Pet_doors" class="extiw" title="commons:Category:Pet doors"><span style="">Pet doors</span></a></b></i>.</td></tr>
</tbody></table>

Example 2[edit]

GET request to get the original wikitext content of a page: Pet door.


Response[edit]

Response
[[File:Doggy door exit.JPG|thumb|A dog exiting through a pet door]]
A '''pet door''' or '''pet flap''' (also referred to in more specific terms, such as '''cat flap''', '''cat door''', '''dog door''', or '''doggy door''') is a small opening to allow [[pet]]s to enter and exit a building on their own without needing a person to open the door.  Originally simple holes, the modern form is a hinged and often spring-loaded panel or flexible flap, and some are electronically controlled.  They offer a degree of protection against wind, rain, and larger-bodied intruders entering the dwelling. Similar hatches can let dogs through fences at stiles. A related concept is the '''pet gate''', which is easy for humans to open but acts as a secure pet barrier, as well as the '''automated left- or right-handed pet doors'''.<ref>{{Cite web|url=http://www.gizmag.com/passive-house-petwalk-door/31162/|title=World's first Passive House-certified pet door unveiled at Ecobuild 2014|website=www.gizmag.com|access-date=2016-07-07}}</ref>

==Purpose==
A pet door is found to be convenient by many owners of companion animals, especially dogs and cats, because it lets the pets come and go as they please, reducing the need for pet-owners to let or take the pet outside manually, and curtailing unwanted behaviour such as loud vocalisation to be let outside, scratching on doors or walls, and (especially in the case of dogs) [[Excretion|excreting]] in the house. They also help to ensure that a pet left outdoors can safely get back into the house in the case of inclement weather.

==Features==
[[File:Cat flap.jpg|thumb|A cat flap in action]]
The simplest type are bottom-weighted flaps hung from the top of the opening, which swing shut on their own, but may be spring-aided to increase wind resistance. These flaps often feature magnets around the edges to help keep the door closed against weather and wind. Some pet doors have side-mounted hinges like saloon doors{{cn|date=September 2012|reason=Add a citation and a photo showing that these actually exist.}}. These pet doors usually have a spring or other contrivance to force their closure after the pet has gone through. Instead of a rubber flap, saloon style doors are often made from plastic, acrylic, or plexiglas, and the panels are fitted with weatherseal to help keep weather outside.

Another common feature is an adjustable catch to restrict the opening of the device to either one direction or the other; for example, to allow the pet to come in for the night, but not go out again until the owner releases the catch the next morning. Some pets, mostly cats with their retractile claws and flexible paws, learn to circumvent one-way pet doors, especially the "flap-within-flap" design.

Most also have a locking mechanism of some kind, and can be closed off by sliding a rigid plate into parallel rails on the left and right of the interior side of the pet door to close it off, e.g. during bad weather or when the owners are travelling with their pets.

Pet doors are generally designed to be safe for any pet.  The panels are often designed with soft [[Polyvinyl chloride|vinyl]] that does not trap or injure the animal. Cheap, easily replaceable pet doors are made from plastic and as such may not always be robust enough for large, boisterous pets.

Pet doors are most often fitted in a plywood or plastic panelled door, into which it is straightforward to cut a large round hole, but can also be fitted in brickwork or (if a sealed unit is obtained with the hole already provided) in a double glazed door.  The latter is a relatively expensive option but may be the only alternative in some cases. Removable pet doors suitable for [[sliding glass door]]s are also available.

Recent innovation has contributed a new generation of more expensive pet doors making use of specific materials, automation, time control devices, and/or sophisticated sensors to deal with such common problems as poor insulation and drafts, higher noise levels, insufficient pet safety and access difficulties.<ref>{{Cite web|url=http://www.trendhunter.com/trends/pet-door|title=Automated Pet Doors : pet door|access-date=2016-07-07}}</ref><ref>{{Cite web|url=http://www.ubergizmo.com/2014/03/petwalk-automatic-pet-door-prevents-wet-paw-marks-around-the-home/|title=PetWALK Automatic Pet Door Prevents Wet Paw Marks Around The Home|date=2014-03-13|website=Ubergizmo|language=en-US|access-date=2016-07-07}}</ref>

==History==
The ''[[Oxford English Dictionary]]'' records the first use of the phrase "cat flap" in 1957 and "cat door" in 1959,<ref>''Oxford English Dictionary'' (full ed.), 2005.</ref>{{clarify|date=September 2012|reason=What about "pet door", "pet flap", "dog door", and "dog flap"?}} but the idea is much older.

[[File:Gatera de ademuz.jpg|thumb|left|A ''{{lang|es|gatera}}'' (farm cat hole) in [[Rinn de Ademuz]], Valencia, Spain]]
In rural areas, cat doors (often simple holes) in the walls, doors or even roofs of grain and flour storage spaces have long been used to welcome [[feral cat]]s to hunt rodent pests that feed on these stores. Human semi-domestication of [[wildcat]]s dates back to at least 7,500 BC in [[Cyprus]],<ref name="NatGeo 2004">{{cite web
 |title=Oldest Known Pet Cat? 9500-year-old Burial Found on Cyprus
 |url= http://news.nationalgeographic.com/news/2004/04/0408_040408_oldestpetcat.html
 |accessdate=March 6, 2007
 |date=April 8, 2004
 |work=National Geographic News
 |publisher=National Geographic Society
}}</ref> and the domestic cat was a part of everyday life in grain-dependent [[ancient Egypt]] (ca. 6,000 BC onward).  Nowadays, this function is mostly lost, but in some rural areas, such as [[Valencia, Spain|Valencia]], Spain, and [[Vaunage]], France, farm cat doors and holes ({{lang-es|gateras}}, {{lang-fr|chatières}}) are still common.

The 14th-century [[English literature|English]] writer [[Geoffrey Chaucer]] described a simple cat hole in the "Miller's Tale" from his ''[[Canterbury Tales]]'' (late 14th century). In the narrative, a servant whose knocks go unanswered uses the cat door to peek in:<blockquote>{{lang|enm|An hole he foond, ful lowe upon a bord<br />Ther as the cat was wont in for to crepe,<br />And at the hole he looked in ful depe,<br />And at the last he hadde of hym a sighte.}}</blockquote>

In an apparent [[Early modern period|early modern]] example of [[urban legend]], the invention of the pet door was attributed to [[Isaac Newton]] (1642&ndash;1727) in a story (authored anonymously and published in a column of anecdotes in 1893) to the effect that Newton foolishly made a large hole for his adult cat and a small one for her kittens, not realizing the kittens would follow the mother through the large one.<ref>{{Cite web
 |title=Random Readings: Philosophy and Common Sense
 |author=Anonymous ("The Country Parson")<!--Not to be confused with Frank A. Clark who used that name in the 1960s!-->
 |editor=E. H. Sears & Rufus Ellis
 |work=The Monthly Religious Magazine
 |year=1863
 |volume=29-30
 |page=298
 |publisher=Leonard C. Bowles Press
 |location=Boston, MA
 |url= https://books.google.com/books?id=PXYUAAAAYAAJ&pg=PA298
}}</ref> Two Newton biographers cite passages saying that Newton kept "neither cat nor dog in his chamber".<ref>Brodetsky, S. (2007) [first pub. 1927]. ''Sir Isaac Newton''. Upton Press. p. 100. {{ISBN|1406769991}}.</ref><ref>More, Louis Trenchard (1937). ''Isaac Newton: a Biography''. C. Scribner's Sons.</ref> Yet over 60 years earlier, a member of Newton's alma mater Trinity college, one J. M. F. Wright, reported this same story (from an unknown source) in his 1827 memoir, adding: "Whether this account be true or false, indisputably true is it that there are in the door to this day two plugged holes of the proper dimensions for the respective egresses of cat and kitten."<ref>Wright, J. F. M. (1827). ''Alma Mater''. Volume 1. p. 17.</ref>

Modern cat flaps are popular in some countries even in urban environments, particularly the [[United Kingdom]] where it is estimated that about 74% of cats have access to the outdoors.<ref>{{cite web|url=http://www.petplan.co.uk/petcensus/censusinfo.pdf |title=Petplan Pet Census 2011 |publisher=Petplan |page=15 |accessdate=September 11, 2012}}</ref>

Dog doors are common in suburban North America, where they mostly lead to fenced-in yards.  Pet doors are also common between suburban homes and their attached garages, so that pet-related mess (cat box, dog food, etc.) can be kept in the garage with pets having free access.

==Electronic pet doors==
[[File:Wall mounted catflap.jpg|thumb|200px|A [[Integrated circuit|microchip]]-enabled, selective-access cat and small dog door running through a wall]]
Several types of pet doors that allow selective access are available. The advantages of this type of pet door over simpler models are improved weather resistance, and home security against strays and other unwanted animals. Some use a [[permanent magnet]] mounted on the pet's collar to activate a matching [[electromagnet]]ic mechanism that unlatches the door panel when the magnet comes within range; several pets can be fitted with collars that match the same door. Pet doors with [[Consumer IR|infrared]] locks open only when a collar-mounted device transmits the correct code to the latch's receiver, allowing owners to have multiple flaps that different pets can use, e.g. a small cat flap to the back yard and a large dog door accessing a [[dog run]].  Either type can be used to selectively allow one pet outside access, while denying it to another (e.g., an ill animal that needs to stay indoors).

Some of the newest models use [[radio-frequency identification]] to electronically read a pet's [[Microchip implant (animal)|microchip implant]]. This removes the need for a cat to wear a collar, which could become lost. Other high-end doors use a key with RFID. The key is attached to the pet's collar, and the electric door only opens for the assigned keys.

==Dog stiles==
[[File:Dog door demonstration - geograph.org.uk - 718920.jpg|thumb|left|A man lets a dog through the lift-up hatch at a stile in [[Medway]], [[England]].|247x247px]]
In [[England]], [[Ireland]], and other areas with large numbers of livestock fences and walls in areas through which people walk on footpaths, [[stile]]s often have wooden, lift-up dog hatchways next to them, because dogs are not good at climbing stile steps and are often too heavy to lift over a fence.

==Pet gates==
A related idea, essentially an opposite of the pet door, is the pet gate, an easily human-operated portal that keeps pets in (or out) and thwarts their attempts to open it, e.g. with a thumb-operated switch or a smooth door handle, and which is tall enough that it cannot be jumped over by the type of pet for which it was designed. Styles vary, but they are typically made of wooden or metal bars or a wire lattice, and have adjustable widths so that they can be used to span arbitrary entrances, hallways or windows. Common uses are to keep pets inside while ventilating a room by opening an unscreened door, or keeping pets out of a baby's room or a dining area.{{clear|left}}

==Pet barriers==
Pet barriers are typically made of fabric and are especially used to secure staircases.<ref>{{cite web|last1=Woods|first1=Amanda|title=7 Important Measures to Pet Proof Your Home|url=https://medium.com/@woodsamanda399/7-important-measures-to-pet-proof-your-home-bdd3e33ae4c8|accessdate=23 August 2017}}</ref> They are available in banister-to-banister and wall-to-banister options and are customizable and portable.

== References ==
{{Refimprove|date=July 2007}}
{{reflist}}

{{Commons category|Pet doors}}

[[Category:Door furniture]]
[[Category:Pet equipment]]

Method 3: Get the content of the page using Extension: TextExtracts#API[edit]

The TextExtracts extension provides an API which allows to retrieve plain-text or limited HTML extracts of page content.

Example[edit]

Get request to extract 10 sentences from the page: Pet door.



Response[edit]

Response
A pet door or pet flap (also referred to in more specific terms, such as cat flap, cat door, dog door, or doggy door) is a small opening to allow pets to enter and exit a building on their own without needing a person to open the door.  Originally simple holes, the modern form is a hinged and often spring-loaded panel or flexible flap, and some are electronically controlled.  They offer a degree of protection against wind, rain, and larger-bodied intruders entering the dwelling. Similar hatches can let dogs through fences at stiles. A related concept is the pet gate, which is easy for humans to open but acts as a secure pet barrier, as well as the automated left- or right-handed pet doors.

== Purpose ==
A pet door is found to be convenient by many owners of companion animals, especially dogs and cats, because it lets the pets come and go as they please, reducing the need for pet-owners to let or take the pet outside manually, and curtailing unwanted behaviour such as loud vocalisation to be let outside, scratching on doors or walls, and (especially in the case of dogs) excreting in the house. They also help to ensure that a pet left outdoors can safely get back into the house in the case of inclement weather.

== Features ==
The simplest type are bottom-weighted flaps hung from the top of the opening, which swing shut on their own, but may be spring-aided to increase wind resistance. These flaps often feature magnets around the edges to help keep the door closed against weather and wind. Some pet doors have side-mounted hinges like saloon doors.

Additional notes[edit]

The content extracted directly from Wikipedia can be inserted into any MediaWiki wiki through Extension:WikipediaExtracts . The content extracted comes in the form of limited wikitext, omitting leading templates, links to files or pages.

See also[edit]