Women, Infants, and Children (WIC) Program Site Information

This dataset includes the names, locations, and contact information for sites across NYS where WIC services are delivered. The data also includes the names, locations, and contact information for the agencies who oversee WIC vendors in NYS (WIC Vendor Management Agencies). The Special Supplemental Nutrition Program for Women, Infants and Children (WIC) offers nutrition education, breastfeeding support, referrals and a variety of nutritious foods to low-income pregnant, breastfeeding or postpartum women, infants and children up to age five to promote and support good health. WIC improves the health of pregnant women, new mothers and their infants and children. The foods provided through WIC are a good source of nutrients often missing from the diets of women and young children. WIC participants have longer, healthier pregnancies and fewer premature births. For more information, check out: http://www.health.ny.gov/prevention/nutrition/wic/ or go to the “About” tab. This data set is available at: https://health.data.ny.gov/Health/Women-Infants-and-Children-WIC-Program-Site-Inform/g4i5-r6zx

Getting Started

All communication with the API is done through HTTPS, and errors are communicated through HTTP response codes. Available response types include JSON, XML, and CSV, which are selectable by the "extension" on API requests or by HTTP Accepts headers.

This documentation also includes inline, runable examples. Click on any link that contains a gear symbol next to it to run that example live against the Women, Infants, and Children (WIC) Program Site Information API.

App Tokens

All requests should include an app token that identifies your application, and each application should have its own unique app token. A limited number of requests can be made without an app token, but they are subject to much lower throttling limits than request that do include one. If you don't have an app token yet, click the button to the right to sign up for one.

Once you have an app token, you can include it with your request either by using the X-App-Token HTTP header, or by passing it via the $app_token parameter on your URL.

Response Codes

One of the following response codes will be returned with every request:

  1. 200Successful request.
  2. 202Request processing. You can retry your request, and when it's complete, you'll get a 200 instead.
  3. 400Bad request
  4. 401Unauthorized. You're not authorized to access this resource.
  5. 404Not found. The resource requested doesn't exist.
  6. 429Too Many Requests. The client has made too many requests and is currently being rate limited.
  7. 500Server errors. Our bad!

Code Samples

#!/usr/bin/env ruby

require 'net/https'
uri = URI('https://health.data.ny.gov/resource/women-infants-and-children-wic-program-site-information.json?recall_id=94')

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_PEER

request = Net::HTTP::Get.new(uri.request_uri)
request.add_field('X-App-Token', ARGV[0])

response = http.request(request)
puts response.code
puts response.body
#!/usr/bin/env python

import sys
import requests

r = requests.get('https://health.data.ny.gov/resource/women-infants-and-children-wic-program-site-information.json?recall_id=94', headers={'X-App-Token': sys.argv[1]})
print r.status_code
print r.text
request = require 'request'
options = uri: 'https://health.data.ny.gov/resource/women-infants-and-children-wic-program-site-information.json?$$app_token=APP_TOKEN&recall_id=94'
request options, (err, response, body) ->  console.log body
#!/bin/sh 

curl --header "X-App-Token: $1" "https://health.data.ny.gov/resource/women-infants-and-children-wic-program-site-information.json?recall_id=94"

Fields

The following fields are available on the Women, Infants, and Children (WIC) Program Site Information API.

agency_name

Human Name: Local WIC Agency Sponsor Name
Type: text
Name of the WIC Agency or Vendor Management Agency (VMA) and hyperlink if available

Examples

Retrieve all records with agency_name equal to Yeled V'Yalda Early Childhood Center:

Retrieve all records where agency_name is within 1 kilometer of Seattle, WA (47.598177,-122.33448):

https://health.data.ny.gov/resource/women-infants-and-children-wic-program-site-information.json?$where=within_circle(agency_name, 47.598177,-122.33448, 1000)

phone_number

Human Name: Phone Number
Type: text
Telephone number of permanent site or VMA

Examples

Retrieve all records with phone_number equal to 914-995-6350:

Retrieve all records where phone_number is within 1 kilometer of Seattle, WA (47.598177,-122.33448):

https://health.data.ny.gov/resource/women-infants-and-children-wic-program-site-information.json?$where=within_circle(phone_number, 47.598177,-122.33448, 1000)

site_name

Human Name: Site Name
Type: text
Name of the WIC Site / blank for VMAs

Examples

Retrieve all records with site_name equal to Yorkshire Town Hall:

Retrieve all records where site_name is within 1 kilometer of Seattle, WA (47.598177,-122.33448):

https://health.data.ny.gov/resource/women-infants-and-children-wic-program-site-information.json?$where=within_circle(site_name, 47.598177,-122.33448, 1000)

street_address

Human Name: Street Address
Type: text
Street Address1 of the WIC site / VMA

Examples

Retrieve all records with street_address equal to Village Park:

Retrieve all records where street_address is within 1 kilometer of Seattle, WA (47.598177,-122.33448):

https://health.data.ny.gov/resource/women-infants-and-children-wic-program-site-information.json?$where=within_circle(street_address, 47.598177,-122.33448, 1000)

