Black History API
Welcome to the black history api! To get started go to click the Sign Up link in the navigation bar and get an api key.
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
Welcome to the black history api! To get started go to click the Sign Up link in the navigation bar and get an api key.
Endpoints 6
general
- GETHealth Check
/hcCheck the health of the API.
metadata
- GETGet All Metadata
/metadata/allRetrieve all metadata from the system. Optionally filter by type using query parameters. - GETSearch Metadata by Type
/metadata/searchSearch metadata by type and value (e.g., people or tags).
facts
- POSTCreate a New Fact
/factSubmit a new fact to the system. - GETSearch Facts
/fact/searchSearch approved facts based on tags and/or people. Returns up to 20 results. - GETGet a Random Fact
/fact/randomRetrieve a random approved fact from the system.
API details
- Base URL
https://rest.blackhistoryapi.io/v2- Authentication
- An API key in the x-api-key header
- Operations
- 6 operations on 6 pathsGET 5POST 1
- Main resources
- facts 3metadata 2general 1
- Description format
- Swagger 2.0, API version
1.0.0 - Links
- OpenAPI document
How to test the Black History API in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the Black History API collection, without the publisher's secrets.
- Add your credentialsThis API uses an API key in the x-api-key header. Add yours in the collection's variables or an environment; the requests already reference it.
- Send a requestPick an endpoint, for example “Health Check” (GET /hc), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the Black History API?
Welcome to the black history api! To get started go to click the Sign Up link in the navigation bar and get an api key. It is listed under Data & analytics and has 6 endpoints.
Who publishes the Black History API?
It is listed from Blackhistoryapi's public API description (an OpenAPI document), not published by Blackhistoryapi on Swastik Codes. Anyone who controls blackhistoryapi.io can claim the profile by adding a DNS TXT record.
What is the base URL of the Black History API?
Requests go to https://rest.blackhistoryapi.io/v2. Endpoint paths are added to this base URL.
How do I authenticate with the Black History API?
With an API key in the x-api-key header.
How many endpoints does the Black History API have?
6 operations on 6 paths (5 GET, 1 POST). The largest groups are facts, metadata, general.
Is forking the Black History API free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.