curl --request GET \
--url https://api.aisa.one/apis/v1/facebook/marketplace/search \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/facebook/marketplace/search"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/facebook/marketplace/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/facebook/marketplace/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/facebook/marketplace/search"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/facebook/marketplace/search")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/facebook/marketplace/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"listings": [],
"location": {
"lat": 30.2677,
"lng": -97.7475,
"radiusKm": null
},
"page": {
"hasMore": true,
"nextCursor": "eyJwZyI6MCwiYjJjIjp7ImJyIjoiIiwiaXQiOj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fYWRfaW5kZXgiOjAsIm9yZ2FuaWNzX3NpbmNlX2xhc3RfYWQiOjAsInBhZ2Vfb3JnYW5pY19jb3VudCI6MCwiYmxlbmRlZF9vcmdhbmljX2luZGV4IjowLCJyZXR1cm5lZF9hZF9pbmRleCI6MCwidG90YWxfaW5kZXgiOjB9fQ"
},
"query": "socialfetch_fixture_no_results_000000",
"totalListings": 0
},
"meta": {
"creditsCharged": 1,
"requestId": "req_01facebook_marketplace_search_empty",
"version": "v1"
}
}Search Facebook Marketplace listings
Searches Facebook Marketplace listings by keyword near a latitude and longitude. Required inputs: query, lat and lng. Results are paged: while data.page.hasMore is true, send data.page.nextCursor as cursor to get the next page.
curl --request GET \
--url https://api.aisa.one/apis/v1/facebook/marketplace/search \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/facebook/marketplace/search"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/facebook/marketplace/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/facebook/marketplace/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/facebook/marketplace/search"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/facebook/marketplace/search")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/facebook/marketplace/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"listings": [],
"location": {
"lat": 30.2677,
"lng": -97.7475,
"radiusKm": null
},
"page": {
"hasMore": true,
"nextCursor": "eyJwZyI6MCwiYjJjIjp7ImJyIjoiIiwiaXQiOjAsImhtc3IiOmZhbHNlLCJ0YmkiOjB9LCJjMmMiOnsiYnIiOiJBYnJBakp6ZFFJQWttOVNIbEtDYm5LR0hxOHRsNkh6RlQtWk05aXN6OVhxR0dpQlpCSHdqX3dkb29KRmJPcHdQeFQ0VmoyYXZmVG9FM0dDQ3dDd2doN09IYmRYazRVaVhKbXBmM2Q1ZTJNTEpiWi1Pek9McjJaenhUWGNBUWYzcWhMTjc0ZUV6X2kyb3BnS0s3OTJMOGd4LWU1OWkyU1hwZWJvMTV0bHctOEE2VTNuV1ByY1Y2Yms0SjdoRG5odHI3VXhXNjEtWFlaMnd0VGNZd2c2bldMSEJ6YnZjRC1YS2wzUVFSNDJ3TzhPbF84LXFlYWRhZUk0NzV2ZHR2Ynd3LXp4RGZuMFJFSmpudFZpWVF1bEkzN2R3cmltdVZES2hOQVpFcURwMnZVcHZReXRXRDRUYldyVy1XZE9RZV9CM196czB5RDhUQkt3NjNJSkFUWHlhU3BkUFZRVFc5SWdJWTFLNGk5cjZNcWg1NVVKbjlWTGFjRV81QUxfRjdFb2xWal9acDNFOWJncE5EQTdtRXViTnhZY1otcHZSMHhSYWdIRnlFa0U1WEhhU0EycDR1TUpmc2xVZ0NORG5HU08zd0s4dnFVdjljaEJyREY2NWdQSFVZN1NIQ053TVptcDBqZjdEWUlYUWRfWkhEZyIsIml0IjowLCJycGJyIjoiIiwicnBociI6ZmFsc2UsInJtaHIiOmZhbHNlLCJzc2kiOmZhbHNlLCJzc2NvIjowLCJzc3BpIjpbXX0sImlyciI6ZmFsc2UsInNlcnBfY3RhIjpmYWxzZSwicnVpIjpbXSwibXBpZCI6W10sInVicCI6bnVsbCwibmNybmQiOjEsImlyc3IiOmZhbHNlLCJibXByIjpbXSwiYm1wZWlkIjpbXSwibm1ibXAiOmZhbHNlLCJza3JyIjpmYWxzZSwiaW9vdXIiOmZhbHNlLCJpc2UiOmZhbHNlLCJzbXNfY3Vyc29yIjp7InBhZ2VfaW5kZXgiOjAsImJsZW5kZWRfYWRfaW5kZXgiOjAsIm9yZ2FuaWNzX3NpbmNlX2xhc3RfYWQiOjAsInBhZ2Vfb3JnYW5pY19jb3VudCI6MCwiYmxlbmRlZF9vcmdhbmljX2luZGV4IjowLCJyZXR1cm5lZF9hZF9pbmRleCI6MCwidG90YWxfaW5kZXgiOjB9fQ"
},
"query": "socialfetch_fixture_no_results_000000",
"totalListings": 0
},
"meta": {
"creditsCharged": 1,
"requestId": "req_01facebook_marketplace_search_empty",
"version": "v1"
}
}
Request example pending verification. The request example for this endpoint has not yet been verified in production. Static examples describe the request format; replace sample values with your own. Check the estimated price with a free quote request (X-AISA-Cost-Mode: quote) before running it.
Request contract
- Method and path: GET /apis/v1/facebook/marketplace/search
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/facebook/marketplace/search - availability: query; optional
- categoryId: query; optional
- condition: query; optional
- cursor: query; optional
- dateListed: query; optional
- deliveryMethod: query; optional
- lat: query; required
- limit: query; optional
- lng: query; required
- maxPrice: query; optional
- minPrice: query; optional
- query: query; required
- radiusKm: query; optional
- sortBy: query; optional
{
"operationId": "facebook.marketplace.search",
"method": "GET",
"path": "/apis/v1/facebook/marketplace/search",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [
{
"in": "query",
"name": "availability",
"required": false,
"schema": {
"description": "Optional availability filter for marketplace listings.",
"enum": [
"all",
"available",
"sold"
],
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "categoryId",
"required": false,
"schema": {
"description": "Optional numeric Marketplace category id. Only listings in that category are returned. Listings report their category as `categoryId`.",
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "condition",
"required": false,
"schema": {
"description": "Optional item condition filter for marketplace listings.",
"enum": [
"new",
"usedFair",
"usedGood",
"usedLikeNew"
],
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "cursor",
"required": false,
"schema": {
"description": "Opaque pagination cursor returned by a previous response.",
"maxLength": 16384,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "dateListed",
"required": false,
"schema": {
"description": "Optional date-listed filter for marketplace listings. `1`/`last24Hours` both mean the last 24 hours, `7`/`last7Days` both mean the last 7 days, and `30`/`last30Days` both mean the last 30 days — these are separate values Facebook accepts for the same window; prefer the named variants (`last24Hours`, `last7Days`, `last30Days`) for clarity. `all` applies no date filter.",
"enum": [
"1",
"30",
"7",
"all",
"last24Hours",
"last30Days",
"last7Days"
],
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "deliveryMethod",
"required": false,
"schema": {
"description": "Optional delivery method filter for marketplace listings.",
"enum": [
"all",
"localPickup",
"shipping"
],
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "lat",
"required": true,
"schema": {
"description": "Latitude for the marketplace search location.",
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "limit",
"required": false,
"schema": {
"description": "Optional number of listings to return (1–100). Prefer this over `count`.",
"maximum": 100,
"minimum": 1,
"type": "integer"
}
},
{
"in": "query",
"name": "lng",
"required": true,
"schema": {
"description": "Longitude for the marketplace search location.",
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "maxPrice",
"required": false,
"schema": {
"description": "Optional maximum listing price. Must be greater than or equal to `minPrice` when both are set.",
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "minPrice",
"required": false,
"schema": {
"description": "Optional minimum listing price. Must be less than or equal to `maxPrice` when both are set.",
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "query",
"required": true,
"schema": {
"description": "Search query text for marketplace listings.",
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "radiusKm",
"required": false,
"schema": {
"description": "Optional search radius in kilometers.",
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "sortBy",
"required": false,
"schema": {
"description": "Optional sort order for marketplace listings. `suggested`: Facebook's default relevance ranking. `distanceAscend`: nearest first. `creationTimeDescend`: newest listings first. `priceAscend`/`priceDescend`: lowest/highest price first.",
"enum": [
"creationTimeDescend",
"distanceAscend",
"priceAscend",
"priceDescend",
"suggested"
],
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
}
],
"security": [
{
"bearerAuth": []
}
],
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Observed response structure
The response observations below come from successful probes or sampled requests. They are partial: fields and types may vary, and no field is guaranteed to be present. Reviewed response definitions take precedence. No real response values are published.- HTTP status / last observed: 200 / 2026-11-14
{
"additionalProperties": true,
"properties": {
"data": {
"additionalProperties": true,
"properties": {
"listings": {
"items": {
"additionalProperties": true,
"properties": {
"categoryId": {
"type": "string"
},
"deliveryTypes": {
"items": {
"type": "string"
},
"type": "array"
},
"id": {
"type": "string"
},
"location": {
"additionalProperties": true,
"properties": {
"city": {
"type": "string"
},
"cityPageId": {
"type": "string"
},
"displayName": {
"type": "string"
},
"state": {
"type": "string"
}
},
"type": "object"
},
"price": {
"additionalProperties": true,
"properties": {
"amount": {
"type": "integer"
},
"amountWithOffsetInCurrency": {
"type": "integer"
},
"formattedAmount": {
"type": "string"
}
},
"type": "object"
},
"primaryPhoto": {
"additionalProperties": true,
"properties": {
"id": {
"type": "string"
},
"url": {
"type": "string"
}
},
"type": "object"
},
"status": {
"additionalProperties": true,
"properties": {
"isHidden": {
"type": "boolean"
},
"isLive": {
"type": "boolean"
},
"isPending": {
"type": "boolean"
},
"isSold": {
"type": "boolean"
},
"isViewerSeller": {
"type": "boolean"
}
},
"type": "object"
},
"storyKey": {
"type": "string"
},
"storyType": {
"type": "string"
},
"strikethroughPrice": {
"additionalProperties": true,
"properties": {
"amount": {
"type": "integer"
},
"amountWithOffsetInCurrency": {
"type": "null"
},
"formattedAmount": {
"type": "string"
}
},
"type": [
"null",
"object"
]
},
"title": {
"type": "string"
},
"url": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"location": {
"additionalProperties": true,
"properties": {
"lat": {
"type": "number"
},
"lng": {
"type": "number"
},
"radiusKm": {
"type": "null"
}
},
"type": "object"
},
"page": {
"additionalProperties": true,
"properties": {
"hasMore": {
"type": "boolean"
},
"nextCursor": {
"type": "string"
}
},
"type": "object"
},
"query": {
"type": "string"
},
"totalListings": {
"type": "integer"
}
},
"type": "object"
},
"meta": {
"additionalProperties": true,
"properties": {
"version": {
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.014 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Pagination
- Pass
aisa_pagination.next_cursorascursor(query parameter) to fetch the next page; stop whenaisa_pagination.has_moreis false. - The same values are returned in the
X-AISA-Has-MoreandX-AISA-Next-Cursorresponse headers. - Page size parameter:
limit
Response time
- Typically returns within 10 seconds.
Authorizations
Query Parameters
Optional date-listed filter for marketplace listings. 1/last24Hours both mean the last 24 hours, 7/last7Days both mean the last 7 days, and 30/last30Days both mean the last 30 days — these are separate values Facebook accepts for the same window; prefer the named variants (last24Hours, last7Days, last30Days) for clarity. all applies no date filter.
1, 30, 7, all, last24Hours, last30Days, last7Days 1 - 4096Optional sort order for marketplace listings. suggested: Facebook's default relevance ranking. distanceAscend: nearest first. creationTimeDescend: newest listings first. priceAscend/priceDescend: lowest/highest price first.
creationTimeDescend, distanceAscend, priceAscend, priceDescend, suggested 1 - 4096Response
Marketplace listings for the requested search.
Standard success response envelope.