street2

Human Name: Street Address 2
Type: text
Street Address2 of the WIC site / VMA

Examples

Retrieve all records with street2 equal to VC4 Area 1:

Retrieve all records where street2 is within 1 kilometer of Seattle, WA (47.598177,-122.33448):

https://health.data.ny.gov/resource/women-infants-and-children-wic-program-site-information.json?$where=within_circle(street2, 47.598177,-122.33448, 1000)

city

Human Name: City
Type: text
City

Examples

Retrieve all records with city equal to Yonkers:

Retrieve all records where city is within 1 kilometer of Seattle, WA (47.598177,-122.33448):

https://health.data.ny.gov/resource/women-infants-and-children-wic-program-site-information.json?$where=within_circle(city, 47.598177,-122.33448, 1000)

state

Human Name: State
Type: text
State

Examples

zip

Human Name: Zip
Type: text
Zip code (5 digit)

Examples

Retrieve all records with zip equal to 14901:

Retrieve all records where zip is within 1 kilometer of Seattle, WA (47.598177,-122.33448):

https://health.data.ny.gov/resource/women-infants-and-children-wic-program-site-information.json?$where=within_circle(zip, 47.598177,-122.33448, 1000)

zip_extension

Human Name: Zip Extension
Type: text
Zip code extension (4 digit)

Examples

Retrieve all records with zip_extension equal to 9998:

Retrieve all records where zip_extension is within 1 kilometer of Seattle, WA (47.598177,-122.33448):

https://health.data.ny.gov/resource/women-infants-and-children-wic-program-site-information.json?$where=within_circle(zip_extension, 47.598177,-122.33448, 1000)

site_number

Human Name: Site Number
Type: text
Administrative designation for WIC site

Examples

Retrieve all records with site_number equal to 808:

Retrieve all records where site_number is within 1 kilometer of Seattle, WA (47.598177,-122.33448):

https://health.data.ny.gov/resource/women-infants-and-children-wic-program-site-information.json?$where=within_circle(site_number, 47.598177,-122.33448, 1000)

counties_boroughs_served

Human Name: Counties/Boroughs Served
Type: text
County or Borough where site is located or counties served by Vendor Management Agency

Examples

Retrieve all records with counties_boroughs_served equal to Yates:

Retrieve all records where counties_boroughs_served is within 1 kilometer of Seattle, WA (47.598177,-122.33448):

https://health.data.ny.gov/resource/women-infants-and-children-wic-program-site-information.json?$where=within_circle(counties_boroughs_served, 47.598177,-122.33448, 1000)

site_type

Human Name: Site Type
Type: text
Site types are: Permanent, Temporary, Administrative, or Vendor Management Agency

Examples

Retrieve all records with site_type equal to Vendor Management Agency:

Retrieve all records where site_type is within 1 kilometer of Seattle, WA (47.598177,-122.33448):

https://health.data.ny.gov/resource/women-infants-and-children-wic-program-site-information.json?$where=within_circle(site_type, 47.598177,-122.33448, 1000)

link_to_website

Human Name: Link to Website
Type: url
Hyperlink to sponsoring agency web site when available

Examples

Retrieve all records with link_to_website equal to url: https://rocklandgov.com/departments/health/programs-and-services/wic-women-infants-and-children/:
Retrieve all records with link_to_website equal to url: https://rocklandgov.com/departments/health/programs-and-services/wic-women-infants-and-children/:

Retrieve all records that are greater than url: http://alleganycountydepartmentofhealth.com/departments/wic.html:

Retrieve all records with link_to_website equal to url: https://rocklandgov.com/departments/health/programs-and-services/wic-women-infants-and-children/:

Retrieve all records where link_to_website is within 1 kilometer of Seattle, WA (47.598177,-122.33448):

https://health.data.ny.gov/resource/women-infants-and-children-wic-program-site-information.json?$where=within_circle(link_to_website, 47.598177,-122.33448, 1000)

location_1

Human Name: Location 1
Type: location
Location

Examples

Retrieve all records with location_1 equal to longitude: -78.00544610299966, latitude: 42.7243732390005, human_address: {"address":"Village Park","city":"Perry","state":"NY","zip":"14530"}:
Retrieve all records with location_1 equal to longitude: -78.00544610299966, latitude: 42.7243732390005, human_address: {"address":"Village Park","city":"Perry","state":"NY","zip":"14530"}:

Retrieve all records that are greater than longitude: -73.91279515099967, latitude: 40.65458953500047, human_address: {"address":"1 Brookdale Plz","city":"Brooklyn","state":"NY","zip":"11212"}:

Retrieve all records with location_1 equal to longitude: -78.00544610299966, latitude: 42.7243732390005, human_address: {"address":"Village Park","city":"Perry","state":"NY","zip":"14530"}:

Retrieve all records where location_1 is within 1 kilometer of Seattle, WA (47.598177,-122.33448):

https://health.data.ny.gov/resource/women-infants-and-children-wic-program-site-information.json?$where=within_circle(location_1, 47.598177,-122.33448, 1000)