forked from solletivivek/amazone-search-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi.html
More file actions
229 lines (192 loc) · 5.28 KB
/
Copy pathapi.html
File metadata and controls
229 lines (192 loc) · 5.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Amazon Scraper API Documentation</title>
<head>
<style>
@media screen and (max-width: 768px) {
body {
font-size: 14px;
}
h1 {
font-size: 2em;
}
.endpoint {
padding: 0.5em;
}
/* Add more styles for smaller screens */
}
body {
font-family: "Helvetica Neue", Arial, sans-serif;
color: #444;
font-size: 16px;
line-height: 1.5;
}
h1, h2, h3, h4, h5, h6 {
font-family: "Helvetica Neue", Arial, sans-serif;
font-weight: bold;
}
h1 {
font-size: 2.5em;
margin-bottom: 0.5em;
}
h2 {
font-size: 2em;
margin-bottom: 0.5em;
}
h3 {
font-size: 1.5em;
margin-bottom: 0.5em;
}
h4 {
font-size: 1.25em;
margin-bottom: 0.5em;
}
h5 {
font-size: 1em;
margin-bottom: 0.5em;
}
h6 {
font-size: 0.875em;
margin-bottom: 0.5em;
}
p {
margin-bottom: 1em;
}
a {
color: #337ab7;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
code {
font-family: Consolas, Monaco, "Courier New", Courier, monospace;
font-size: 0.9em;
background-color: #f5f5f5;
padding: 0.25em 0.5em;
border-radius: 3px;
}
pre {
font-family: Consolas, Monaco, "Courier New", Courier, monospace;
font-size: 0.9em;
background-color: #f5f5f5;
padding: 0.5em;
border-radius: 3px;
}
blockquote {
margin-left: 0;
padding-left: 1.5em;
border-left: 0.25em solid #ccc;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
th, td {
padding: 0.25em 0.5em;
border-bottom: 1px solid #ccc;
}
th {
text-align: left;
}
.endpoint {
margin-bottom: 2em;
border: 1px solid #ccc;
padding: 1em;
border-radius: 3px;
}
.endpoint h2 {
margin-top: 0;
}
.example {
margin-bottom: 1em;
}
.response {
margin-bottom: 1em;
}
footer {
text-align: center;
margin-top: 20px;
}
footer p {
font-size: 1em;
color: #777;
}
footer a {
text-decoration: none;
color: #337ab7;
font-weight: bold;
}
footer a:hover {
text-decoration: underline;
}
</style>
</head>
</head>
<body>
<h1>Amazon Scraper API Documentation</h1>
<p>This API allows you to scrape product details, reviews, offers, and search results from Amazon.</p>
<div class="endpoint">
<h2>Get Product Details</h2>
<p>Retrieve details of a specific Amazon product.</p>
<pre>
<code>GET /products/:productId</code>
</pre>
<div class="example">
<p>Example:</p>
<pre>
<code>/products/B07G3QMPB5</code>
</pre>
</div>
</div>
<div class="endpoint">
<h2>Get Product Reviews</h2>
<p>Retrieve reviews of a specific Amazon product.</p>
<pre>
<code>GET /products/:productId/reviews</code>
</pre>
<div class="example">
<p>Example:</p>
<pre>
<code>/products/B07G3QMPB5/reviews</code>
</pre>
</div>
</div>
<div class="endpoint">
<h2>Get Product Offers</h2>
<p>Retrieve offers for a specific Amazon product.</p>
<pre>
<code>GET /products/:productId/offers</code>
</pre>
<div class="example">
<p>Example:</p>
<pre>
<code>/products/B07G3QMPB5/offers</code>
</pre>
</div>
</div>
<div class="endpoint">
<h2>Search for Products</h2>
<p>Search for products on Amazon by a query.</p>
<pre>
<code>GET /search/:searchQuery</code>
</pre>
<div class="example">
<p>Example:</p>
<pre>
<code>/search/laptop</code>
</pre>
</div>
</div>
<h2>Usage</h2>
<p>To use this API, make GET requests to the specified endpoints as shown in the examples above. The API will return JSON responses with the scraped data.</p>
<h2>API Base URL</h2>
<p>The base URL for the API is not specified in this documentation, but you can define it in your code using the API key provided.</p>
<p>Remember to handle errors properly in your application, as the API might return 500 Internal Server Error for invalid requests.</p>
<footer>
<p>Made with ❤️ by <a href="https://svivek.tech" target="_blank">vivek</a></p>
</footer>
</body>
</html>