# Public Infrastructure Lookups API > IP-to-ASN via RouteViews, IANA RDAP bootstrap, US/UK travel advisories, visa-waiver lists, Ofsted ratings, College Scorecard and Grants.gov open opportunities — all from vendored official bulk data. Each paid operation uses a fixed USDC price on Base with the x402 exact scheme. Unpaid GET, HEAD, and POST return 402 payment terms (POST validates the body only after payment terms are satisfied). A request that carries payment-signature is not yet charged: settlement happens only after a successful (2xx) result. HTTP 4xx/5xx are not charged. Coverage bodies with status complete, partial, or failed all return HTTP 200 and are charged at the full listed price. Settled 2xx responses include a payment-response header; 4xx/5xx do not. Follow https://www.brainiac.software/agent-instructions.txt for install, payment pins, idempotency, and billing rules. - Product: https://www.brainiac.software/api/public-infrastructure - Docs: https://www.brainiac.software/api/public-infrastructure/docs - OpenAPI: https://www.brainiac.software/api/public-infrastructure/openapi.json - Contact: support@brainiac.software (https://www.brainiac.software/contact) ## Operations ### POST /api/v1/public-infrastructure/ip-to-asn-lookup $0.02 USDC. Longest-prefix match against a vendored RouteViews BGP snapshot, with IANA special-purpose flags. Inputs: ip?, prefix? Docs: https://www.brainiac.software/api/public-infrastructure/docs#public-infrastructure-ip-to-asn-lookup Example request: ```json { "ip": "8.8.8.8" } ``` Example response: ```json { "query": "8.8.8.8", "matched": { "prefix": "8.8.8.0/24", "origins": [ { "asn": 15169, "peers": 17 } ], "moas": false }, "covering": [ { "prefix": "8.0.0.0/12", "origins": [ { "asn": 3356, "peers": 16 } ] } ], "snapshot": { "collector": "route-views2", "ribTime": "2026-11-14T00:00:00Z" }, "attribution": "RouteViews, University of Oregon (CC BY 4.0)", "sources": [ { "source": "RouteViews RIB snapshot (CC BY 4.0)", "url": "https://www.routeviews.org/routeviews/", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "One collector's view at ribTime." ] } ``` ### POST /api/v1/public-infrastructure/iana-tld-rdap-bootstrap $0.01 USDC. Return IANA RDAP base URLs for a domain, IP or ASN from the vendored bootstrap registries. Inputs: domain?, ip?, asn?, full? Docs: https://www.brainiac.software/api/public-infrastructure/docs#public-infrastructure-iana-tld-rdap-bootstrap Example request: ```json { "asn": 15169 } ``` Example response: ```json { "query": "AS15169", "type": "asn", "entry": { "key": "13312-15359", "rdapBaseUrls": [ "https://rdap.arin.net/registry/" ], "rir": "ARIN" }, "publication": "2026-06-01T20:00:01Z", "sources": [ { "source": "IANA RDAP bootstrap asn.json (CC0)", "url": "https://data.iana.org/rdap/asn.json", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "No RDAP query is made." ] } ``` ### POST /api/v1/public-infrastructure/travel-advisory-lookup $0.02 USDC. Return State Department and FCDO travel advice for a country side by side. Inputs: country Docs: https://www.brainiac.software/api/public-infrastructure/docs#public-infrastructure-travel-advisory-lookup Example request: ```json { "country": "Ukraine" } ``` Example response: ```json { "country": "Ukraine", "us": { "level": 4, "label": "Do Not Travel", "title": "Ukraine - Level 4: Do Not Travel" }, "uk": { "name": "Ukraine", "slug": "ukraine", "alertStatus": [ "avoid_all_travel_to_parts" ] }, "sources": [ { "source": "US State Department travel advisories RSS", "url": "https://travel.state.gov/_res/rss/TAsTWs.xml", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Not travel, insurance or legal advice." ] } ``` ### POST /api/v1/public-infrastructure/visa-waiver-list-lookup $0.01 USDC. Check whether a nationality appears on the DHS Visa Waiver Program or UK VN 1.1(a) lists. Inputs: nationality, list? Docs: https://www.brainiac.software/api/public-infrastructure/docs#public-infrastructure-visa-waiver-list-lookup Example request: ```json { "nationality": "United Kingdom" } ``` Example response: ```json { "nationality": "United Kingdom", "usVwp": { "listed": true, "since": "1988-07-01", "pageUpdated": "2026-10-28" }, "ukVisaNational": { "listed": false, "rule": "VN 1.1(a)", "updated": "2026-03-05" }, "sources": [ { "source": "DHS Visa Waiver Program", "url": "https://www.dhs.gov/visa-waiver-program", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Not a visa determination." ] } ``` ### POST /api/v1/public-infrastructure/ofsted-rating-lookup $0.02 USDC. Look up the latest Ofsted inspection outcomes for a state-funded school in England. Inputs: urn?, laestab?, name?, localAuthority?, postcode?, limit? Docs: https://www.brainiac.software/api/public-infrastructure/docs#public-infrastructure-ofsted-rating-lookup Example request: ```json { "urn": "137083" } ``` Example response: ```json { "schools": [ { "urn": "137083", "name": "Abbey Grange Church of England Academy", "phase": "Secondary", "localAuthority": "Leeds", "postcode": "LS16 5EA" } ], "asAt": "2026-10-31", "sources": [ { "source": "Ofsted management information (OGL v3.0)", "url": "https://www.gov.uk/government/statistical-data-sets/monthly-management-information-ofsteds-school-inspections-outcomes", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Independent schools are not in this file." ] } ``` ### POST /api/v1/public-infrastructure/college-scorecard-lookup $0.02 USDC. Look up cost, admission, completion, earnings and debt fields from the College Scorecard. Inputs: unitId?, opeId?, name?, state?, limit? Docs: https://www.brainiac.software/api/public-infrastructure/docs#public-infrastructure-college-scorecard-lookup Example request: ```json { "unitId": "166027" } ``` Example response: ```json { "institutions": [ { "unitId": "166027", "name": "Harvard University", "city": "Cambridge", "state": "MA", "control": "Private nonprofit" } ], "dataUpdated": "2026-11-02", "sources": [ { "source": "College Scorecard Most-Recent-Cohorts-Institution (CC BY)", "url": "https://collegescorecard.ed.gov/data/", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Metrics refer to different cohorts/years." ] } ``` ### POST /api/v1/public-infrastructure/grants-gov-opportunity-search $0.03 USDC. Search open US federal grant synopses and forecasts from the Grants.gov daily extract. Inputs: query?, opportunityNumber?, agencyCode?, cfda?, eligibleApplicants?, kind?, closingBefore?, limit? Docs: https://www.brainiac.software/api/public-infrastructure/docs#public-infrastructure-grants-gov-opportunity-search Example request: ```json { "opportunityNumber": "14-579" } ``` Example response: ```json { "count": 1, "opportunities": [ { "opportunityId": "358403", "opportunityNumber": "14-579", "title": "Facilitating Research at Primarily Undergraduate Institutions: (RUI and ROA-PUI)", "agencyCode": "NSF" } ], "extractDate": "2026-11-14", "sources": [ { "source": "Grants.gov XML extract (public domain)", "url": "https://www.grants.gov/xml-extract", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Only open opportunities from the extract date are vendored." ] } ```