careerapitst

const fetchJobs = async () => { try { const response = await fetch('https://datagate.dc.gov/dc/jobs/CareerAggregate'); if (!response.ok) { throw new Error(`HTTP error! status: ${response.status}`); } const data = await response.json(); // Extract the processResponse array from the API response if (data.processResponse && Array.isArray(data.processResponse)) { console.log('Jobs fetched successfully:', data.processResponse.length, 'jobs'); console.log('Jobs fetched successfully:', data.processResponse, 'jobs data'); } else { console.error('Invalid data structure received from API'); } } catch (error) { console.error('Error fetching jobs:', error); // Keep the existing jobData as fallback } }; fetchJobs();

test

We Are DC

Powered by

DC.gov

DC logo

Visit DC.gov's website

Presented by

Government of the District of Columbia

Mayor-image.png

Muriel Bowser

Mayor of the District of Columbia

Visit the Mayor's site

Last updated: 11:59 AM EDT October 14, 2025
Maintained by DC.gov