---
updatedAt: 2026-02-12T12:14:04.000Z
---

# Geofences API

Geofences can be configured for specific venues, categories, chains, polygons, and arbitrary lat/lng points.

> Note: The user of the application must be the one creating the geofences.

Before using the Geofence API, please ensure you've completed the following:

* Registered for a Foursquare Developer account
* Installed the Pilgrim SDK in your application
* Generated a User Authentication token
* Reviewed the Geofence Builder guide

[block:html]
{
  "html": "<br/>\n<section class=\"tabbed-section\">\n\t<div class=\"container\">\n\t\t<div class=\"content\">\n\t\t\t<div class=\"tabbed-content\">\n\t\t\t\t<div class=\"tabbed-tile all-content data-content active\" data-tabbed-topic=\"data\">\n          <h3><b><a href=\"/developer/reference/get-a-geofence\">Get a Geofence</a></b></h3>\n\t\t\t\t\t<p>Get a geofence referenced by its geofence_id.</p>\n\t\t\t\t</div>\n        <div class=\"tabbed-tile all-content data-content active\" data-tabbed-topic=\"data\">\n          <h3><b><a href=\"/developer/reference/get-all-geofences\">Get All Geofences</a></b></h3>\n\t\t\t\t\t<p>Gets all created geofences created within your FSQ Developer Project.</p>\n\t\t\t\t</div>\n        <div class=\"tabbed-tile all-content data-content active\" data-tabbed-topic=\"data\">\n          <h3><b><a href=\"/developer/reference/add-a-geofence\">Add a Geofence</a></b></h3>\n\t\t\t\t\t<p>Create the following types of geofences: Around a FSQ Venue, using a Custom Polygon, around a Lat/Long Coordinate.</p>\n\t\t\t\t</div>\n        <div class=\"tabbed-tile all-content data-content active\" data-tabbed-topic=\"data\">\n          <h3><b><a href=\"/developer/reference/add-bulk-geofences\">Add Bulk Geofences</a></b></h3>\n\t\t\t\t\t<p>Bulk add up to 1000 geofence objects at the same time.</p>\n\t\t\t\t</div>\n        <div class=\"tabbed-tile all-content data-content active\" data-tabbed-topic=\"data\">\n          <h3><b><a href=\"/developer/reference/update-a-geofence\">Update a Geofence</a></b></h3>\n\t\t\t\t\t<p>Update a geofence referenced by its geofenceId.</p>\n\t\t\t\t</div>\n        <div class=\"tabbed-tile all-content data-content active\" data-tabbed-topic=\"data\">\n          <h3><b><a href=\"/developer/reference/delete-a-geofence\">Delete a Geofence</a></b></h3>\n\t\t\t\t\t<p>Delete a geofence referenced by its geofenceId.</p>\n\t\t\t\t</div>\n        <div class=\"tabbed-tile all-content data-content active\" data-tabbed-topic=\"data\">\n          <h3><b><a href=\"/developer/reference/delete-bulk-geofence\">Delete Bulk Geofences</a></b></h3>\n\t\t\t\t\t<p>Bulk delete up to 100 geofences (by its geofenceId) at the same time.</p>\n\t\t\t\t</div>\n        <div class=\"tabbed-tile all-content data-content active\" data-tabbed-topic=\"data\">\n          <h3><b><a href=\"/developer/reference/clear-all-geofences\">Clear All Geofences</a></b></h3>\n\t\t\t\t\t<p>Clears all created geofences.</p>\n\t\t\t\t</div>\n\t</div>\n</section>\n    \n <br/>"
}
[/block]