### Get a list of all items using Crossref API Source: https://api.crossref.org/swagger-ui/index This example shows how to retrieve the first page of items from a Crossref API endpoint. It demonstrates a basic GET request to the 'works' endpoint. ```HTTP GET https://api.crossref.org/works ``` -------------------------------- ### Crossref API - Member Endpoint Example Source: https://api.crossref.org/swagger-ui/index This snippet illustrates querying the 'Members' endpoint of the Crossref REST API to retrieve information about Crossref member organizations. It includes a sample GET request. ```HTTP GET /members?query=example HTTP/1.1 Host: api.crossref.org ``` -------------------------------- ### Crossref API - DOI Resolution Example Source: https://api.crossref.org/swagger-ui/index This snippet shows how to use the Crossref REST API to resolve a DOI and retrieve associated metadata. It demonstrates a GET request to the 'works' endpoint with a specific DOI. ```HTTP GET /works/10.1000/example HTTP/1.1 Host: api.crossref.org ``` -------------------------------- ### Crossref API - Works Endpoint Example Source: https://api.crossref.org/swagger-ui/index This snippet demonstrates how to query the 'Works' endpoint of the Crossref REST API to retrieve metadata for scholarly works. It shows a basic GET request structure. ```HTTP GET /works?query=example HTTP/1.1 Host: api.crossref.org ``` -------------------------------- ### Crossref API - Get All Licenses Source: https://api.crossref.org/swagger-ui/index Retrieve a collection of licenses. This endpoint is part of the 'Licenses' resource collection. ```HTTP GET /licenses ``` -------------------------------- ### Get summary statistics with facet parameter using Crossref API Source: https://api.crossref.org/swagger-ui/index This example demonstrates how to get summary statistics from the 'works' endpoint using the 'facet' parameter. It allows retrieving counts for specific field values. ```HTTP GET https://api.crossref.org/v1/works?filter=from-pub-date:2020-01-10,until-pub-date:2020-01-10&facet=type-name:10 ``` -------------------------------- ### Set User-Agent header for Crossref API requests Source: https://api.crossref.org/swagger-ui/index This example shows how to set a User-Agent header in an API request, which is a best practice for identifying your script and being considerate of other users. ```Shell curl -A "YourAppName/1.0 (your@email.com)" https://api.crossref.org/works ``` -------------------------------- ### Make basic metadata queries using Crossref API Source: https://api.crossref.org/swagger-ui/index This example shows how to perform metadata queries on a Crossref API endpoint using the 'query' parameter. It allows searching for records where fields contain specific terms. ```HTTP GET https://api.crossref.org/v1/members?query=association+library ``` -------------------------------- ### Get a filtered list of items using Crossref API Source: https://api.crossref.org/swagger-ui/index This example illustrates how to retrieve a filtered list of items from a Crossref API endpoint. It uses the 'filter' parameter to specify criteria, such as location. ```HTTP GET https://api.crossref.org/v1/funders?filter=location:Switzerland ``` -------------------------------- ### Crossref API - Get Prefix by Prefix Source: https://api.crossref.org/swagger-ui/index Retrieve detailed information about a specific prefix. This endpoint is part of the 'Prefixes' resource collection. ```HTTP GET /prefixes/{prefix} ``` -------------------------------- ### Check existence of a singleton using HTTP HEAD request Source: https://api.crossref.org/swagger-ui/index This example shows how to use an HTTP HEAD request to quickly check for the existence of a specific record without retrieving its metadata. It returns only headers and a status code. ```Shell curl --head "https://api.crossref.org/members/98" ``` -------------------------------- ### Crossref API - Get All Works Source: https://api.crossref.org/swagger-ui/index Retrieve a collection of works. This endpoint is part of the 'Works' resource collection and supports pagination. ```HTTP GET /works ``` -------------------------------- ### Return an individual record using Crossref API Source: https://api.crossref.org/swagger-ui/index This example demonstrates how to fetch a specific record from the Crossref API by providing its unique identifier (e.g., DOI). It targets the 'works' endpoint with a specific ID. ```HTTP GET https://api.crossref.org/works/10.5555%2F12345678 ``` -------------------------------- ### Crossref API - Get All Types Source: https://api.crossref.org/swagger-ui/index Retrieve a collection of types. This endpoint is part of the 'Types' resource collection. ```HTTP GET /types ``` -------------------------------- ### Crossref API - Get Works by Prefix Source: https://api.crossref.org/swagger-ui/index Retrieve works associated with a specific prefix. This endpoint is part of the 'Prefixes' resource collection. ```HTTP GET /prefixes/{prefix}/works ``` -------------------------------- ### Crossref API - Get All Funders Source: https://api.crossref.org/swagger-ui/index Retrieve a collection of funders. This endpoint is part of the 'Funders' resource collection. ```HTTP GET /funders ``` -------------------------------- ### Crossref API - Get All Members Source: https://api.crossref.org/swagger-ui/index Retrieve a collection of members. This endpoint is part of the 'Members' resource collection. ```HTTP GET /members ``` -------------------------------- ### Retrieve a list with a specified number of items using Crossref API Source: https://api.crossref.org/swagger-ui/index This example demonstrates how to retrieve a list of items from a Crossref API endpoint and specify the maximum number of items to return using the 'rows' parameter. ```HTTP GET https://api.crossref.org/funders?rows=5 ``` -------------------------------- ### Crossref API - Get All Journals Source: https://api.crossref.org/swagger-ui/index Retrieve a collection of journals. This endpoint is part of the 'Journals' resource collection. ```HTTP GET /journals ``` -------------------------------- ### Crossref API - Error Response (429) Source: https://api.crossref.org/swagger-ui/index Example of an HTTP status code returned when rate limits are exceeded. Users should wait and retry the request at a lower rate or concurrency. ```HTTP HTTP/1.1 429 Too Many Requests ``` -------------------------------- ### Include mailto parameter for polite access to Crossref API Source: https://api.crossref.org/swagger-ui/index This example demonstrates how to include the 'mailto' parameter in a Crossref API request. This identifies your email address, allowing the Crossref team to contact you if issues arise. ```HTTP GET https://api.crossref.org/works?mailto=your@email.com ``` -------------------------------- ### Crossref API - Get Works by Type Source: https://api.crossref.org/swagger-ui/index Retrieve works associated with a specific type ID. This endpoint is part of the 'Types' resource collection. ```HTTP GET /types/{id}/works ``` -------------------------------- ### Crossref API - Get Funders by ID Source: https://api.crossref.org/swagger-ui/index Retrieve detailed information about a specific funder using its ID. This endpoint is part of the 'Funders' resource collection. ```HTTP GET /funders/{id} ``` -------------------------------- ### Crossref API - Get Works by DOI Source: https://api.crossref.org/swagger-ui/index Retrieve detailed information about a specific work using its DOI. This endpoint is part of the 'Works' resource collection. ```HTTP GET /works/{doi} ``` -------------------------------- ### Crossref API - Get Type by ID Source: https://api.crossref.org/swagger-ui/index Retrieve detailed information about a specific type using its ID. This endpoint is part of the 'Types' resource collection. ```HTTP GET /types/{id} ``` -------------------------------- ### Crossref API - Get Member by ID Source: https://api.crossref.org/swagger-ui/index Retrieve detailed information about a specific member using its ID. This endpoint is part of the 'Members' resource collection. ```HTTP GET /members/{id} ``` -------------------------------- ### Crossref API - Get Works by Funder ID Source: https://api.crossref.org/swagger-ui/index Retrieve works associated with a specific funder ID. This endpoint is part of the 'Funders' resource collection. ```HTTP GET /funders/{id}/works ``` -------------------------------- ### Crossref API - Get Deposit Data (Deprecated) Source: https://api.crossref.org/swagger-ui/index Retrieve deposit related data. Note: These endpoints will be deprecated in the near future. This endpoint is part of the 'Deposits' resource collection. ```HTTP GET /deposits ``` -------------------------------- ### Crossref API - Get Works by Member ID Source: https://api.crossref.org/swagger-ui/index Retrieve works associated with a specific member ID. This endpoint is part of the 'Members' resource collection. ```HTTP GET /members/{id}/works ``` -------------------------------- ### Crossref API - Get Works by Journal ISSN Source: https://api.crossref.org/swagger-ui/index Retrieve works associated with a specific journal ISSN. This endpoint is part of the 'Journals' resource collection. ```HTTP GET /journals/{issn}/works ``` -------------------------------- ### Crossref API - Get Works by DOI Agency Source: https://api.crossref.org/swagger-ui/index Retrieve agency information associated with a specific work identified by its DOI. This endpoint is part of the 'Works' resource collection. ```HTTP GET /works/{doi}/agency ``` -------------------------------- ### Crossref API - Get Journal by ISSN Source: https://api.crossref.org/swagger-ui/index Retrieve detailed information about a specific journal using its ISSN. This endpoint is part of the 'Journals' resource collection. ```HTTP GET /journals/{issn} ``` -------------------------------- ### Crossref API - Pagination with Cursor Source: https://api.crossref.org/swagger-ui/index Demonstrates how to paginate through large response sets using the 'cursor' parameter. Add `cursor=*` to the initial request and use the `next-cursor` value in subsequent requests. ```HTTP GET /resource?cursor=* GET /resource?cursor={next-cursor} ``` -------------------------------- ### Swagger UI for Crossref API Source: https://api.crossref.org/swagger-ui/index Swagger UI provides an interactive documentation interface for the Crossref API. It allows users to explore available endpoints, view request/response schemas, and test API calls directly from the browser. No specific programming language is required to use Swagger UI itself, but it's often used in conjunction with client libraries. ```HTML