
Facebook marketplace scraper
3 days trial then $40.00/month - No credit card required now

Facebook marketplace scraper
3 days trial then $40.00/month - No credit card required now
Scrape facebook marketplace listings and export data to CSV, JSON or use as API
Actor Metrics
91 Monthly users
2.0 / 5 (1)
37 bookmarks
>99% runs succeeded
7.4 hours response time
Created in Sep 2023
Modified a month ago
You can access the Facebook marketplace scraper programmatically from your own applications by using the Apify API. You can choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.
1{
2 "openapi": "3.0.1",
3 "info": {
4 "version": "1.1",
5 "x-build-id": "UwzIa6tAFfaGPUSQH"
6 },
7 "servers": [
8 {
9 "url": "https://api.apify.com/v2"
10 }
11 ],
12 "paths": {
13 "/acts/curious_coder~facebook-marketplace/run-sync-get-dataset-items": {
14 "post": {
15 "operationId": "run-sync-get-dataset-items-curious_coder-facebook-marketplace",
16 "x-openai-isConsequential": false,
17 "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
18 "tags": [
19 "Run Actor"
20 ],
21 "requestBody": {
22 "required": true,
23 "content": {
24 "application/json": {
25 "schema": {
26 "$ref": "#/components/schemas/inputSchema"
27 }
28 }
29 }
30 },
31 "parameters": [
32 {
33 "name": "token",
34 "in": "query",
35 "required": true,
36 "schema": {
37 "type": "string"
38 },
39 "description": "Enter your Apify token here"
40 }
41 ],
42 "responses": {
43 "200": {
44 "description": "OK"
45 }
46 }
47 }
48 },
49 "/acts/curious_coder~facebook-marketplace/runs": {
50 "post": {
51 "operationId": "runs-sync-curious_coder-facebook-marketplace",
52 "x-openai-isConsequential": false,
53 "summary": "Executes an Actor and returns information about the initiated run in response.",
54 "tags": [
55 "Run Actor"
56 ],
57 "requestBody": {
58 "required": true,
59 "content": {
60 "application/json": {
61 "schema": {
62 "$ref": "#/components/schemas/inputSchema"
63 }
64 }
65 }
66 },
67 "parameters": [
68 {
69 "name": "token",
70 "in": "query",
71 "required": true,
72 "schema": {
73 "type": "string"
74 },
75 "description": "Enter your Apify token here"
76 }
77 ],
78 "responses": {
79 "200": {
80 "description": "OK",
81 "content": {
82 "application/json": {
83 "schema": {
84 "$ref": "#/components/schemas/runsResponseSchema"
85 }
86 }
87 }
88 }
89 }
90 }
91 },
92 "/acts/curious_coder~facebook-marketplace/run-sync": {
93 "post": {
94 "operationId": "run-sync-curious_coder-facebook-marketplace",
95 "x-openai-isConsequential": false,
96 "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
97 "tags": [
98 "Run Actor"
99 ],
100 "requestBody": {
101 "required": true,
102 "content": {
103 "application/json": {
104 "schema": {
105 "$ref": "#/components/schemas/inputSchema"
106 }
107 }
108 }
109 },
110 "parameters": [
111 {
112 "name": "token",
113 "in": "query",
114 "required": true,
115 "schema": {
116 "type": "string"
117 },
118 "description": "Enter your Apify token here"
119 }
120 ],
121 "responses": {
122 "200": {
123 "description": "OK"
124 }
125 }
126 }
127 }
128 },
129 "components": {
130 "schemas": {
131 "inputSchema": {
132 "type": "object",
133 "required": [
134 "urls"
135 ],
136 "properties": {
137 "urls": {
138 "title": "Facebook marketplace search urls",
139 "type": "array",
140 "description": "Publicly accessible [facebook marketplace search](https://www.facebook.com/marketplace/nyc/cars) URLs (Open in incognito window to verify)",
141 "items": {
142 "type": "string"
143 }
144 },
145 "deepScrape": {
146 "title": "Deep scrape",
147 "type": "boolean",
148 "description": "Scraper will visit details page and extract more information",
149 "default": false
150 },
151 "getProfileUrls": {
152 "title": "Get profile URL of sellers",
153 "type": "boolean",
154 "description": "Scraper will extract facebook public profile URL of the sellers",
155 "default": false
156 },
157 "count": {
158 "title": "#️⃣ Total number of records required",
159 "type": "integer",
160 "description": "Leave this field empty if you want to scrape all items."
161 },
162 "proxy": {
163 "title": "Custom proxy",
164 "type": "object",
165 "description": "If the scraped data is not matching as expected or getting blocked, try using a proxy from your current location"
166 }
167 }
168 },
169 "runsResponseSchema": {
170 "type": "object",
171 "properties": {
172 "data": {
173 "type": "object",
174 "properties": {
175 "id": {
176 "type": "string"
177 },
178 "actId": {
179 "type": "string"
180 },
181 "userId": {
182 "type": "string"
183 },
184 "startedAt": {
185 "type": "string",
186 "format": "date-time",
187 "example": "2025-01-08T00:00:00.000Z"
188 },
189 "finishedAt": {
190 "type": "string",
191 "format": "date-time",
192 "example": "2025-01-08T00:00:00.000Z"
193 },
194 "status": {
195 "type": "string",
196 "example": "READY"
197 },
198 "meta": {
199 "type": "object",
200 "properties": {
201 "origin": {
202 "type": "string",
203 "example": "API"
204 },
205 "userAgent": {
206 "type": "string"
207 }
208 }
209 },
210 "stats": {
211 "type": "object",
212 "properties": {
213 "inputBodyLen": {
214 "type": "integer",
215 "example": 2000
216 },
217 "rebootCount": {
218 "type": "integer",
219 "example": 0
220 },
221 "restartCount": {
222 "type": "integer",
223 "example": 0
224 },
225 "resurrectCount": {
226 "type": "integer",
227 "example": 0
228 },
229 "computeUnits": {
230 "type": "integer",
231 "example": 0
232 }
233 }
234 },
235 "options": {
236 "type": "object",
237 "properties": {
238 "build": {
239 "type": "string",
240 "example": "latest"
241 },
242 "timeoutSecs": {
243 "type": "integer",
244 "example": 300
245 },
246 "memoryMbytes": {
247 "type": "integer",
248 "example": 1024
249 },
250 "diskMbytes": {
251 "type": "integer",
252 "example": 2048
253 }
254 }
255 },
256 "buildId": {
257 "type": "string"
258 },
259 "defaultKeyValueStoreId": {
260 "type": "string"
261 },
262 "defaultDatasetId": {
263 "type": "string"
264 },
265 "defaultRequestQueueId": {
266 "type": "string"
267 },
268 "buildNumber": {
269 "type": "string",
270 "example": "1.0.0"
271 },
272 "containerUrl": {
273 "type": "string"
274 },
275 "usage": {
276 "type": "object",
277 "properties": {
278 "ACTOR_COMPUTE_UNITS": {
279 "type": "integer",
280 "example": 0
281 },
282 "DATASET_READS": {
283 "type": "integer",
284 "example": 0
285 },
286 "DATASET_WRITES": {
287 "type": "integer",
288 "example": 0
289 },
290 "KEY_VALUE_STORE_READS": {
291 "type": "integer",
292 "example": 0
293 },
294 "KEY_VALUE_STORE_WRITES": {
295 "type": "integer",
296 "example": 1
297 },
298 "KEY_VALUE_STORE_LISTS": {
299 "type": "integer",
300 "example": 0
301 },
302 "REQUEST_QUEUE_READS": {
303 "type": "integer",
304 "example": 0
305 },
306 "REQUEST_QUEUE_WRITES": {
307 "type": "integer",
308 "example": 0
309 },
310 "DATA_TRANSFER_INTERNAL_GBYTES": {
311 "type": "integer",
312 "example": 0
313 },
314 "DATA_TRANSFER_EXTERNAL_GBYTES": {
315 "type": "integer",
316 "example": 0
317 },
318 "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
319 "type": "integer",
320 "example": 0
321 },
322 "PROXY_SERPS": {
323 "type": "integer",
324 "example": 0
325 }
326 }
327 },
328 "usageTotalUsd": {
329 "type": "number",
330 "example": 0.00005
331 },
332 "usageUsd": {
333 "type": "object",
334 "properties": {
335 "ACTOR_COMPUTE_UNITS": {
336 "type": "integer",
337 "example": 0
338 },
339 "DATASET_READS": {
340 "type": "integer",
341 "example": 0
342 },
343 "DATASET_WRITES": {
344 "type": "integer",
345 "example": 0
346 },
347 "KEY_VALUE_STORE_READS": {
348 "type": "integer",
349 "example": 0
350 },
351 "KEY_VALUE_STORE_WRITES": {
352 "type": "number",
353 "example": 0.00005
354 },
355 "KEY_VALUE_STORE_LISTS": {
356 "type": "integer",
357 "example": 0
358 },
359 "REQUEST_QUEUE_READS": {
360 "type": "integer",
361 "example": 0
362 },
363 "REQUEST_QUEUE_WRITES": {
364 "type": "integer",
365 "example": 0
366 },
367 "DATA_TRANSFER_INTERNAL_GBYTES": {
368 "type": "integer",
369 "example": 0
370 },
371 "DATA_TRANSFER_EXTERNAL_GBYTES": {
372 "type": "integer",
373 "example": 0
374 },
375 "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
376 "type": "integer",
377 "example": 0
378 },
379 "PROXY_SERPS": {
380 "type": "integer",
381 "example": 0
382 }
383 }
384 }
385 }
386 }
387 }
388 }
389 }
390 }
391}
Facebook marketplace scraper OpenAPI definition
OpenAPI is a standard for designing and describing RESTful APIs, allowing developers to define API structure, endpoints, and data formats in a machine-readable way. It simplifies API development, integration, and documentation.
OpenAPI is effective when used with AI agents and GPTs by standardizing how these systems interact with various APIs, for reliable integrations and efficient communication.
By defining machine-readable API specifications, OpenAPI allows AI models like GPTs to understand and use varied data sources, improving accuracy. This accelerates development, reduces errors, and provides context-aware responses, making OpenAPI a core component for AI applications.
You can download the OpenAPI definitions for Facebook marketplace scraper from the options below:
If you’d like to learn more about how OpenAPI powers GPTs, read our blog post.
You can also check out our other API clients: