Export collection as CSV
curl --request POST \
--url https://connect.fordje.com/v1/collections/{collection_id}/export \
--header 'X-API-Key: <api-key>'import requests
url = "https://connect.fordje.com/v1/collections/{collection_id}/export"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://connect.fordje.com/v1/collections/{collection_id}/export', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));AHJ Name,State,Permit Required,Permit Fee,Permit Turnaround Time
City of Austin,TX,Yes,$150.00,10 business days
Travis County,TX,Yes,$125.00,15 business days{
"description": "Access denied",
"error": "AHJ_ACCESS_DENIED",
"response_type": "error",
"status_code": 403
}{
"description": "Access denied",
"error": "AHJ_ACCESS_DENIED",
"response_type": "error",
"status_code": 403
}{
"description": "Access denied",
"error": "AHJ_ACCESS_DENIED",
"response_type": "error",
"status_code": 403
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"description": "Access denied",
"error": "AHJ_ACCESS_DENIED",
"response_type": "error",
"status_code": 403
}{
"description": "Access denied",
"error": "AHJ_ACCESS_DENIED",
"response_type": "error",
"status_code": 403
}Collections
Export collection as CSV
Export a collection’s data for specified AHJs as CSV. AHJ access is enforced.
POST
/
v1
/
collections
/
{collection_id}
/
export
Export collection as CSV
curl --request POST \
--url https://connect.fordje.com/v1/collections/{collection_id}/export \
--header 'X-API-Key: <api-key>'import requests
url = "https://connect.fordje.com/v1/collections/{collection_id}/export"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://connect.fordje.com/v1/collections/{collection_id}/export', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));AHJ Name,State,Permit Required,Permit Fee,Permit Turnaround Time
City of Austin,TX,Yes,$150.00,10 business days
Travis County,TX,Yes,$125.00,15 business days{
"description": "Access denied",
"error": "AHJ_ACCESS_DENIED",
"response_type": "error",
"status_code": 403
}{
"description": "Access denied",
"error": "AHJ_ACCESS_DENIED",
"response_type": "error",
"status_code": 403
}{
"description": "Access denied",
"error": "AHJ_ACCESS_DENIED",
"response_type": "error",
"status_code": 403
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"description": "Access denied",
"error": "AHJ_ACCESS_DENIED",
"response_type": "error",
"status_code": 403
}{
"description": "Access denied",
"error": "AHJ_ACCESS_DENIED",
"response_type": "error",
"status_code": 403
}Authorizations
Path Parameters
Query Parameters
Comma-separated AHJ IDs to export. Provide either ahj_ids or geoids (exactly one).
Example:
"1,2,3"
Comma-separated Census GEOIDs (alternative to ahj_ids). Strings with significant leading zeros.
Example:
"17031,06001"
Response
CSV file. One row per AHJ, one column per data point type in the collection.
The response is of type file.
Was this page helpful?