Search DuckDuckGo Maps
litescrape.duckduckgo.maps.searchReturns places from DuckDuckGo's local results in `local_results`
- Price
- $0.00015/successAu prix du fournisseur
- Success rate
- —Aucune donnée de taux de réussite pour le momentAucune donnée de taux de réussite pour le moment
- Latency p50
- ——
- Last verified
- 29 sept. 2026Verified working
GEThttps://toolswitch.dev/v1/tools/litescrape.duckduckgo.maps.search?q=coffee+shops&bbox=30.30%2C-97.80%2C30.20%2C-97.70Preview- Uses platform quota
- Synchronous response
- Reads public data
Paramètres
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de requête | ||||
q | chaîne | Obligatoire | Place or category query, 1 to 500 characters. | coffee |
lat | nombre | Facultatif | Map center latitude from -90 through 90. Requires lon; use instead of bbox. | 30.2672 |
lon | nombre | Facultatif | Map center longitude from -180 through 180. Requires lat; use instead of bbox. | -97.7431 |
bbox | chaîne | Facultatif | Map rectangle as top,left,bottom,right (latitude,longitude of the top-left corner, then of the bottom-right corner); must not wrap the antimeridian. Use instead of lat/lon; one of the two is required. | 30.35,-97.90,30.10,-97.50 |
timeout | nombre | Facultatif | Optional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the call is not billed and returns 503 request_deadline_exceeded with retryable=true and a request ID. Omit to retain the standard server deadline. | |
strict_bbox | booléen | Facultatif | Exclude results outside the requested bounds. | |
- Paramètres de requête
qchaîneObligatoirePlace or category query, 1 to 500 characters.
Exemple :
coffeelatnombreFacultatifMap center latitude from -90 through 90. Requires lon; use instead of bbox.
Exemple :
30.2672lonnombreFacultatifMap center longitude from -180 through 180. Requires lat; use instead of bbox.
Exemple :
-97.7431bboxchaîneFacultatifMap rectangle as top,left,bottom,right (latitude,longitude of the top-left corner, then of the bottom-right corner); must not wrap the antimeridian. Use instead of lat/lon; one of the two is required.
Exemple :
30.35,-97.90,30.10,-97.50timeoutnombreFacultatifOptional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the call is not billed and returns 503 request_deadline_exceeded with retryable=true and a request ID. Omit to retain the standard server deadline.
strict_bboxbooléenFacultatifExclude results outside the requested bounds.
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la console.
curl -X GET 'https://toolswitch.dev/v1/tools/litescrape.duckduckgo.maps.search?q=coffee+shops&bbox=30.30%2C-97.80%2C30.20%2C-97.70' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/litescrape.duckduckgo.maps.search?q=coffee+shops&bbox=30.30%2C-97.80%2C30.20%2C-97.70",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/litescrape.duckduckgo.maps.search?q=coffee+shops&bbox=30.30%2C-97.80%2C30.20%2C-97.70", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());Cette API de passerelle est en préversion ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à $0.00015/success, frais de service inclus.